slsys / Gateway

Web site
https://slsys.github.io/Gateway/
245 stars 108 forks source link

Add feature - enable MQTT retain for single device #29

Closed snakuzzo closed 3 years ago

snakuzzo commented 4 years ago

Hi all! it may be useful to have an option to enable MQTT retain for each device

This would be very useful in the case of deep sleep sensors (eg. Aqara doors and windows sensors). If hub (e.g. homeassistant) restarts and state topic was not retained, the state is wrong until next state change or until next publish and...IMHO...it's wrong to enable MQTT retain for every MQTT messages of every device .

Thanks

papperone commented 4 years ago

I do agree to have selective retain per device will be a great addition for the SLS firmware!

snakuzzo commented 4 years ago

Any news about this feature ?

Avenitos commented 3 years ago

Lua: zigbee.setretain(Ident)