From 99595b72cdae97f64526052c69e7008d1cb3ff9e Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 14 Feb 2023 22:36:33 +0100 Subject: [PATCH] Use battery buffer only when already charging --- core/loadpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 47dc22941..8e86fbe69 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1090,7 +1090,7 @@ func (lp *Loadpoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64, batter lp.log.DEBUG.Printf("pv charge current: %.3gA = %.3gA + %.3gA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, activePhases) // in MinPV mode or under special conditions return at least minCurrent - if (mode == api.ModeMinPV || batteryBuffered || lp.climateActive()) && targetCurrent < minCurrent { + if (mode == api.ModeMinPV || batteryBuffered && lp.charging()) && targetCurrent < minCurrent { return minCurrent }