Keba: fix energy readings
This commit is contained in:
parent
083fea6e52
commit
eebdacaf33
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue