Hello,
I’d like to trigger a sound via a piezo/buzzer, if my esphome running esp32 is disconnected for more than 1min from MQTT for whatever reason.
I’m aware that an MQTT disconnect also normally triggers a reboot after some time, which I have disabled by setting reboot_timeout: 0s
.
I’ve seen the on_disconnect
event for MQTT (MQTT Client Component — ESPHome) however I’m unsure about how to trigger an action after $time
of that condition holding true.
Also esphome seems to go into some blocking state not reliably executing code when checking for it according to ESPHome Device as MQTT subscriber, detect MQTT loss without reboot - #7 by Linwood
Any help/hints/pointers appreciated - thanks!