diff --git a/Batterie_Deye/module.php b/Batterie_Deye/module.php index 7ee6809..79541cd 100644 --- a/Batterie_Deye/module.php +++ b/Batterie_Deye/module.php @@ -11,8 +11,8 @@ class Batterie_Deye extends IPSModule // Batterie spezifische Eigenschaften $this->RegisterPropertyInteger("MaxBatterieleistung", 0); $this->RegisterPropertyInteger("Batteriespannung", 50); - $this->RegisterPropertyInteger("AufdasNachladen",0); - $this->RegisterPropertyInteger("MinimumEntladen",0); + $this->RegisterPropertyFloat("AufdasNachladen",0); + $this->RegisterPropertyFloat("MinimumEntladen",0); $this->RegisterPropertyInteger("Batterieladezustand",0); $this->RegisterPropertyInteger("Batteriemanagement", 1); $this->RegisterPropertyInteger("Kotnrolle_TOU_Spannung", 0); @@ -22,10 +22,6 @@ class Batterie_Deye extends IPSModule $this->RegisterPropertyInteger("Interval", 2); // Recheninterval // Variabeln für Kommunkation mit Manager - $this->RegisterVariableFloat("Entladeleistung","Entladeleistung", "",0); - $this->RegisterVariableInteger("Laden3_Entladen4","Laden3_Entladen4", "",3); - $this->RegisterVariableFloat("Ladeleistung","Ladeleistung", "",0); - $this->RegisterVariableInteger("Batteriemanagement_Variabel","Batteriemanagement_Variabel", "",0); $this->RegisterVariableFloat("Ladestrom","Ladestrom", "",0); $this->RegisterVariableFloat("Entladestrom","Entladestrom", "",0); @@ -170,7 +166,7 @@ public function RequestAction($Ident, $Value) // Wechselrichter steuert das Laden/Entladen der Batterie if ($batterieManagement == 2) { $this->SetValue("Ladestrom", 0); - $this->SetValue("Entladedestrom", 0); + $this->SetValue("Entladestrom", 0); return; } @@ -229,8 +225,8 @@ public function RequestAction($Ident, $Value) IPS_LogMessage("Batterie", "Currentdata"); $array_powersteps = $this->GeneratePowerSteps($this->GetValue("Aktuelle_Leistung")); - $aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen"); - $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); + $aufdasnachladen = $this->ReadPropertyFloat("AufdasNachladen"); + $minimumentladen = $this->ReadPropertyFloat("MinimumEntladen"); $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); $dummy_array = [];