Hello everyone,
I have two UPSs and would like to monitor them both with the NUT server installed on Home Assistant. I managed to configure the server with a device but I can’t but I don’t know the syntax of how to insert a new device into the configuration.
You currently have 2 UPS which are strictly identical right?
From the documentation, you need to distinguish UPSs using the config sub-option. Maybe by using the serial?
devices:
- name: forza
driver: usbhid-ups
port: auto
config:
- serial = XXX
- name: forza2
driver: usbhid-ups
port: auto
config:
- serial = XXX
thanks @makai I will try that
Question: can I add my custom serial or I need to add the real serial number?
If the second option, how I get the serial number?
I think that you need real data that will be used to distinguish between UPSs.
To get data, you may add one UPS and check what you have in HA for serial for example
I do not know how your server is built, mine is running HA supervised. I can go into my docker container console and issue the following command and get the following results. You should be able to as well.
As you can see the maker does not populate the number. I would assume at this point one could have issues trying to choose a ups based on serial number.
lsusb -v was not useful either, same all zero serial number.
Wish I could help more, but try the commands and see if your units are encoded with real serial numbers. with lsupb, you will not need to have nut loaded yet.
If you are running docker, I use the Portainer add-on and within it you can access the various running containers and open a console to a given container. Commands specific to a particular add-on, such as nut, are run from within the container. Others can explain the concepts much better than I can… I am sure.