Feature Request: MQTT LWT Topic
Opened this issue · 2 comments
pixeldoc2000 commented
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/
fphammerle commented
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
fphammerle commented
Template for implementation:
https://github.com/fphammerle/switchbot-mqtt/pull/105/files
fphammerle/switchbot-mqtt@31d66b2