Restore logic for chargers that disable themselves to be able to switch phases (#12847)
This commit is contained in:
parent
e6f0d61c5b
commit
f8a10aecd6
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue