fphammerle/systemctl-mqtt

Feature Request: MQTT LWT Topic

Opened this issue · 2 comments

Please add an MQTT LWT Topic to signal host status like: ON / OFF / DISCONNECTED . It would be great to have the Status of the host of systemctl-mqtt im Home-Assistant or any other System.

I know there is PrepareForShutdown but i is not the same.

https://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament/

Good idea! If anyone wants to start integrating this feature before I can, please go ahead.

TODO: Consider implementation that is compatible with https://www.home-assistant.io/integrations/binary_sensor.mqtt/#availability