chore: allow small negative charge power (#6990)

This commit is contained in:
andig 2023-03-21 23:06:00 +01:00 • committed by GitHub
parent 377089fab8
commit 09a05d000e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1196,8 +1196,9 @@ func (lp *Loadpoint) UpdateChargePower() {
lp.log.DEBUG.Printf("charge power: %.0fW", value)
lp.publish("chargePower", value)
// use -1 for https://github.com/evcc-io/evcc/issues/2153
if lp.chargePower < -1 {
// https://github.com/evcc-io/evcc/issues/2153
// https://github.com/evcc-io/evcc/issues/6986
if lp.chargePower < -20 {
lp.log.WARN.Printf("charge power must not be negative: %.0f", lp.chargePower)
}