Skip to content

Commit

Permalink
Easee: return charge power 0 when charger disconnected (evcc-io#10193)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni authored Oct 8, 2023
1 parent 6b61239 commit 4e6253c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charger/easee.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,10 @@ var _ api.Meter = (*Easee)(nil)

// CurrentPower implements the api.Meter interface
func (c *Easee) CurrentPower() (float64, error) {
if status, err := c.Status(); err != nil || status == api.StatusA {
return 0, err
}

c.mux.Lock()
defer c.mux.Unlock()

Expand Down

0 comments on commit 4e6253c

Please sign in to comment.