I am setting up an Arduino based device that will be bounded to a HA MQTT switch.
If my Arduino goes offline, its MQTT sensors will be unavailable thanks to their expire_after properties.
I’ve been looking for an equivalent to make MQTT switches unavailable if they are not being updated for a while. No success so far.
==> Is there a nice and clean way to do so ?
If not, I am considering to have HA sending a MQTT offline message if there is no MQTT online message for a minute or two.