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