Keba: fix energy readings

This commit is contained in:
andig 2023-05-22 10:29:18 +02:00
parent 083fea6e52
commit eebdacaf33

View file

@ -202,7 +202,7 @@ func (wb *Keba) totalEnergy() (float64, error) {
return 0, err
}
return float64(binary.BigEndian.Uint32(b)) / 1e3, nil
return float64(binary.BigEndian.Uint32(b)) / 1e4, nil
}
// chargedEnergy implements the api.ChargeRater interface
@ -212,7 +212,7 @@ func (wb *Keba) chargedEnergy() (float64, error) {
return 0, err
}
return float64(binary.BigEndian.Uint32(b)) / 1e3, nil
return float64(binary.BigEndian.Uint32(b)) / 1e4, nil
}
// currents implements the api.PhaseCurrents interface