← alle Posts

November 16, 2026 English Homelab

UPS for the Homelab: Who Stays On When the Power Goes Out?

Two UPS units, one shutdown chain and a long test all the way down to “battery low”. And the question of what actually comes back on when the power returns.

On 22 October, the power was out here in Mettmann for just under three quarters of an hour. What did not come back up afterwards, I already wrote about in I am the one who boots.

In short: both Proxmox hosts, both NAS and with them both DNS resolvers and Home Assistant stayed off until I pressed the power button by hand a good two hours later.

A UPS had been sitting on my board for quite a few months. With low priority…
On the afternoon of the 22nd, the card suddenly had a high one…

…and by the evening, two units were ordered.

What a UPS should do here

Bridging a 43-minute outage with everything running isn’t possible with affordable hardware. And I’d probably get into trouble here if I put a diesel generator in the basement.

The network rack draws around 265 watts, the second NAS in the heating room another 106 or so. So the goal was a different one:

The last point is exactly what was missing on the 22nd. And a UPS alone doesn’t solve that, by the way, quite the opposite. More on that below.

Two locations, two units

My homelab lives in two places in the basement. In the utility room, the network rack with both Proxmox hosts, the main NAS, router and switches, which also power Wi-Fi, cameras and doorbell via PoE.

The heating room is home to the second NAS, an RS2423+. It’s 552 mm deep and simply doesn’t fit into my rack with its 500 mm mounting depth.

Synology rackstation with twelve drive bays, cut out

That left two options:

Small catch: on Synology’s compatibility list, the CP1600 is only listed for the smaller NAS, the RS2423+ is missing. The smaller CP1500 would have been listed for both. I still went with two 1600s and connected the rackstation first, while the 14-day return window was still open. DSM recognised it right away, too.

Waiting for Black Friday might have saved another 30 euros per unit. After the 22nd, that wasn’t worth it to me…

The “rest of the family”, by the way, sees no point at all in a UPS at that price (let alone several). My argument that otherwise Wi-Fi, doorbell and cameras are gone with every power outage didn’t change that either. That they’ll be offline for exactly that reason during the tests doesn’t make things any better 😀

The shutdown chain

Each UPS is connected via USB to “its” NAS. On both NAS, DSM also acts as a NUT server, i.e. the service that makes the UPS status available on the network. The two Proxmox hosts are NUT clients of the main NAS in the utility room, and Home Assistant reads both UPS units via the NUT integration.

When the battery in the utility room runs low, the NAS gives the signal, both hosts shut down, then the NAS itself goes into standby, and finally the UPS switches off its output. When the power comes back, the UPS switches its output back on, and everything boots up.

The order more or less sorts itself out: the main host has shares mounted from the NAS in the heating room, which, according to the estimate, lasts around an hour on its own UPS. The utility room, with its much higher load, gets around 17 minutes until “battery low”.

So if the whole house loses power, the utility room always goes down first. Good.

The timer trap

The first version of the shutdown logic from the 22nd looked different: shut down the main host after just two minutes on battery, so that Wi-Fi, doorbell and cameras last longer. Sounds reasonable at first.

Except: the plan assumed that Home Assistant runs on the NAS. That hasn’t been true since September, HA is now a VM on exactly that host. And the first version hadn’t considered DNS either.

So after two minutes, exactly what was missing on the 22nd would have been gone: name resolution and home automation. We’d only just had Wi-Fi without DNS…

That’s why it ended up being the simpler option: no timer. Everything keeps running until the battery is low, then everything shuts down in an orderly fashion. The two-minute variant would have bought roughly five to eight more minutes of network, but without HA. Not worth it.

Nice side effect: on short outages, nothing shuts down at all. So the case “power is back, but the hosts are off” no longer exists either, and I don’t need Wake-on-LAN.

Restart without lifting a finger

For everything to start on its own after a long outage, three things have to be right. The first two are already covered in the last post, so just briefly here:

The service passed its first real cold start during installation on the 27th: waited 40 seconds, then all nine containers came up, including the two that had got stuck on the 22nd.

The dashboard

Home Assistant now has its own UPS view: a cross-section of the house with both rooms, the power lines and the remaining minutes as a big number, with tiles, history and logbook below. Plus a push notification to my phone when a UPS goes on battery, when the battery runs low and when the power is back.

Short test

Fortunately, you don’t have to wait for a power outage. There’s a Shelly smart plug in front of each UPS anyway, measuring consumption.
Shelly off means, for the UPS: power gone.

Heating roomUtility room
Shelly off20:24:0020:25:51
HA sees “on battery”20:24:0620:25:59
Shelly on20:24:3120:26:09
HA sees “mains”20:25:0620:26:59

Four push notifications arrived, nothing shut down. Exactly as it should be.

One thing stood out, though: HA only polls the UPS once a minute. So “power back” can arrive up to a minute late, and an outage shorter than a minute may not show up in HA at all.

For the shutdown itself, that doesn’t matter, it runs directly between NAS and hosts.

Long test

The plan was actually two separate runs, first the heating room, then the utility room. On the evening of 3 November, I decided to do both at once after all. In a real power outage, it’s the whole house, not just one room.

Preparation: a maintenance window in Uptime Kuma across all monitors, so that my phone doesn’t report every second what’s gone. And bugging the family. Nobody was thrilled, see above 😀

That left one question: how does the power actually come back? After “battery low” in the utility room, Wi-Fi and internet are gone, and with them Home Assistant and the Shelly cloud. So switching back on via the app won’t work. I solved that with an auto-on timer directly in both Shellys: 2,100 seconds after switching off, they turn themselves back on, i.e. after 35 minutes.

At 22:39, I switched off both Shellys via Home Assistant. The times below come from the HA history and the journals of the hosts and containers. Since HA only polls the UPS units once a minute, everything from that source is accurate to about a minute.

TimeWhat happens
22:39:20both Shellys off
22:39:37utility room on battery, first announcement
22:54:37second announcement, UPS says just under 7 minutes left
22:55:37last value from the utility room: 20% battery, 283 seconds left
22:56:23the first VMs and containers shut down
22:56:45second node off
22:58:32main host off
23:14:19Shellys turn themselves back on
23:14:40main NAS boots, a few seconds later both hosts
23:20:09all twelve VMs and containers running again

What came out of it

New addition: announcements

For the long test, I also built two announcements via the Sonos speakers. Anyone in the house should know that the power is out and the Wi-Fi only has limited time left. A push notification only reaches me, after all.

Both came through during the test. The second one, however, only about a minute before everything went off, the jumping runtime estimate sends its regards. So the threshold needs to be set a bit earlier. On top of that, the first announcement should repeat every five minutes, and there’ll be an all-clear when the power is back.

Oh, and – something to keep in mind: during the test, the speakers had normal power, since only the Shellys in front of the UPS units were off. In a real power outage, the Sonos are just as gone as everything else that isn’t connected to a UPS 😉

The false alarm

One notification didn’t fit at all, though. Right at the moment the main NAS shut down, my phone got: “UPS utility room: power back – mains restored. Battery unavailable %”. Of course the power wasn’t back.

The helper sensor binary_sensor.usv_hwr_auf_akku, which the push automation is attached to, falls to off instead of unavailable when the NUT connection is lost. And the automation reads the change from “on battery” to “off” as “mains is back”. Fittingly, the dashboard showed “not connected yet, outlet 0 W”. Technically sort of correct… It’ll be fixed along with the announcements.

What remains

The most expensive part was the hardware, but most of the work went into the question of what goes off and comes back on in which order. Without the BIOS setting and the wait service, the UPS on the 22nd would only have made sure that everything goes off a quarter of an hour later and then stays off just the same.

The long test showed that the chain holds up now. Still open: the run in the heating room, the announcements and the false alarm.

Learning:

A UPS only postpones the outage.
Whether everything comes back up afterwards is decided by BIOS, NAS and boot order.


Image credit: storm lantern by Winston Born / freepngimg.com, license CC BY-NC 4.0.

This post was originally published in German on 12 November 2026.
The original post can be found here: USV fürs Homelab: Wer bleibt an, wenn der Strom geht?

CyberPower Home Assistant Homelab NUT Power Outage Proxmox Self-Hosted Synology UPS

Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert. Kommentare erscheinen nach Freischaltung.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden.