diff --git a/Puffer_Speicher/form.json b/Puffer_Speicher/form.json index 979eedf..f2f1d75 100644 --- a/Puffer_Speicher/form.json +++ b/Puffer_Speicher/form.json @@ -49,6 +49,41 @@ "name": "PufferTeilLeistung", "caption": "Puffer Teillast", "suffix": "Watt" + }, + { + "type": "Select", + "name": "StageSelect", + "caption": "Stufen", + "options": [ + { "caption": "1-stufig", "value": 1 }, + { "caption": "2-stufig", "value": 2 }, + { "caption": "3-stufig", "value": 3 }, + { "caption": "4-stufig", "value": 4 } + ] + }, + { + "type": "NumberSpinner", + "name": "Stage1", + "caption": "Stufe 1", + "visible": "{StageSelect} >= 1" + }, + { + "type": "NumberSpinner", + "name": "Stage2", + "caption": "Stufe 2", + "visible": "{StageSelect} >= 2" + }, + { + "type": "NumberSpinner", + "name": "Stage3", + "caption": "Stufe 3", + "visible": "{StageSelect} >= 3" + }, + { + "type": "NumberSpinner", + "name": "Stage4", + "caption": "Stufe 4", + "visible": "{StageSelect} >= 4" }, { "type": "Label", diff --git a/Puffer_Speicher/module.php b/Puffer_Speicher/module.php index 889465f..677086e 100644 --- a/Puffer_Speicher/module.php +++ b/Puffer_Speicher/module.php @@ -8,6 +8,10 @@ class Puffer_Speicher extends IPSModule $this->RegisterPropertyInteger("PufferLeistung", 6000); $this->RegisterPropertyInteger("PufferTeilLeistung", 3000); + $this->RegisterPropertyInteger("Stage1", 1); + $this->RegisterPropertyInteger("Stage2", 2); + $this->RegisterPropertyInteger("Stage3", 3); + $this->RegisterPropertyInteger("Stage4", 4); $this->RegisterPropertyInteger("ZeitKonstante", 120); $this->RegisterPropertyInteger("Pufferfuehler_PT1", 0); $this->RegisterPropertyInteger("Heizkontakt2_Puffer", 0);