Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using MQTT - To get decision making back to HA Dashboard #2

Open
speegs opened this issue Sep 14, 2024 · 0 comments
Open

Using MQTT - To get decision making back to HA Dashboard #2

speegs opened this issue Sep 14, 2024 · 0 comments

Comments

@speegs
Copy link

speegs commented Sep 14, 2024

I added this to Home Assistant's main config, putting sensors into HA. This can then be populated with Node Red, if you wish to see why choices are made. I found it helpful seeing from a mobile phone what's going on.

HA configuration.yaml:

mqtt: sensor: - name: "Curtailment Status" state_topic: "curtailment_message" - name: "Slowcharge Status" state_topic: "slowcharge_message" - name: "InverterMode Status" state_topic: "invertermode_message" - name: "Preserve Status" state_topic: "preserve_message"

image

Add an MQTT Node for each message sensor you want to populate:

image

Plus a little GetMsg javascript to pass the message along.

image

I'm a pretty new to HA and Node Red, so there may be a better way. Once you have the messages you want, you just add them into your HA Dashboard like any other sensors. I modified some of the verbose decision messages to shorter versions and put the buy or sell price into them to make them more meaningful.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant