fmartinou / tydom2mqtt

Deltadore Tydom to MQTT Bridge
https://fmartinou.github.io/tydom2mqtt/
MIT License
90 stars 53 forks source link

Retain state after HASS restarts #91

Closed webjib closed 1 year ago

webjib commented 1 year ago

Every time I restart HASS, all my covers show a "Unknown" state. I can see in MQTT that devices are published with "retain: false" parameter, I guess that's why the stat is lost each time I restart.

Could it be possible to change to "retain: true" or at least create a user setting in order to customise this behavior?

Thanks!

fmartinou commented 1 year ago

Hi,

That's right; some sensors are published with retain: False, some others with retain: True 🤔 .

=>I changed to publish all mqtt messages with retain: True.

fmartinou commented 1 year ago

Released as 3.0.2