dzomaya/NUTandRpi

Adding multiple UPSs with the script

NightHawkATL opened this issue · 6 comments

I just tried the script and it did add ONE of my 3 UPS units. I have 1x APC and 2x CyberPower 1500VA units that I want to get working with NUT. I have installed and ran NUT before but always had issues so I was hopeful that this would solve my issues but it only setup 1 on the CGI page but did see all 3 when running the script.

image

@NightHawkATL
This is a good feature I've kicked around. Thanks for creating the issue!

Yeah, right now the script does NOT add multiple devices:
https://github.com/dzomaya/NUTandRpi#monitoring-multiple-upses

In the interim, you can probably get the other 2 added if the 1st one is working and all three show up in your nut-scanner -UNq output.

For a deeper dive, Techo Tim's video is a good resource for that use case (it's linked right above that section I linked above).

Feel free to comment back here if you need some input on getting it going.

I have followed TT's video multiple times and have run into issues with the devices eventually dropping offline and I would have to restart all of the services because I must have missed something in building it.

I will have to look back at his write-up to add the other devices and get then named correctly.

I was able to get the other 2 added manually and rename them.

Another suggestion is to add in the remote access setup for setting a user and password to allow for LAN remote monitoring to be able to add the UPS units remotely to devices that are connected to the UPS devices without the USB cable and over IP. I configured it from memory and how the different conf files stated to do it and I am about to test adding one to my TrueNAS Core system to see if it can see it and move on from there.

**Update: I can confirm local "remote" monitoring works as I just added all 3 to my Home Assistant for monitoring.

@NightHawkATL

I configured it from memory and how the different conf files stated to do it and I am about to test adding one to my TrueNAS Core system to see if it can see it and move on from there.

**Update: I can confirm local "remote" monitoring works as I just added all 3 to my Home Assistant for monitoring.

Interesting, you're the 2nd "Home Assistant" user to comment in the last few days (other is over here: #1).

I am assuming you added a LISTEN directive to /etc/nut/upsd.conf to get Home Assistant working. Is that correct?

I'll add another feature request for the remote monitoring soon.

Correct. I added the LISTEN option and set it to 0.0.0.0 as 127.0.0.1 dint allow the connection.

I'll add another feature request for the remote monitoring soon.

Done.
#5