**I've just passed 60 days with this installed and I think the design should be solid now. Please let me know if you see anything I need to improve.**
About
I recently ran into a situation where a single GFCI outlet tripped unexpectedly and wasn't discovered until a day later. In another instance, a UPS failed, killing power to the battery-backed-up side while keeping the surge-only side on. Power can go out in one part of your home and you may not even notice that a circuit is dead while you are in the same room.
Power outage alarms exist, but they are usually just audible alarms. Power outage alarms that send a notification are expensive. By using a 5V relay with a simple USB cable, I can keep a circuit open until the power goes out, after which it closes and triggers SwitchBot's Leak Detector, sending a critical notification with an audible alarm.
Required Materials
In addition to the printed parts, you will need:
+ 1x USB type A power pigtail with 3.5mm cable thickness - you can also salvage and use an old USB type A cable by only wiring the the power wires. [For this project, I used these on Amazon](https://www.amazon.com/dp/B0CRQTYV9H).
+ 1x [SwitchBot Water Leak Detector with sensor cable](https://us.switch-bot.com/products/switchbot-water-leak-detector?variant=47157710389481). You can use the leak detector without the sensor cable, but you'll have to wire/solder your own connection to the relay's dry contacts.
+ 1x [HiLetGo 5V 1-channel relay module](http://www.hiletgo.com/ProductDetail/1958599.html) - you can find this on AliExpress or [Amazon](https://www.amazon.com/dp/B00LW15A4W).
+ 1x 1-inch segment of 22-24AWG insulated wire to tie power to the trigger port on the relay - this is what keeps the contacts open while power is active.
+ 4x M3 6mm screws to mount the relay - You can get away with near this size if you
+ Wire cutters and strippers that can handle very small wires.
+ 3M Command strips to mount this to the wall.
+ An old, simple USB 5V power brick.