Backup power for Home Assistant: UPS vs power station, sizing and clean shutdown
Keep your Pi, Green, router and Zigbee mesh alive through outages: measure loads, estimate runtime, NUT integration and automations.
Getting started
Home Assistant
Buying
Keep your Pi, Green, router and Zigbee mesh alive through outages: measure loads, estimate runtime, NUT integration and automations.


AI-generated illustration
Also available in French.
A few seconds without mains reboots Home Assistant, drops your router and weakens Zigbee. Longer outages take alarms, leak sensors and notifications offline when you need them most. This guide helps you size backup power, pick UPS vs portable power station, surface battery state in HA and shut down cleanly before the battery dies.
We budget device by device, including Zigbee routers on mains-powered plugs.
| Device | Why |
|---|---|
| Home Assistant (Pi 5, Green, etc.) | Automations, history, notify |
| Zigbee coordinator (USB) | Already counted with the server |
| Router (+ fibre ONT if separate) | Phone alerts, remote access |
| Network switch if between router and server | No LAN without it |
Battery Zigbee sensors keep working. Mains-powered Zigbee plugs and bulbs are mesh routers—when they lose power, distant sensors may drop off. Check the ZHA or Zigbee2MQTT map before you rely on sensors across the house during an outage.
Use a plug-in power meter or a smart plug with energy reporting in HA. Label ratings on PSUs are maximums, not typical draw.
Rough references (measure yours):
| Device | Reference |
|---|---|
| Home Assistant Green | ~1.7 W idle, ~3 W load (official spec) |
| Raspberry Pi 5 | 27 W PSU rating—actual HA load much lower; measure |
| ISP router | Often the largest load—read brick label and measure |
Example (illustrative only—replace with your measurements): Green 3 W + router 15 W + switch 2 W → P = 20 W. A 300 Wh station at ~90 % usable and ~85 % AC efficiency → E ≈ 230 Wh → ~11 h. For 24 h at 20 W AC out you might need ~630 Wh before margins.
The router often dominates the Pi. Unplug TVs and chargers from the backed-up strip.
DC tip: Green accepts 12 V DC (official spec)—a station with a suitable 12 V port can skip one conversion step; verify voltage, current and connector before wiring.
| UPS | Power station | |
|---|---|---|
| Role | Minutes to a few hours + clean shutdown | Larger reserve, sometimes portable |
| Transfer | Designed for fast switchover | Only if UPS/EPS mode—read spec |
| HA integration | Often USB HID + NUT | Rarely standard; app/cloud |
| Typical 20 W runtime | ~1–3 h class UPS | Half-day to multi-day class |
Pass-through charging ≠ UPS. Confirm transfer time on the datasheet.
Permanent mains charging of a station 24/7: read manufacturer guidance on battery longevity.
Shopping: UPS with USB and NUT compatibility—Amazon UK UPS search · US.
Charge fully, plug only HA + router + switch, unplug the UPS/station from the wall (not the device power button), confirm no reboot, Zigbee still responds, note % drop over 30 min and recalculate runtime.
usbhid-ups).sensor.ups_battery_charge, sensor.ups_status.Notify on battery:
alias: Mains lost - on battery triggers:
Shutdown below 25 % while still on battery:
alias: Low battery - shutdown HA triggers:
Use a witness device on non-backed-up mains—e.g. ESP32 on a normal USB charger going unavailable in HA when grid drops (ESPHome sensor). Avoid cloud-only battery apps during internet loss unless the router is also on backup.
After hassio.host_shutdown, Pi/Green may need a power cycle on the backup outlet if the UPS never cut output. Plan a “Home Assistant started” notification.
Also: Install Home Assistant · CO₂ on Pi · solar outdoor camera.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).