diff --git a/Batterie/module.php b/Batterie/module.php index 9bc41bd..b00765b 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -202,9 +202,9 @@ public function RequestAction($Ident, $Value) } elseif ($batterieladezustand >= $aufdasnachladen) { $netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug")); if (abs($netzbezug)>$maxleistung){ - $dummy_array[] = $maxleistung; + $dummy_array[] = $maxleistung*(-1); } else{ - $dummy_array[] = $netzbezug*(-1); + $dummy_array[] = $netzbezug; } $this->SetValue("PowerSteps", json_encode($dummy_array)); $this->SetValue("In_Hystere", 0); diff --git a/library.json b/library.json index 69e70cc..b7a904f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.091", + "version": "1.092", "build": 0, "date": 0 } \ No newline at end of file