gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
386 stars 70 forks source link

UPS Values should have different defaults #102

Open gbakeman opened 2 years ago

gbakeman commented 2 years ago

When UPS values are retrieved in UPS_Device.vb, every value is substituted with a default value if there's an error getting the original value. This could be misleading to the user since they may think that their UPS is reading a strange value (for example, UPS load at 100% or input voltage at 220 volts for 110 volt users). It may be better to use an unrealistic number to show that an error occurred (like -1), or throw an exception to let the calling code know a problem occurred and act accordingly (error, indicator, etc.)

hACKrus commented 2 years ago

I have similar problem with APC Back-UPS Pro 1500G, there two battery connected serial, so default Battery Voltage should be 24V. image NUT send data correctly, as I see in HA. image