I have a ESP32 running in EspHome and it controls a couple of relays.
My thought the other night is if we have a power cut then Home Assistant might not be able to tell this ESP running from batteries to close the solenoids!
What would be the best way to go about this?
If you cannot talk to home assistant then close relays
Home assistant asks to open them and then the closing relays is timed based maybe from a script?