I chose to simply ping a Sonoff WiFi device that I have in use every x minutes.
It’s not powered by the UPS that powers my router, switch and HE so when a ping to the Sonoff fails, I assume power is cut.
That’s one reason why the Ring extender is so nice (I’ve got 4) - it has battery backup, keeps repeating for your mesh during power fail. Think about trying to turn something on/off during power fail - you need your network and a path to devices, and devices need power, too.
I do something similar but with Node-red. I have it shut down Hubitat if it detects an outage, send a notification and then when power comes back on, restart Hubitat
@roberto - if you are using Node-red, here is a link to how I do this.
How do you manage this?
Wifi plug that is controlled by something other than HE.
you can also get a used apc smt1500 and net card and monitor for outage and also shutdown cleaning if you have the ups plugged into the net..
see this thread..
As @tray_e said, I use a wifi plug (Kasa TP-Link) that has an API that can be controlled from Node-red. So, when the power comes back on, Node-red pings Hubitat and if it is on (plug power on restarts Hubitat), it does nothing. If the plug is on, but Hubitat is not (no response to a ping), it turns the plug off and then on - that restarts Hubitat.
i have the same kasa wifi plug plugged into the ups and just manually turn the hub back on when the power is back through the kasa app on my phone.. but honestly have never had an outage that lasted 5 hours anyway.
and also the kasa switches can be set to return to last state.. so no need to do anything.. if the power is out long enough taht the ups shuts down the hub, when it boots back up the kasa switch will turn back on and the hub will automatically come back online..
Cool idea, thanks!
Thanks for this. Just used it myself.