diff --git a/Bat_EV_SDL_V3_Beta/module.php b/Bat_EV_SDL_V3_Beta/module.php index 6597feb..39c2a55 100644 --- a/Bat_EV_SDL_V3_Beta/module.php +++ b/Bat_EV_SDL_V3_Beta/module.php @@ -168,13 +168,7 @@ public function Update() $underKWh = (float)($c["underKWh"] ?? 0.0); $upKWh = (float)($c["upKWh"] ?? 0.0); - // Grenz-Anker nur wenn SDL selbst Richtung Grenze fährt (dein Wunsch) - if ($real_kWh > $upKWh && $pSdlSollW > 0.0) { - $sdlHitUpperBySDL = true; - } - if ($real_kWh < $underKWh && $pSdlSollW < 0.0) { - $sdlHitLowerBySDL = true; - } + // EV-Fenster (dynamisch erweitert bei SDL virt leer/voll) $evUnderKWh = $underKWh; @@ -368,21 +362,7 @@ public function Update() $this->SendDebug("SDL", "Reset wegen CacheHash-Change auf Startpunkt: Esdl_kWh=" . round($Esdl_kWh, 3), 0); } - // Physikalischer Grenz-Anker (deine Logik) - if ($sdlHitUpperBySDL || $sdlHitLowerBySDL) { - $Esdl_kWh = max(0.0, min($SDL_kWh_ges, $real_kWh_sdl_ges)); - $dtH = 0.0; - $this->SetBuffer("Int_LastTs", (string)$now); - - $this->SendDebug( - "SDL", - "Physikalischer Grenz-Anker: Esdl_kWh=" . round($Esdl_kWh, 3) . - " upper=" . ($sdlHitUpperBySDL ? "1" : "0") . - " lower=" . ($sdlHitLowerBySDL ? "1" : "0"), - 0 - ); - } // ========================================================== // FIX #2: Integrator mit IST-Leistung statt SOLL-Leistung