Hi all, got a strange NUT tools problem I don’t see covered by previous posts, YT videes, help needed and appreciated.
I have 2 x APC Smart 1000 UPS connected to USB on Dell Optiplex running latest HA OS
Nut tools add-on & integration installed
If I configure one device in the add-on then add a device in the integration, using “a0d7b954-nut” as the host, I can see the UPS reporting data, this is true for both UPSs but only one at a time
When I try to configure the add-on to have both devices, it will not start
Any pointers on how to get this working?
This works (1 device)
users:
- username: nutuser
password: nutpassword
instcmds:
- all
actions: []
devices:
- name: HA-CCTV-UPS
driver: usbhid-ups
port: /devices/pci0000:00/0000:00:14.0/usb1/1-6
config:
- vendorid = 051d
- desc = HA-CCTV-UPS
serial: AS10########
mode: netserver
shutdown_host: false
This also works (the other device)
users:
- username: nutuser
password: nutpassword
instcmds:
- all
actions: []
devices:
- name: NAS-UPS
driver: usbhid-ups
port: /devices/pci0000:00/0000:00:14.0/usb1/1-8
config:
- vendorid = 051d
- desc = NAS-UPS
serial: 3S15########
mode: netserver
shutdown_host: false
This does NOT work, add-on will not start
users:
- username: nutuser
password: nutpassword
instcmds:
- all
actions: []
devices:
- name: HA-CCTV-UPS
driver: usbhid-ups
port: /devices/pci0000:00/0000:00:14.0/usb1/1-6
config:
- vendorid = 051d
- desc = HA-CCTV-UPS
serial: AS10########
- name: NAS-UPS
driver: usbhid-ups
port: /devices/pci0000:00/0000:00:14.0/usb1/1-8
config:
- vendorid = 051d
- desc = NAS-UPS
serial: 3S15########
mode: netserver
shutdown_host: false
Log file for failed start
-----------------------------------------------------------
Add-on: Network UPS Tools
Manage battery backup (UPS) devices
-----------------------------------------------------------
Add-on version: 0.13.1
You are running the latest version of this add-on.
System: Home Assistant OS 13.1 (amd64 / generic-x86-64)
Home Assistant Core: 2024.8.3
Home Assistant Supervisor: 2024.08.0
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[20:55:11] INFO: Configuring timezone (Europe/London)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[20:55:11] INFO: Setting mode to netserver...
[20:55:11] INFO: Generating /etc/nut/upsd.users...
[20:55:11] INFO: Configuring user: nutuser
[20:55:12] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[20:55:12] INFO: Configuring Device named HA-CCTV-UPS...
[20:55:12] INFO: Configuring Device named NAS-UPS...
[20:55:12] INFO: Starting the UPS drivers...
WARNING: warn_if_bad_usb_port_filename(): port argument specified to
the driver is "/devices/pci0000:00/0000:00:14.0/usb1/1-6" but USB drivers do not use it and rely on
libusb walking all devices and matching their identification metadata.
NUT documentation recommends port="auto" for USB devices to avoid confusion.
interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid of this message)
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
Using subdriver: APC HID 0.98
USB communication driver (libusb 1.0) 0.43
WARNING: warn_if_bad_usb_port_filename(): port argument specified to
the driver is "/devices/pci0000:00/0000:00:14.0/usb1/1-8" but USB drivers do not use it and rely on
libusb walking all devices and matching their identification metadata.
NUT documentation recommends port="auto" for USB devices to avoid confusion.
interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid of this message)
Can't claim USB device [051d:0003]@0/0: Entity not found
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Driver failed to start (exit status=1)
Network UPS Tools - UPS driver controller 2.8.0
cont-init: info: /etc/cont-init.d/nut.sh exited 1
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
cont-init: warning: some scripts exited nonzero
s6-rc: warning: unable to start service legacy-cont-init: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped