Prevent automatic phase switching while a phase switch might be in progress (#13235)

This commit is contained in:
MarkusGH 2024-03-31 20:27:48 +02:00 • committed by GitHub
parent a11b9d04bc
commit 1d4a161113
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1161,7 +1161,7 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64, batter
maxCurrent := lp.effectiveMaxCurrent()
// switch phases up/down
if lp.hasPhaseSwitching() {
if lp.hasPhaseSwitching() && lp.phaseSwitchCompleted() {
_ = lp.pvScalePhases(sitePower, minCurrent, maxCurrent)
}