no message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user