From 28fc4b65b862ce6b043e6dcb8d7ee6877634692a Mon Sep 17 00:00:00 2001 From: mfuchs1984 <57141790+mfuchs1984@users.noreply.github.com> Date: Thu, 1 May 2025 11:29:49 +0200 Subject: [PATCH] Loadpoint: improve battery boost coarse current step-up (#20969) --- core/loadpoint.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 80f0cf8b2..8da6bd78c 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1332,7 +1332,11 @@ func (lp *Loadpoint) boostPower(batteryBoostPower float64) float64 { delta := math.Max(100, math.Abs(lp.site.GetResidualPower())) if lp.coarseCurrent() { - delta = math.Max(delta, lp.EffectiveStepPower()) + // add effective step power to delta to make sure to step up to the next full amp + // just using lp.EffectiveStepPower() as delta is not enough because this will result + // in a too low current when there is a bit remaining grid consumption due to the accuracy + // of the battery controller + delta += lp.EffectiveStepPower() } // start boosting by setting maximum power