From 7ddd39caa76b0024c3287ec2b2c4e9f439a07763 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 26 Feb 2025 10:15:07 +0100 Subject: [PATCH] - --- Batterie/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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