Battery powered routers

I am looking for an easy to implement and not too expensive solution to provide backup power for my routers, like the ones Sonoff is offering. Using power banks was my first thought, but most of them do not support (or specify) passthrough charging and almost none of them support always on feature (some support low current charging for couple hours, but you need to activate this feature each time). Yes, there are some professional power banks that do all that, but they are huge and extremely expensive. So, I need some sort of mini UPS. Has anyone found away of doing that and could share their experiences?

I have good experience with APC UPS. They offer a big variety on size and power. So also an affordable small things, that would serve your goal.

I have one, it is huge and expensive, I am looking for more delicate solution.

How is 120 euros expensive for a quality UPS device, in comparison to some USB powerbank not suiting your demands, that also mostly cost around 100 euros?

1 Like

Yep, better buy a strong UPS than a sh… faky USB UPS…

i have 4 CyberPower 1500VA and they can be integrate into HA :wink:

1 Like

I dig that UPS dashboard. What hardware are you using to get data from the UPS units? RPIs running NUTS or do they each have Ethernet cards?

Yep, its raspberry PiZeroW X3, attached to USB port of CyberPower UPS and 1 for my HA NUC8I5 is directly on a USB port with the NUT AddOn of HA.

Works really great and accurate.

here is the tuto i follow : https://www.reddit.com/r/homelab/comments/5ssb5h/ups_server_on_raspberry_pi/

config file are very simple :

One trick is to go in raspi-config and set “wait for network at boot”, then put a static IP on your Rpi, then

sudo apt update && apt upgrade -y
sudo apt install nut
lsusb

sudo nano /etc/nut/ups.conf 
fill with this : and change the name of UPS you want in HA :slight_smile: 

[CP1500_SalonSud]
        driver = usbhid-ups
        port = auto
        desc = "CP1500_SalonSud"
	pollinterval = 15

then:

sudo upsdrvctl start

sudo nano /etc/nut/upsd.conf
LISTEN 127.0.0.1 3493
LISTEN 192.168.1.XX 3493


sudo nano /etc/nut/upsd.users
[admin]
        password = xxxxxxxxx
        actions = SET
        instcmds = ALL
[upsmon_local]
        password  = xxxxxxxx
        upsmon master
[upsmon_remote]
        password  = xxxxxxxx
        upsmon slave
[monuser]                               #This is what Synology DSM expects
        password  = secret   #Leave this here.
        upsmon slave

sudo nano /etc/nut/upsmon.conf 
DEADTIME 25
MAXAGE 25
MONITOR CP1500_SalonSud@localhost 1 upsmon_local xxxxxxx master

sudo nano /etc/nut/nut.conf
MODE=netserver

as you see its a 4-5 step config, easy and simple :smirk:

this pretty connector is recommended :

In fact, EVERY UPS who have a USB port can be integrate to HA with NUT :
https://networkupstools.org/stable-hcl.html

you can found your driver here and more info :smirk:

3 Likes

Would something this 18650 battery powered 12V mini UPS be sufficient?

Hey, Olivier!
Thanks for this guide! I installed it on my Pi Zero and it “kind of” works, but i have a problem: pi finds UPS, but since it’s Socomec model (netys py1700) it says that it’s not supported with usbhid driver. On your second link i found socomec’s driver, but how / where to install it? If i just enter “snmp-ups” it says file not found…

One solution could be something like this: Load Sharing for the 18650 Battery Shield V3 - YouTube

But it has a lot of design flaws and it is not easy to fix if you have little experience in this field.

hi!

sudo nano /etc/nut/ups.conf
fill with this : and change the name of UPS you want in HA :slight_smile:

[CP1500_SalonSud]
driver = usbhid-ups
port = auto
desc = “CP1500_SalonSud”
pollinterval = 15

as you can see it s here your driver have to be placed : remove usbhid-ups and put yours, save, reboot pi, thats should work.

And follow the rest of the steps carefully, like go in raspi-config and set “wait for network on boot”.

I have used a few of these for the last 5 years which have worked very well.

https://www.mini-box.com/OpenUPS2

Yes, i found that config file, the problem is that my file (snmp-ups) is missing, and i can’t find it…
The main point is i’d like to connect my UPS to HA to monitor it…

strange…normaly done with
sudo apt install nut

Yeah, well…
i even did a reinstall… i looked into map where drivers are ( i think it’s “lib”) and indeed there’s no this drive in there. All others are there, but not this one.
Maybe in the future it will come…

1 Like

you can install with another way perhaps ? look into NUT support and ask perhaps…

I did some research, but it’s too complicated for me. supposely i’d have to install some tools and play with that (compile driver)… i’m not that skilled in these things…
After all, it’s not guaranteed that it would work at the end…

1 Like