Skip to content

Commit

Permalink
Restore logic for chargers that disable themselves to be able to swit…
Browse files Browse the repository at this point in the history
…ch phases (#12847)
  • Loading branch information
MarkusGH authored Mar 11, 2024
1 parent e6f0d61 commit f8a10ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,11 @@ func (lp *Loadpoint) syncCharger() error {
return err
}

// some chargers (i.E. Easee in some configurations) disable themself to be able to switch phases
if !enabled && lp.enabled && !lp.phaseSwitchCompleted() {
return lp.charger.Enable(true) // enable charger
}

if lp.chargerUpdateCompleted() {
defer func() {
lp.enabled = enabled
Expand Down

0 comments on commit f8a10ae

Please sign in to comment.