Loadpoint: suppress PV disable timer while climater is active (#29837)

This commit is contained in:
andig 2026-05-12 09:48:13 +02:00 • committed by GitHub
parent 207fa7984c
commit 47132a4af2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1509,8 +1509,10 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower, batteryBoostPo
// notes: activePhases can be 1, 2 or 3 and phaseTimer can only be active if lp current is already at minCurrent
projectedSitePower -= Voltage * minCurrent * float64(activePhases-1)
}
// kick off disable sequence
if projectedSitePower >= lp.Disable.Threshold {
// kick off disable sequence, unless climater keep-alive is holding
// charging at minCurrent — otherwise the "pausing soon" badge would
// flash on/off forever while climater is active (issue #29834).
if projectedSitePower >= lp.Disable.Threshold && !lp.vehicleClimateActive() {
lp.log.DEBUG.Printf("projected site power %.0fW >= %.0fW disable threshold", projectedSitePower, lp.Disable.Threshold)
if lp.pvTimer.IsZero() {