Keep your cameras recording through a power cut: PoE cameras and a UPS
How to keep a camera system running when the power goes out: why PoE cameras make it simple, what to plug into the UPS, how to work out how long the battery lasts, what to set so everything comes back by itself, and how Vigiora Server behaves during and after a blackout.
· 7 min. læsning · Vis som Markdown

A power cut is when you most want your cameras, and when most camera systems stop. The lights go out, the street is dark, the alarm panel beeps, and the recorder is as dead as the fridge.
It does not have to be. With cameras powered over the network cable (PoE) and one battery backup (a UPS) in the right place, the whole system keeps recording. This guide shows what to buy, where to plug it, how long it will last and how to test it.
Why PoE makes this simple#
A camera needs power and a network connection. A Wi-Fi camera gets its power from a wall plug near the camera. Six cameras mean six plugs in six places, and no battery covers them all.
A PoE camera gets both through one network cable, from the PoE switch. So all the power for all the cameras comes from one box. Put a battery behind that one box, and every camera stays on.

For more on the two kinds of camera, see PoE or Wi-Fi cameras.
What goes on the UPS#
Four things, and all four matter.
| Device | Why |
|---|---|
| The PoE switch | It powers every camera. |
| The computer with Vigiora Server | It records. |
| The disk, if it is an external one | No disk, no recording. |
| The router and the modem | For alerts and remote access, and on many networks the router gives out the addresses. |
Leave everything else off it: screens, printers, speakers. Every watt you add shortens the time.
How long will the battery last?#
Two numbers decide it: how much power your devices use, and how much energy the battery holds.

Step 1: add up the load, in watts. A fixed PoE camera uses about 4 to 8 W, more at night when its infrared lights are on. A PTZ camera or one with a heater uses much more. A small PoE switch uses about 5 to 15 W for itself. A mini PC uses 10 to 25 W, a router and a modem about 10 to 20 W together. A plug-in power meter costs little and gives you the real figure.
Step 2: divide the battery by the load. The energy in a battery is its volts times its amp-hours. A common small UPS has one 12 V 7 Ah battery: 84 Wh. You do not get all of it out, so count about 70%:
hours = battery Wh × 0.7 ÷ load W
For the 64 W example, that small UPS gives about 55 minutes. A larger one with two 12 V 9 Ah batteries gives about 2 hours 20 minutes.
Step 3: read the box the right way. The big number on a UPS, such as 600 VA or 1500 VA, says how much load it can carry at once. It does not say how long it lasts. A 64 W system is far below the limit of even a small UPS. What you are buying is battery size, so look for the runtime chart of the model.
These are estimates. Batteries hold less when they are old or cold, and the maker's runtime chart is the better number.
Choosing the UPS and the switch#
- Type of UPS. A line-interactive UPS is the usual choice for this and costs the least. An online (double-conversion) UPS gives cleaner power and costs more. Both switch over fast enough that a computer and a switch do not notice.
- The PoE budget. A PoE switch has a total power budget for all its ports, printed on its data sheet. A standard PoE port (802.3af) gives a camera up to about 13 W, and a PoE+ port (802.3at) up to about 25 W. Add up your cameras and stay under the budget, with room for the night.
- Battery age. UPS batteries last about 3 to 5 years. A UPS with a battery you can change yourself is worth a little more.
- A USB port. A UPS with a USB or network port can tell the computer that the battery is nearly empty. See the next section.
Make everything come back by itself#
A long power cut outlasts any battery. What matters then is that the system starts again alone when the power returns, with nobody at home.
Let the computer start on power
In the computer's BIOS or UEFI settings, find the option for what happens after a power loss. It is often called "Restore on AC power loss" or "After power failure". Set it to power on.
Shut down cleanly before the battery is empty
Connect the UPS to the computer by USB and install the UPS maker's software, or a free tool such as Network UPS Tools on Linux. It shuts the computer down in good order when the battery is nearly empty.
Give the cameras fixed addresses
After a long cut, the router may hand out new addresses. Set a fixed address for every camera, in the camera or in the router. See Fixed IPs and rediscovery.
Test it
Pull the UPS plug out of the wall and watch. Time how long it lasts. Then plug it in again and check that everything comes back without you.
What Vigiora Server does in a power cut#
- While the UPS holds: nothing changes. The cameras send video over the local network and the server writes it to its disk. Recording does not use the internet.
- If the internet is down too: recording goes on. Remote access and AI alerts stop until the connection is back, because both need the internet. Often the provider's own equipment in the street has no power either, so plan for this.
- When the power returns: on Linux, Vigiora Server runs as a service that starts at boot. On Windows it runs as a Windows service. The cameras start, and the recordings begin again.
- If a camera comes back on a new address: the server looks for it by its hardware ID and follows it. The switch is Follow cameras when their address changes, and it is on by default. It works for cameras on the server's own network.
- If a recording gets stuck: since version 1.11.2, the server notices a recording that has written nothing for 90 seconds and restarts it.
- You hear about it: the ready-made automation Camera offline, once you have added it, notifies you when a camera has been offline for 5 minutes, and the daily Briefing lists cameras that went offline. See Automations.
To be honest about the limits: Vigiora does not talk to the UPS. It does not know that the house is on battery, and it does not shut the computer down. The UPS software does that. If your UPS reports to Home Assistant, you can share that sensor with Vigiora like any other device. See IoT devices.
The whole chain, once more#
- PoE cameras, so all camera power comes from one switch.
- The switch, the server, the disk and the router on one UPS.
- A battery sized for the cut you expect, checked with the sum above.
- The computer set to start on power, with a clean shutdown before the battery is empty.
- A test, once a year.
Going away for a while? The same chain is part of the Vigiora checklist for the evening before you leave. For what a server and its disk cost to run, see What Vigiora really costs.
If you do not have a server yet, download Vigiora. Recording is free on any number of cameras.