hassio-addons / addon-nut

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

Allow option for minsupplies to be 0. #382

Closed skaggerik closed 2 months ago

skaggerik commented 2 months 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 2 months ago

See #368