Many of us have set up one or more notifications for when, for example, movement is detected in our absence, the refrigerator is too warm, a water leak is detected, or smoke is present.
However, it is surprisingly difficult to detect when the power goes out. There still doesn’t seem to be an integrated feature to detect devices that go offline.
I have thought for a long time about how this problem could be solved. There must be a device that generates an event when the power goes out. Of course, this would have to be battery-operated and directly connected to the hub. At some point, I discovered the Woox Siren R7051, which meets these requirements.
It has the following features:
- Detection of the power source
- Battery operated
- Zigbee (not Wi-Fi/Cloud)
- Acts as a router
@Mariano_Colmenarejo developed the driver for it and recently implemented support for power source detection. As soon as the device is disconnected from the power grid, it sends an event, and when it is reconnected, it does the same.
But what if the power goes out and the hub and router are also down? Both devices must, of course, continue to be powered for at least five minutes. For this, there are small uninterruptible power supplies the size of power banks with multiple outputs. One of them is pictured here:
My Aeotec SmartThings hub and the 4G router have been connected to such a device for some time now, and supposedly the battery should last for a day. However, I’ve only tested it for a few hours, but it seems to be true. I now have several of these to power the cameras.
Today, I tested the entire setup: Hub and router without a mains connection, then disconnected and reconnected the Woox Siren from the mains.
Here, you can see the delay between disconnection and notification and between reconnection and notification:
At some point during the search for the solution, I forgot why I needed this. One use case is, for example, to automatically switch off all lights after a power outage.
(When AC powered → Lights off)
TL;DR: to get a notification on your phone when there’s a blackout, all you need is this:
And this: