Home Assistant + ESPHome + Latching relays

@crgarcia question. If you restarting ESPHome device while latching relay is “on”, does it stay “on”?
Thank you for your example, but I found light “off” (latching relay) if ESP got restarted or updated.

At the end I built the device.
Full schematics, code, etc can be found in here: GitHub - crgarcia12/electronics-homeassistant-lightscontroll


It works very well, and I can always simply unplug it to make the house come back to a standard house.
The same if the device burns, or home assistant freezes… the house keeps running normally

@DJTerentjev, My latching relays do not switch at boot time. Are your ESP32 pins fluctuating at boot? what pins are you using?

@crgarcia restore_mode: DISABLED solved my problem.

1 Like