Jalle19 / eda-modbus-bridge

An HTTP/MQTT bridge for Enervent EDA ventilation units
GNU General Public License v3.0
15 stars 3 forks source link

Discovery messages should be retained #29

Closed tomrosenback closed 2 years ago

tomrosenback commented 2 years ago

The discovery messages sent to the home assistant topic should have the retain flag sent to true, otherwise the entities will remain unavailable until next set of discovery messages are published after a reboot of HA.

Jalle19 commented 2 years ago

Sounds reasonable, I read about it but didn't really understand the issue.

Jalle19 commented 2 years ago

Especially if someone runs this standalone (where HA can be restarted independently of the add-on) this is crucial.

tomrosenback commented 2 years ago

Yes, I have already experienced the unavailability of the entities due to the not retained messages.