Get a phone alert when the power goes out at home
PushPiper sends power outage alerts to your phone free, 10,000 a month on 10 devices, triggered by a UPS on NUT or a missed heartbeat. Emergency alerts can repeat as often as every 30 seconds until someone acknowledges them, and Healthchecks.io's free Hobbyist plan covers the heartbeat with 20 checks.
Why home power cuts are tricky to detect
When the electricity cuts out at home, every standard computer, micro-controller, and Wi-Fi router on that circuit immediately turns off. A device cannot send an outbound alert over the internet if it has no power, and it cannot send an alert if the local modem or router went dark at the same moment. That leaves you with two distinct strategies for detecting an outage while you are away from home.
The first strategy is local detection. You plug your equipment and your network gear into an uninterruptible power supply (UPS) so they keep running when the wall power cuts out. Software running on a local device reads the status of the UPS and pushes an alert before the battery drains.
The second strategy is remote detection. Instead of waiting for a dead device to tell you it died, a small device in your home pings an outside monitoring server on a fixed schedule. If the outside server stops seeing those regular pings, it assumes your power or your internet connection failed and sends an alert directly to your phone.
Here is how the two detection methods compare for home setups:
| Method | You need | Detects | Alert arrives |
|---|---|---|---|
| UPS with NUT | A UPS with USB, NUT, router on the UPS | Power loss, low battery, power back | Within seconds |
| Heartbeat check | An always-on device and a free Healthchecks.io check | Power or internet loss | After the check period plus grace time |
| Both | The two above | Everything, from two angles | Fastest of the two |
Method 1: Instant detection with a UPS and NUT
Network UPS Tools (NUT) is an open source suite that communicates with a UPS over USB or serial connections. It runs as a daemon on Linux, a Raspberry Pi, or a home server. When wall power fails, the UPS switches to battery power and flags the event to the NUT monitoring daemon, upsmon.
The upsmon daemon handles alerts through its NOTIFYCMD directive in upsmon.conf. When an event occurs, upsmon runs your specified script and passes the event type in the NOTIFYTYPE environment variable. You can catch three primary events:
ONBATT: The power went out and the UPS is supplying power from its battery.LOWBATT: The UPS battery is almost depleted and the host must shut down soon.ONLINE: Mains power has been restored and the UPS is running on line power again.
To set up NUT alerts with PushPiper, you configure NOTIFYFLAG in upsmon.conf with the SYSLOG+WALL+EXEC targets for each of those events. Then, you write a shell script at your NOTIFYCMD path that reads NOTIFYTYPE and submits a POST request to https://api.pushpiper.com/1/messages.json. For the full configuration directives and script samples, check our NUT integration guide. After editing upsmon.conf, apply your changes by reloading the running daemon with upsmon -c reload.
Method 2: External heartbeats with Healthchecks.io
If you do not own a UPS, or if your network gear sits on an unprotected outlet in another room, you can monitor power from the outside using a dead man's switch. A low-power machine inside your home, such as a Raspberry Pi or an old laptop, sends a scheduled ping to Healthchecks.io.
Healthchecks.io provides a free Hobbyist plan that includes 20 checks and 100 log entries per check. You set up a check with a 5-minute schedule and a short grace period. As long as power and internet work, the machine sends its ping. When the power drops, the machine shuts off, the pings stop, and Healthchecks.io triggers a webhook to PushPiper to notify your phone.
- Open your Healthchecks.io dashboard and create a new check with a 5-minute period.
- Add a Webhook integration in Healthchecks.io pointing to
https://api.pushpiper.com/1/messages.json. - Set the POST body to form-encoded data with your PushPiper
token,user, a title, and your alert message. - Add a cron job on your home device to ping your unique Healthchecks.io URL.
*/5 * * * * curl -fsS -m 10 --retry 3 -o /dev/null https://hc-ping.com/YOUR-UUIDIn the cron job above, replace YOUR-UUID with the actual UUID assigned to your check in Healthchecks.io. If you want to learn more about passing variables like $NAME or $STATUS from the monitor, read our Healthchecks.io push notifications guide.
Keep in mind that an external heartbeat catches both power cuts and internet outages. If your internet service provider drops your line while your home power remains intact, the pings still stop and an alert will fire. While an internet outage is still useful information, it does not mean your freezer is thawing.
Routing notifications to your phone with PushPiper
PushPiper delivers notifications to your devices through Web Push in your browser on Android, Windows, macOS, and Linux. For an iPhone or iPad running iOS or iPadOS 16.4 or later, open pushpiper.com/app in Safari, tap Share, and select Add to Home Screen. PushPiper has no native App Store or Play Store apps yet, cannot send SMS messages or phone calls, and cannot trigger iOS critical alerts that break through Do Not Disturb or Focus modes.
To get started, open the PushPiper app and sign in with Google to create an application token and get your user key. PushPiper's API is compatible with Pushover: it uses the same /1/messages.json endpoint path, parameters, receipts, and group keys. You can send requests using standard shell tools as explained in our guide for shell scripts and cron jobs.
The API accepts custom priorities and sounds so power failures stand out from ordinary messages:
- Priority 1: High priority. This bypasses PushPiper's internal quiet hours setting and plays an audible tone immediately. Use this priority with the
soundparameter set tosirenfor initial power cut alerts. - Priority 2: Emergency priority. This triggers repeated notifications every
retryseconds (minimum 30 seconds) for up toexpireseconds (maximum 10,800 seconds, or 3 hours) until someone acknowledges the alert. - Sound parameter: Choose from 23 built-in sounds, including
siren,pushover, andbugle.
If an outage requires physical intervention, such as starting a generator, set priority=2, retry=60, and expire=3600. When the notification arrives, tap Acknowledge in the app or notification banner to stop the repeat cycle.
Sources
Questions and answers
Will an outage alert wake me up if my phone is on Do Not Disturb?
No. PushPiper uses standard Web Push notifications, so priority settings cannot break through the native Do Not Disturb or Focus modes on iOS or Android.
How much does PushPiper cost for home monitoring?
PushPiper Free costs EUR 0 forever and includes 10,000 messages a month across 10 devices. That quota easily handles thousands of status checks, heartbeats, and outage notifications without needing a paid plan.
Can PushPiper text me an SMS when the power goes out?
No, PushPiper does not send SMS text messages or place automated phone calls. All alerts arrive as push notifications delivered to the web application installed on your phone or desktop.
What happens if both my power and my internet drop at the same time?
If you rely only on a local UPS running NUT, the notification cannot leave your house unless your modem and router are backed up by battery power. If you use the Healthchecks.io heartbeat method, the remote server notices the missing ping and alerts your phone regardless of what failed locally.
Free for 10,000 messages a month
Sign in with Google and send your first ping in a minute.