From 48c8d4cb3f3c6e3296b2d9a5ae4727ef208f3e2e Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 3 Dec 2025 10:03:46 +0100 Subject: [PATCH] no message --- Batterie_test/module.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Batterie_test/module.php b/Batterie_test/module.php index 486be56..1c1e4ab 100644 --- a/Batterie_test/module.php +++ b/Batterie_test/module.php @@ -62,6 +62,22 @@ class Batterie_test extends IPSModule $this->SetValue("Batteriemanagement_Variabel", $batterieManagement); $this->SetTimerInterval("Timer_Do_UserCalc_Battery",$this->ReadPropertyInteger("Interval")*1000); + switch ($batterietyp) { + case 1: // z.B. LiFePo4 + $this->RegisterVariableFloat("Goodwe_EntLadeleistung","Goodwe_EntLadeleistung", "",0); + break; + + case 2: // z.B. Blei-Gel + + $this->RegisterVariableFloat("2","2", "",0); + break; + + case 2: + + $this->RegisterVariableFloat("3","3", "",0); + break; + } + }