From ba7e31fababe66513c640ef260baa1117811cade Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 16 Oct 2025 08:14:54 +0200 Subject: [PATCH] no message --- Batterie_Deye/module.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Batterie_Deye/module.php b/Batterie_Deye/module.php index 6407af7..4aedc28 100644 --- a/Batterie_Deye/module.php +++ b/Batterie_Deye/module.php @@ -132,9 +132,10 @@ public function RequestAction($Ident, $Value) } } - public function SetAktuelle_Leistung(int $power) + public function SetAktuelle_Leistung(int $y) { - + $power = (-1)*$y; + if ($power < 0) { // Laden