fix: bufferStartSoc 100% never triggers auto-start charging (#27922)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: naltatis <152287+naltatis@users.noreply.github.com>
This commit is contained in:
Copilot 2026-03-04 15:02:22 +00:00 • committed by GitHub
parent 2610f30520
commit 3428ddf2c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -850,7 +850,7 @@ func (site *Site) sitePower(totalChargePower, flexiblePower float64) (float64, b
} else {
// if battery is above bufferSoc allow using it for charging
batteryBuffered = site.bufferSoc > 0 && site.battery.Soc > site.bufferSoc
batteryStart = site.bufferStartSoc > 0 && site.battery.Soc > site.bufferStartSoc
batteryStart = site.bufferStartSoc > 0 && site.battery.Soc >= site.bufferStartSoc
}
}