From: Stuart Henderson Subject: Re: upd(4): add more sensors (load, power..) To: Walter Alejandro Iglesias Cc: Landry Breuil , tech@openbsd.org Date: Tue, 19 Nov 2024 10:51:00 +0000 On 2024/11/19 10:19, Walter Alejandro Iglesias wrote: > On Sat, Nov 16, 2024 at 12:30:47PM +0100, Landry Breuil wrote: > > so if you have an upd(4) somewhere and you have sensors, i'll be glad to > > know if: > > - you get more sensors and they make sense > > - you get values that make more sense than before > > - you had a value for RunTimeToEmpty that made sense and now doesn't > > (same for AtRateTimeToEmpty/AtRateTimeToFull if you have them) > > - it now breaks/detaches/reattaches > > > > Eaton 3S 550 > > Before: > > hw.sensors.upd0.indicator0=Off (Charging), OK > hw.sensors.upd0.indicator1=On (Discharging), OK > hw.sensors.upd0.indicator2=Off (NeedReplacement), OK > hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK > hw.sensors.upd0.indicator4=Off (ACPresent), OK > hw.sensors.upd0.indicator5=Off (Overload), OK > hw.sensors.upd0.percent0=99.00% (RemainingCapacity), OK > hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK > hw.sensors.upd0.timedelta0=243299.000000 secs (RunTimeToEmpty), OK > > After: > > hw.sensors.upd0.volt0=828.00 VDC (VoltageDc), OK > hw.sensors.upd0.power0=1980.00 W (ConfigApparentPower), OK > hw.sensors.upd0.indicator0=Off (Charging), OK > hw.sensors.upd0.indicator1=On (Discharging), OK > hw.sensors.upd0.indicator2=Off (NeedReplacement), OK > hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK > hw.sensors.upd0.indicator4=Off (ACPresent), OK > hw.sensors.upd0.indicator5=Off (Overload), OK > hw.sensors.upd0.percent0=97.00% (RemainingCapacity), OK > hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK > hw.sensors.upd0.percent2=26.00% (PercentLoad), OK > hw.sensors.upd0.timedelta0=815.043600 secs (RunTimeToEmpty), OK > > > With your patch RunTimeToEmpty now tells the true. > > I guess PercentLoad is ok. > > Regarding VoltageDc and ConfigApparentPower I don't know what they mean. VoltageDc is the voltage at the battery (could either be DC charger voltage or battery voltage I suppose). Unless your batteries are on several rows of shelves, that's not reported correctly. ($work 40kVA UPS has several rows of shelves and DC voltage is 270V so 828V would be a huge one :-) Apparent power is related to the current drawn (whereas "true" power depends on power factor). It should be somewhere in the region of W drawn but not exactly the same. The unit for apparent power should be VA, not W. I'm not sure if "ConfigApparentPower" would be actual use or the max allowed by the UPS; "Config" suggests possibly the latter.