I would like HA to detect power outage. I don’t have UPS so I intend to rely on the SNMP Uptime output from 5 devices in the house (Printer, Router, Switch, Firewall, HA)
Could you please guide me in the configuration process ? I don’t know how to trigger an even based on the output of 5 sensors. If sensor is less than 1 or 2 minutes the device has rebooted. If all 5 devices are less than 2 minutes we can consider a full power outage
Hard to see how reliable this would be without something having an independent power supply.
My own solution is to use an old Android phone running a routine created with an app called LlamaLab Automate. I leave it permanently on charge; when the power goes off it sends me an SMS, then another when the power comes on again.
I found this topic when looking for known methods to restore or set devices to a default state after a power outage.
I have several Zigbee lights that will turn on and they can not be configured to restore to the previous state or to off.
For the readers information, I have added a sensor based on official documentation (the sensors.yaml file is included in configuration.yaml):