From d7a926a56e010cf357f50bee747c44c30c310a1c Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 3 Dec 2025 10:14:01 +0100 Subject: [PATCH] no message --- Batterie_test/module.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Batterie_test/module.php b/Batterie_test/module.php index 0107329..106a686 100644 --- a/Batterie_test/module.php +++ b/Batterie_test/module.php @@ -66,21 +66,23 @@ class Batterie_test extends IPSModule switch ($batterietyp) { case 1: // z.B. LiFePo4 - $this->MaintainVariable("Goodwe_EntLadeleistung", "Goodwe_EntLadeleistung", vtFloat, "", 10, true); - $this->MaintainVariable("BattTyp2_Wert", "BattTyp2_Wert", vtFloat, "", 11, false); - $this->MaintainVariable("BattTyp3_Wert", "BattTyp3_Wert", vtFloat, "", 12, false); + $this->MaintainVariable("Goodwe_EntLadeleistung", "Goodwe_EntLadeleistung", "", 10, true); + $this->MaintainVariable("BattTyp2_Wert", "BattTyp2_Wert", "", 11, false); + $this->MaintainVariable("BattTyp3_Wert", "BattTyp3_Wert", "", 12, false); break; case 2: // z.B. Blei-Gel - $this->MaintainVariable("Goodwe_EntLadeleistung", "Goodwe_EntLadeleistung", vtFloat, "", 10, false); - $this->MaintainVariable("BattTyp2_Wert", "BattTyp2_Wert", vtFloat, "", 11, false); - $this->MaintainVariable("BattTyp3_Wert", "BattTyp3_Wert", vtFloat, "", 12, true); + $this->MaintainVariable("Goodwe_EntLadeleistung", "Goodwe_EntLadeleistung", "", 10, false); + $this->MaintainVariable("BattTyp2_Wert", "BattTyp2_Wert", "", 11, true); + $this->MaintainVariable("BattTyp3_Wert", "BattTyp3_Wert", "", 12, false); break; break; case 2: - $this->MaintainVariable("BattTyp3_Wert","BattTyp3_Wert", "",0); + $this->MaintainVariable("Goodwe_EntLadeleistung", "Goodwe_EntLadeleistung", "", 10, false); + $this->MaintainVariable("BattTyp2_Wert", "BattTyp2_Wert", "", 11, false); + $this->MaintainVariable("BattTyp3_Wert", "BattTyp3_Wert", "", 12, true); break; }