addon-nut icon indicating copy to clipboard operation
addon-nut copied to clipboard

Error fetching UPS state

Open erkr opened this issue 10 months ago • 24 comments

The add on typically runs fine for several weeks, and then gets stuck with this error in HA:


Logger: homeassistant.components.nut
Source: helpers/update_coordinator.py:412
integration: Network UPS Tools (NUT) (documentation, issues)
First occurred: 00:05:21 (1 occurrences)
Last logged: 00:05:21

Error fetching NUT resource status data: Error fetching UPS state: Error running: LIST VAR mge: ERR DATA-STALE

In the add-on I see this in the log:

880344.260050	Poll UPS [mge@localhost] failed - Data stale
880349.260288	Poll UPS [mge@localhost] failed - Data stale
....

Just restarting the add-on resolves the issue. So the issue reported here is that the add-on doesn't recover (the incidental stale errors themselves are ok)

I increased the settings a little, but that only reduces the incident rate, but doesn't solve it:

upsd_maxage: 60
upsmon_deadtime: 40

erkr avatar Mar 16 '25 10:03 erkr