While writing a new driver for Siemens UPSes, I encountered the following 
The UPS is not able to indicate the current battery charge level as a numeric 
value, but only as a Boolean value: below or above 85%.
(Apart from that, it can also signal a Boolean 'critical' level, which is used 
to activate the 'LB' status in NUT. This works fine.)

There is currently no variable in nut-names.txt that can hold such a battery 
charge indication, all existing variables are percentages, voltages or other 
numeric values.

What would be your preferred solution?
- Create a new variable (for example 'battery.charge.indication') with an 
opaque string value, such as "<85%" or ">85%",
- Place such as string in the variable 'battery.charge', (this would probably 
confuse software that expects a number there),
- Place some numeric value in 'battery.charge' for the two (or actually three) 
situations (which values?),
- Leave out the charge indication altogether,
- something else...


Kind regards,

DISCLAIMER: For our full disclaimer, please visit 
Nut-upsdev mailing list

Reply via email to