timherreijgers / Domotics-base

Project containing base code for domotics projects
MIT License
0 stars 0 forks source link

Add online and offline states for mqtt devices #48

Closed Martijn-Luijckx closed 1 year ago

Martijn-Luijckx commented 1 year ago

Devices should be able to publish if they are online and let the broker know what to send when disconnected (last will and testament) See: https://albert.nz/mqtt-availability-retained-state/

We need to check if this can be done universialy or if the controller needs to give this function more data.

Martijn-Luijckx commented 1 year ago

Also good to keep home assistant implementation in mind: https://www.home-assistant.io/integrations/sensor.mqtt/