From d4edb78d3777374ee9420cc5ced6bcb0927dd93c Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 5 May 2026 14:54:15 +0200 Subject: [PATCH] no message --- Bat_EV_SDL_V4/module.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Bat_EV_SDL_V4/module.php b/Bat_EV_SDL_V4/module.php index fe539bc..8efc895 100644 --- a/Bat_EV_SDL_V4/module.php +++ b/Bat_EV_SDL_V4/module.php @@ -45,6 +45,8 @@ class Bat_EV_SDL_V4 extends IPSModule $this->RegisterVariableFloat("SDL_Start_Pos", "SDL Start SoC (%)", "", 35); $this->RegisterVariableFloat("EV_Start_Pos", "EV Start SoC (%)", "", 36); $this->RegisterVariableBoolean("Virtual_Reset", "Virtuelle Konten Reset", "~Switch", 37); + + $this->RegisterVariableFloat("Aktuelle_Leistung_Batterien", "Aktuelle Leistung Batterien", "", 38); $this->EnableAction("Virtual_Reset"); // Debug @@ -141,6 +143,9 @@ class Bat_EV_SDL_V4 extends IPSModule $calcRounded = $this->RoundArray($calc, 3); $this->SetIdentValue("CalcJSON", json_encode($calcRounded, JSON_PRETTY_PRINT)); + $totalBat = $this->GetTotalBatteryPowerIstW(); + $this->SetIdentValue("Aktuelle_Leistung_Batterien", round($totalBat * -1, 0)); + } catch (Throwable $e) { $this->SendDebug("Update ERROR", $e->getMessage() . " @ " . $e->getFile() . ":" . $e->getLine(), 0); $this->WriteAllZero("Exception: " . $e->getMessage());