From d23b317093073eac940b59a7e59b304e2d12eba6 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 26 Jan 2026 07:23:43 +0100 Subject: [PATCH] no message --- Bat_EV_SDL/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bat_EV_SDL/module.php b/Bat_EV_SDL/module.php index aaa440f..97365e7 100644 --- a/Bat_EV_SDL/module.php +++ b/Bat_EV_SDL/module.php @@ -57,7 +57,7 @@ class Bat_EV_SDL extends IPSModule public function Update() { - // Damit dir ein Fehler nicht wieder als -32603 "durchschlägt" + try { if (!GetValue($this->GetIDForIdent("State"))) { @@ -166,7 +166,7 @@ class Bat_EV_SDL extends IPSModule $real_kWh = $capKWh / 100.0 * $socPct; // --- Deine 3 Fälle (minimal abgesichert, keine Änderung der Grundfunktion) --- - if ($underKWh < $real_kWh && $upKWh > $real_kWh) { + if ($underKWh <= $real_kWh && $upKWh >= $real_kWh) { $SDL_SOC = 50.0; $EV_SOC = ($capKWh > 0.0) ? (($real_kWh - $underKWh) * 100.0 / $capKWh) : 0.0;