diff --git a/Batterie/form.json b/Batterie/form.json index 58e0706..c27d522 100644 --- a/Batterie/form.json +++ b/Batterie/form.json @@ -41,7 +41,7 @@ "caption":"Batteriemanagement", "options":[ { - "caption":"Vom Wechelrichterhertseller", + "caption":"Vom Wechelrichterhersteller", "value":1 }, { diff --git a/Batterie/module.php b/Batterie/module.php index 44bc262..c137f86 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -180,7 +180,7 @@ public function RequestAction($Ident, $Value) // Hier Modul auf Wechselrichter 1 stellen elseif ($batterieladezustand >= $aufdasnachladen) { - $netzbezug = $this->ReadPropertyInteger("Netzbezug"); + $netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug")); $dummy_array[] = $netzbezug*(-1); IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array)); $this->SetValue("PowerSteps", json_encode($dummy_array)); @@ -196,8 +196,9 @@ public function RequestAction($Ident, $Value) if ($batterieladezustand <= $aufdasnachladen) { - $nachladen = $this->ReadPropertyInteger("NachLaden"); + $nachladen = GetValue($this->ReadPropertyInteger("NachLaden")); $dummy_array[] = $nachladen; + IPS_LogMessage("Batterie", ": Nachladen " .$nachladen); $this->SetValue("PowerSteps", json_encode($dummy_array)); }elseif ($batterieladezustand = 100) { diff --git a/library.json b/library.json index f038def..39aad87 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.079", + "version": "1.080", "build": 0, "date": 0 } \ No newline at end of file