You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MQTT Integration is a nice feature to integrate with Home Assistant. Thanks for supporting it.
Recently, I've followed a similar approach when doing my own integration for another device (diematic_server) and I noticed this integration should benefit for my findings too so I'm documenting them here.
This is a screen capture of my mqtt broker.
At the bottom, there is the ecowitt integration running and my diematic2mqtt integration. Both have a topic with values published as they are collected from the device.
This is a screen capture of one of the sensors.
The specific comments are:
The state should't be there at all. The state_topic from the config should point to the bottom ecowitt/meteo and use value_template to pick up the value of the winddir from there. This way, the simple push to ecowitt/meteo fires the update at home assistant.
The availability topic shall be global for the device. Set a last will and testament message to the broker so when the connection is lost the front end is notified and the entities are represented as unavailable. If there is a possibility for a single entity to be unavailable use the alternative availability syntax where multiple topics can be referenced.
The attributes is not used at all and shall be removed.
To Reproduce
Steps to reproduce the behavior:
This section does not apply.
Expected behavior
There should be no publish messages to the mqtt server under the "homeassistant/sensor/{device-id} other than just the one to fire the mqtt discovery (once when the connection is first stablished) and then, the messages to update the values to "ecowitt/meteo" to set the values periodically.
I hope this information helps yo to move forward this repository as it has served me to kick off doing my own mqtt integration and learn about how to work with messages brokers.
The text was updated successfully, but these errors were encountered:
Describe the bug
The MQTT Integration is a nice feature to integrate with Home Assistant. Thanks for supporting it.
Recently, I've followed a similar approach when doing my own integration for another device (diematic_server) and I noticed this integration should benefit for my findings too so I'm documenting them here.
This is a screen capture of my mqtt broker.
At the bottom, there is the ecowitt integration running and my diematic2mqtt integration. Both have a topic with values published as they are collected from the device.
This is a screen capture of one of the sensors.
The specific comments are:
To Reproduce
Steps to reproduce the behavior:
This section does not apply.
Expected behavior
There should be no publish messages to the mqtt server under the "homeassistant/sensor/{device-id} other than just the one to fire the mqtt discovery (once when the connection is first stablished) and then, the messages to update the values to "ecowitt/meteo" to set the values periodically.
I hope this information helps yo to move forward this repository as it has served me to kick off doing my own mqtt integration and learn about how to work with messages brokers.
The text was updated successfully, but these errors were encountered: