Prevent starting pv disable timer when phase scaling is pending (#2762)
This commit is contained in:
parent
2ef0ab750c
commit
057c49bccc
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue