-
Notifications
You must be signed in to change notification settings - Fork 267
Last Will Message - Availability #107
Comments
Hey @smith844 , |
@Joeboyc2 |
no worries, here is what you need to do: Add this line somewhere at the top of the sketch (i added mine under the other topics (line:50ish)) Then replace your reconnect function with this: void reconnect() { Then add this to the light section you have in home assistant: |
I'm really a noob in arduino programming, would you mind to make a PR @Joeboyc2 ? |
Is there a simple way to implement a LWT message in the similar way to Tasmota/SONOFF. I have several sonoff devices with Tasmota which give an online/offline message via the LWT which means if a device is out of sync or missing it shows up correctly. I would like to implement this in the code for the lights to allow me to have the correct state in Home Assistant. I have searched a number of threads on the forums but its a bit inconclusive or right at the edge of my knowledge.
Thanks in advance for any help you can give me.
The text was updated successfully, but these errors were encountered: