diff --git a/Batterie/module.php b/Batterie/module.php index d24efd0..44bc262 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -180,7 +180,8 @@ public function RequestAction($Ident, $Value) // Hier Modul auf Wechselrichter 1 stellen elseif ($batterieladezustand >= $aufdasnachladen) { - $dummy_array[] = $this->ReadPropertyInteger("Netzbezug")*(-1); + $netzbezug = $this->ReadPropertyInteger("Netzbezug"); + $dummy_array[] = $netzbezug*(-1); IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array)); $this->SetValue("PowerSteps", json_encode($dummy_array)); @@ -195,7 +196,8 @@ public function RequestAction($Ident, $Value) if ($batterieladezustand <= $aufdasnachladen) { - $dummy_array[] = $this->ReadPropertyInteger("NachLaden"); + $nachladen = $this->ReadPropertyInteger("NachLaden"); + $dummy_array[] = $nachladen; $this->SetValue("PowerSteps", json_encode($dummy_array)); }elseif ($batterieladezustand = 100) { diff --git a/library.json b/library.json index 11b5086..f038def 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.078", + "version": "1.079", "build": 0, "date": 0 } \ No newline at end of file