deiger / Alarm

Code to connect and control alarms by PIMA.
GNU General Public License v3.0
16 stars 11 forks source link

Support MQTT LWT (Last Will and Testament) #8

Closed maorcc closed 3 years ago

maorcc commented 3 years ago

Can we support MQTT's LWT (Last Will and Testament)? This will help Home Assistant identify early when the alarm is not working for any reason.

Here are details of how LWT works: https://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament/

Ref to Home Assistant community discussion: https://community.home-assistant.io/t/expire-after-option-for-mqtt-alarm-control-panel/219260

deiger commented 3 years ago

Sure.

maorcc commented 3 years ago

The fix is working. Thank you @deiger !