no message

This commit is contained in:
belevo\mh
2026-01-27 08:49:52 +01:00
parent c6a8c32a65
commit cf126855ba

View File

@@ -10,7 +10,7 @@ class Bat_EV_SDL_V2 extends IPSModule
// Properties
$this->RegisterPropertyString("Batteries", "[]");
//$this->RegisterPropertyInteger("SDL_Leistung", 0);
//$this->RegisterPropertyInteger("$upKWh + $underKWh)", 0);
$this->RegisterPropertyInteger("SDL_Leistung_Laden", 0);
$this->RegisterPropertyInteger("SDL_Leistung_Entladen", 0); // W
$this->RegisterPropertyInteger("UpdateInterval", 5); // Minuten
@@ -273,7 +273,7 @@ class Bat_EV_SDL_V2 extends IPSModule
private function BuildBatteryCache(bool $force): void
{
$batteriesRaw = $this->ReadPropertyString("Batteries");
$sdlTotalW = max(0, (int)$this->ReadPropertyInteger("SDL_Leistung"));
//$sdlTotalW = max(0, (int)$this->ReadPropertyInteger("SDL_Leistung"));
$sdlTotalW_laden = max(0, (int)$this->ReadPropertyInteger("SDL_Leistung_Laden"));
$sdlTotalW_entladen = max(0, (int)$this->ReadPropertyInteger("SDL_Leistung_Entladen"));
$hours = self::HOURS;