diff --git a/Batterie/module.php b/Batterie/module.php index ee3d862..ff6a6ff 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -68,12 +68,7 @@ class Batterie extends IPSModule } public function SetAktuelle_Leistung(int $power) - { /* - // Batterie-spezifische Eigenschaften abrufen - $array_powersteps = $this->GeneratePowerSteps(); - $aktuellerWert = $this->GetValue("Aktuelle_Leistung"); - $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); - */ + { $batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen $spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property @@ -125,11 +120,7 @@ class Batterie extends IPSModule $aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen"); $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); $batterieladezustand = GetValue($this->ReadPropertyInteger("Batterieladezustand")); - //$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen - $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen - IPS_LogMessage("Batterie", "Batterieladezustand: ".$batterieladezustand); - IPS_LogMessage("Batterie", "AufdasNachladen: ".$aufdasnachladen); - IPS_LogMessage("Batterie", "MinimumEntladen:". $minimumentladen); + if ($Peak) { if ($batterieladezustand <= $minimumentladen) { diff --git a/library.json b/library.json index a0e62b7..33e4d4f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.250", + "version": "0.251", "build": 0, "date": 0