diff --git a/Batterie/module.php b/Batterie/module.php index f2aacb5..7c5cdd2 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -18,6 +18,7 @@ class Batterie extends IPSModule // Variabeln für Kommunkation mit Manager $this->RegisterVariableFloat("Entladeleistung","Entladeleistung", "",0); $this->RegisterVariableInteger("Batteriemanagement_Variabel","Batteriemanagement_Variabel", "",0); + $this->RegisterVariableInteger("Laden3_Entladen4","Laden3_Entladen4", "",3); $this->RegisterVariableFloat("Ladeleistung","Ladeleistung", "",0); $this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0); $this->RegisterVariableString("PowerSteps", "PowerSteps"); @@ -104,9 +105,11 @@ public function RequestAction($Ident, $Value) if ($power >= 0) { $this->SetValue("Ladeleistung", $power); $this->SetValue("Entladeleistung", 0); + $this->SetValue("Laden3_Entladen4", 3); } else { $this->SetValue("Entladeleistung", abs($power)); - $this->SetValue("Ladeleistung", 0); + $this->SetValue("Ladeleistung", 0); + $this->SetValue("Laden3_Entladen4", 4); } diff --git a/library.json b/library.json index 525f142..6d8cef9 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.072", + "version": "1.073", "build": 0, "date": 0 } \ No newline at end of file