From 1e7efaef6ef9fe0c84bb3a751d7b41a94abd198c Mon Sep 17 00:00:00 2001 From: DanielHaefliger Date: Thu, 5 Feb 2026 17:16:52 +0100 Subject: [PATCH] no message --- Bat_EV_SDL _V2/module.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index 47cb416..2685c01 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -619,15 +619,18 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array $totalPower_ist = 0; print_r($batteriesRaw); + print_r("\N"); + foreach ($batteriesRaw as $bat) { + print_r($bat); + print_r("\N"); + print_r($GetValue($bat['register_bat_power'])); + print_r("\N"); + $totalPower_ist += GetValue($bat['register_bat_power']); } - - - - if(($pEvW + $pSdlW) === 0){ $this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/2);