I am playing with tasmota firmware on a few sonoff mini devices, and they work great. But, if I remove power to the sonoff, the HA UI doesn’t see it go offline (no way to send out a mqtt update on powerdown). So if the lights were “ON” before, and are obviously not on anymore, the HA UI keeps showing “ON.”
Some devices I would like to be only connected to power some times, and not others. So I need a way to have HA poll the switch and trigger it to update the MQTT STATE topic (I assume this is what I’m after) and then set some sort of expiry for the mqtt update so that the switch will show “unavailable” or “offline” in the HA UI.
If I had my dream option, i could customize the text that shows up on the HA as well, but I haven’t figured that option out yet either.
Any suggestions?