hassio-addons / addon-nut

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

Unstable experience with APC UPs #354

Closed marcgarciamarti closed 4 months ago

marcgarciamarti commented 7 months ago

Problem/Motivation

My experience with an APC UPS is bad. The UPS keeps reporting LB very frequently, even though I replaced the battery 1 month ago.

While this could be related to my unit being unhealthy, It looks like the standard nut component has issues with APC UPS: https://github.com/networkupstools/nut/issues/2347. The last post is mine. I echoed the issues reported by other APC owners running the native nut project, because I believe the HA add-on version does implement that native project in a containerized manner.

Expected behavior

I expected to have stable telemetry that I could use to trigger healthy notifications. With my current experience, that is not an option at all.

Actual behavior

APC devices might report unstable telemetry

Steps to reproduce

Configure the integration like this:

users:
  - username: pass
    password: pwd
    instcmds:
      - all
    actions: []
devices:
  - name: apc-cs350
    driver: usbhid-ups
    port: auto
    config:
      - desc = "APC Back-UPS CS350"
      - vendorid = 051d
Screenshot 2024-04-03 at 00 16 28 Screenshot 2024-04-03 at 00 03 02
github-actions[bot] commented 6 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!

giannoug commented 5 months ago

Same issue here. This bug has been reported upstream: https://github.com/networkupstools/nut/issues/2347

Last comment mentions that version 2.8.2 should fix the issue. This addon is using 2.8.0.

sinclairpaul commented 5 months ago

The addon uses the latest version published in the Debian repo's. Building NUT is likely not something we will implement.

If you need the functionality of later versions I would suggest you look at alternate methods of running the software.

giannoug commented 5 months ago

That makes sense. Even Debian unstable doesn't have it yet. Its at 2.8.1.

giannoug commented 5 months ago

Checking with upstream again, it seems that adding "pollonly" to the configuration fixes this issue. Any idea how to achieve that in the addon?

image

This doesn't seem to work. How can I check the generated configuration file?

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!

giannoug commented 4 months ago

I'm not sure how and why, but this was fixed for me: image

The only change I did was the one I mentioned around the end of May.

marcgarciamarti commented 4 months ago

I'm not sure how and why, but this was fixed for me:

image

The only change I did was the one I mentioned around the end of May.

Hi there! Thanks! I went ahead and added that option to my config, and the continuous flow of notifications has ceased. It looks like you hit the nail right on its head. Thanks!!

giannoug commented 4 months ago

It looks like you hit the nail right on its head.

It stopped working for me again, after I tested wether the UPS works. Stuck on 99% OL CHRG 😥