Skip to content

Commit

Permalink
chore: allow small negative charge power (evcc-io#6990)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Mar 21, 2023
1 parent 377089f commit 09a05d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 09a05d0

Please sign in to comment.