Prevent starting pv disable timer when phase scaling is pending (#2762)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled

This commit is contained in:
andig 2022-03-03 22:10:00 +01:00 • committed by GitHub
parent 2ef0ab750c
commit 057c49bccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1167,7 +1167,7 @@ func (lp *LoadPoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64, batter
if mode == api.ModePV && lp.enabled && targetCurrent < minCurrent {
// kick off disable sequence
if sitePower >= lp.Disable.Threshold {
if sitePower >= lp.Disable.Threshold && lp.phaseTimer.IsZero() {
lp.log.DEBUG.Printf("site power %.0fW >= %.0fW disable threshold", sitePower, lp.Disable.Threshold)
if lp.pvTimer.IsZero() {