hassio-addons / addon-nut

Network UPS Tools - Home Assistant Community Add-ons
https://addons.community
MIT License
188 stars 36 forks source link

UPS load information not available with NUT addon #361

Closed boardlord1 closed 4 months ago

boardlord1 commented 5 months ago

Problem/Motivation

I've 2 APC UPSs. One is connected to a Synology NAS, and one connected directly to my rPI4 running HAOS. The NUT addon has picked both of them up without problem. However, I only see load information for the one connected to the Synology NAS, the one connected directly to the PI reports 0%

Expected behavior

Both UPSs to report load %

Actual behavior

Only the UPS connected to my Synology NAS report load % Screenshot: image

The one connected to the PI reports 0% load: image

NUT addon log:

-----------------------------------------------------------
 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 0.13.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.5.3
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 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
[15:34:54] INFO: Configuring timezone (Europe/Budapest)...
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
[15:34:56] INFO: Setting mode to netserver...
[15:34:56] INFO: Generating /etc/nut/upsd.users...
[15:34:57] INFO: Configuring user: XXXXXXX
[15:34:58] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[15:34:59] INFO: Configuring Device named myups...
[15:34:59] INFO: Starting the UPS drivers...
HIDParse: LogMax is less than LogMin. Vendor HID report descriptor may be incorrect; interpreting LogMax -1 as 255 in ReportID: 0x0c
HIDParse: LogMax is less than LogMin. Vendor HID report descriptor may be incorrect; interpreting LogMax -1 as 255 in ReportID: 0x22
HIDParse: LogMax is less than LogMin. Vendor HID report descriptor may be incorrect; interpreting LogMax -1 as 255 in ReportID: 0x40
Using subdriver: APC HID 0.98
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - UPS driver controller 2.8.0
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
s6-rc: info: service legacy-services successfully started
[15:35:00] INFO: Starting the UPS information server...
   0.000000 fopen /run/nut/upsd.pid: No such file or directory
   0.000254 Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!

   0.001567 [D1] debug level is '1'
   0.002016 listening on 0.0.0.0 port 3493
   0.002618 Connected to UPS [myups]: usbhid-ups-myups
   0.005479 Running as foreground process, not saving a PID file
[15:35:00] INFO: Starting the UPS monitor and shutdown controller...
   0.000000 fopen /run/nut/upsmon.pid: No such file or directory
   0.000225 Could not find PID file to see if previous upsmon instance is already running!

   0.000649 Using power down flag file /etc/killpower
   0.001036 UPS: myups@localhost (primary) (power value 1)
   0.001091 [D1] debug level is '1'
   0.001213 [D1] debug level is '1'
   0.001230 Warning: running as one big root process by request (upsmon -p)
   0.001419 [D1] Saving PID 459 into /run/nut/upsmon.pid
Init SSL without certificate database
   0.008515 [D1] Trying to connect to UPS [myups@localhost]
   0.542791 User upsmonmaster@127.0.0.1 logged into UPS [myups]
   0.010908 [D1] Logged into UPS myups@localhost

Report on HA Community: https://community.home-assistant.io/t/network-ups-tools-nut-integration-shows-constant-0-ups-load/684991

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!