From dcc8ed6f7e6c6e4cc5b39f00019525fa940e6015 Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 26 May 2026 18:30:10 +0200 Subject: [PATCH] Prioritizer: no flexibility for switch devices in MinPV (#30194) --- core/loadpoint_api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/loadpoint_api.go b/core/loadpoint_api.go index 6f44de9de..69963265a 100644 --- a/core/loadpoint_api.go +++ b/core/loadpoint_api.go @@ -662,7 +662,11 @@ func (lp *Loadpoint) GetChargePowerFlexibility(rates api.Rates) float64 { return lp.GetChargePower() } - // MinPV mode + // MinPV mode: a charger without current control (switch socket or heatpump) cannot release power. + if lp.chargerHasFeature(api.SwitchDevice) || lp.chargerHasFeature(api.Continuous) { + return 0 + } + return max(0, lp.GetChargePower()-lp.EffectiveMinPower()) }