From 060c2da3bb0d44e45e15284ca2795e2bddb773f0 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 24 Feb 2025 16:18:24 +0100 Subject: [PATCH] =?UTF-8?q?ladenentladen=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Batterie/module.php | 5 ++++- library.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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