How I Handle Frequent Power Outages in Florida with Aqara + Homebridge

Hello, I also have a problem with an unstable industrial network in Ukraine. I use a leak sensor to signal a quality network (there is an electrical network or not) to turn off the light, turn on the heating, On/Off emergency lighting (12-24 volts). I opened this topic in my description, maybe you will need it too. Alternative use of the Aqara leak detector