no message
This commit is contained in:
@@ -62,19 +62,25 @@ class Batterie_test extends IPSModule
|
||||
$this->SetValue("Batteriemanagement_Variabel", $batterieManagement);
|
||||
$this->SetTimerInterval("Timer_Do_UserCalc_Battery",$this->ReadPropertyInteger("Interval")*1000);
|
||||
|
||||
$batterietyp = $this->ReadPropertyInteger("Batterietyp");
|
||||
|
||||
switch ($batterietyp) {
|
||||
case 1: // z.B. LiFePo4
|
||||
$this->RegisterVariableFloat("Goodwe_EntLadeleistung","Goodwe_EntLadeleistung", "",0);
|
||||
$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);
|
||||
break;
|
||||
|
||||
case 2: // z.B. Blei-Gel
|
||||
|
||||
$this->RegisterVariableFloat("2","2", "",0);
|
||||
$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);
|
||||
break;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
|
||||
$this->RegisterVariableFloat("3","3", "",0);
|
||||
$this->MaintainVariable("BattTyp3_Wert","BattTyp3_Wert", "",0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user