no message

This commit is contained in:
2026-02-05 17:16:52 +01:00
parent d6a5d2c1f2
commit 1e7efaef6e

View File

@@ -619,15 +619,18 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
$totalPower_ist = 0; $totalPower_ist = 0;
print_r($batteriesRaw); print_r($batteriesRaw);
print_r("\N");
foreach ($batteriesRaw as $bat) { 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']); $totalPower_ist += GetValue($bat['register_bat_power']);
} }
if(($pEvW + $pSdlW) === 0){ if(($pEvW + $pSdlW) === 0){
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/2); $this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/2);