Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: upd(4): add more sensors (load, power..)
To:
Matthieu Herrb <matthieu@herrb.eu>
Cc:
tech@openbsd.org
Date:
Thu, 21 Nov 2024 17:50:13 +0100

Download raw body.

Thread
Le Wed, Nov 20, 2024 at 09:33:19PM +0100, Matthieu Herrb a écrit :
> On Wed, Nov 20, 2024 at 09:28:51PM +0100, Matthieu Herrb wrote:
> > On Sat, Nov 16, 2024 at 07:59:29PM +0100, Landry Breuil wrote:
> > > new diff after miod@ pointed out i had forgotten a break..
> > 
> > On an eaton 1200 ECO I get:
> > 
> > hw.sensors.upd0.acvolt0=-26.00 VAC (VoltageAc), OK
> > hw.sensors.upd0.power0=1600.00 W (ConfigApparentPower), OK
> > hw.sensors.upd0.indicator0=On (Charging), OK
> > hw.sensors.upd0.indicator1=Off (Discharging), OK
> > hw.sensors.upd0.indicator2=Off (NeedReplacement), OK
> > hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK
> > hw.sensors.upd0.indicator4=On (ACPresent), OK
> > hw.sensors.upd0.indicator5=Off (Overload), OK
> > hw.sensors.upd0.percent0=87.00% (RemainingCapacity), OK
> > hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
> > hw.sensors.upd0.percent2=0.00% (PercentLoad), OK
> > hw.sensors.upd0.timedelta0=2405.689200 secs (RunTimeToEmpty), OK
> > 
> > The 1st line (VolatageAC) seems wrong. It looks  like the inverse of a
> > plausible VoltageDc (2 * 12V batteries in serial)
> > 
> > The other values look ok.

so that means that without the diff, you had a wrong/incoherent value
for RunTimeToEmpty ? If so the 'fix' is apparently needed for all EATON
models.

> hw.sensors.upd0.indicator4=Off (ACPresent), OK
> 
> I'm not sure if it's OK to have ACPresent=Off ... but may be the
> sysctl OK only means that there was no error reading the sensor ?

Not fully sure either, but arent those OK things the ones that are
off-limit wrt sensorsd configuration ?