hassio-addons / addon-nut

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

Allow option for minsupplies to be 0. #382

Closed skaggerik closed 1 month ago

skaggerik commented 1 month ago

Problem/Motivation

One UPS is configured, which should never shut down HA or addon. Therefore Powervalue was set to 0.

Expected behavior

Addon would run as normal, but never be shut down by UPS low battery.

Actual behavior

Addon crashed:

Fatal error: insufficient power configured!

Sum of power values........: 0
Minimum value (MINSUPPLIES): 1

Edit your upsmon.conf and change the values.
[11:14:42] WARNING: upsmon crashed, halting add-on

Steps to reproduce

Use this configuration:

Proposed changes

Allow for a powervalue of 0 with only one UPS. Allow minsupplies to be 0?

sinclairpaul commented 1 month ago

See #368