no message

This commit is contained in:
2026-02-05 17:12:25 +01:00
parent 875c40e179
commit d6a5d2c1f2

View File

@@ -614,13 +614,20 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array
];
}
$batteriesRaw = json_decode($this->ReadPropertyString("Batteries"));
$totalPower_ist = 0;
print_r($batteries);
foreach ($batteries as $bat) {
$totalPower_ist += 0; // GetValue($bat['register_bat_power']);
print_r($batteriesRaw);
foreach ($batteriesRaw as $bat) {
$totalPower_ist += GetValue($bat['register_bat_power']);
}
if(($pEvW + $pSdlW) === 0){
$this->SetValue("Aktuelle_Leistung_EV", $totalPower_ist/2);