I’m using Home Assistant 2022.11.1.
I have an ESP8266 device that publishes my garage door status via HTTP.
For example:
HTTP topic: gar_door_status
Example JSON doc: {“main_gar_door”:”Open”}
I can see the data in the Mosquito broker, and I can see the data using the “http in” control in Node-Red.
How can I display this data on my Home Assistant “Overview” dashboard?
Thanks
zoogara
(Daryl)
3
If you can see it in your MQTT broker - then it’s likely MQTT?
You would need to add a MQTT sensor to configuration.yaml - something like:
mqtt:
binary_sensor:
id: gar_door_status
state_topic: "gar_door_status"
value_template: "{{ value_json.main_gar_door }}"
payload_on: "Open"
payload_off: "Closed"
With the data you’ve provided I have no idea if it will work, but it should get you started - along with what Nick linked above.
1 Like
Ooops I meant to ask: " How to display MQTT data on Dashboard"
I 'll checkout “Instructions on how to integrate MQTT sensors within Home Assistant.”
Thanks!