From 9a91758c583fbfa47d0ad2923c864ad1c191c75e Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 18 May 2026 12:54:40 +0200 Subject: [PATCH] no message --- Bat_EV_SDL_V4/module.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Bat_EV_SDL_V4/module.php b/Bat_EV_SDL_V4/module.php index 085159d..b6f1f04 100644 --- a/Bat_EV_SDL_V4/module.php +++ b/Bat_EV_SDL_V4/module.php @@ -1102,10 +1102,12 @@ class Bat_EV_SDL_V4 extends IPSModule // SDL muss bei 50% sein $sdlPct = ($eSDL / $sdlTotal) * 100.0; - if (abs($sdlPct - 50.0) > 0.001) { + // SDL muss im neutralen Bereich sein. + // Zwischen 50% und 60% ist die EV-Rückrechnung erlaubt. + if ($sdlPct < 50.0 || $sdlPct > 60.0) { $this->SendDebug( "EV_Recalc", - "Skip: SDL nicht bei 50%, aktuell=" . round($sdlPct, 3) . "%", + "Skip: SDL nicht im Bereich 50-60%, aktuell=" . round($sdlPct, 3) . "%", 0 ); return;