Skip to content

Commit

Permalink
Easee: always pause/resume when phase switching on charger level (evc…
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni authored Aug 8, 2024
1 parent 55846f5 commit 9056fc6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charger/easee.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ func (c *Easee) Phases1p3p(phases int) error {
} else {
// charger level
if phases == 3 {
phases = 2 // mode 2 means 3p
phases = 2 // mode 2 means auto
}

// change phaseMode only if necessary
Expand All @@ -795,10 +795,9 @@ func (c *Easee) Phases1p3p(phases int) error {
if _, err = c.postJSONAndWait(uri, data); err != nil {
return err
}

// disable charger to activate changed settings (loadpoint will reenable it)
err = c.Enable(false)
}
// disable charger to activate changed settings (loadpoint will reenable it)
err = c.Enable(false)
}

return err
Expand Down

0 comments on commit 9056fc6

Please sign in to comment.