diff --git a/Batterie_Deye/module.php b/Batterie_Deye/module.php index 1686bb2..4a1a7a4 100644 --- a/Batterie_Deye/module.php +++ b/Batterie_Deye/module.php @@ -233,9 +233,9 @@ public function RequestAction($Ident, $Value) //$a = 2.54 * pow($V, 2) - 252 * $V + 6255.4; - if ($this->GetValue("Ladestrom") > 0 ) { + if (GetValue("Ladestrom") > 0 ) { $V = GetValue($this->ReadPropertyInteger("Batteriespannung")) + 1; - }elseif ($this->GetValue("Entladedestrom") > 0) { + }elseif (GetValue("Entladedestrom") > 0) { $V = GetValue($this->ReadPropertyInteger("Batteriespannung")) - 1; } else {