diff --git a/Batterie_Deye/module.php b/Batterie_Deye/module.php index 785d166..29699e9 100644 --- a/Batterie_Deye/module.php +++ b/Batterie_Deye/module.php @@ -152,7 +152,7 @@ public function RequestAction($Ident, $Value) $this->SetValue("Ladestrom", $lade_strom); $this->SetValue("Entladestrom", 0); - $this->SetValue("Batteriespannung_laden_entladen", 56); + $this->SetValue("Batteriespannung_laden_entladen", 49); } elseif ($power > 0) { @@ -171,7 +171,7 @@ public function RequestAction($Ident, $Value) $this->SetValue("Entladestrom", $entlade_strom); $this->SetValue("Ladestrom", 0); - $this->SetValue("Batteriespannung_laden_entladen", 49); + $this->SetValue("Batteriespannung_laden_entladen", 56); } else { @@ -231,8 +231,8 @@ public function RequestAction($Ident, $Value) //$a = 2.54 * pow($V, 2) - 252 * $V + 6255.4; - $ladestrom_1 = GetValue("Ladestrom"); - $entadestrom_1 = GetValue("Entladedestrom"); + $ladestrom_1 = $this->GetValue("Ladestrom"); + $entadestrom_1 = $this->GetValue("Entladedestrom"); if ($ladestrom_1 > 0 ) { $V = GetValue($this->ReadPropertyInteger("Batteriespannung")) + 1;