From 1333178578fbf010844eeaae48fad8d21e0ce0a2 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 17 Feb 2022 18:17:15 +0100 Subject: [PATCH] Pin active phases to 1 to handle slow phase switching (#2612) --- core/loadpoint.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/loadpoint.go b/core/loadpoint.go index 41a4ed8bc3..d3384981e4 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1077,6 +1077,11 @@ func (lp *LoadPoint) pvScalePhases(availablePower, minCurrent, maxCurrent float6 // observed phase state inconsistency (https://github.com/evcc-io/evcc/issues/1572, https://github.com/evcc-io/evcc/issues/2230) if phases > 0 && phases < lp.activePhases { lp.log.WARN.Printf("ignoring inconsistent phases: %dp < %dp observed active", phases, lp.activePhases) + + // if 3p->1p change is slow and we're no longer charging, we'll correct the observed phases here + if lp.GetStatus() == api.StatusB { + lp.activePhases = 1 + } } // this can happen the first time for a 1p3p-capable charger, see https://github.com/evcc-io/evcc/issues/2520