forms für smart me auswahl angepasst

This commit is contained in:
2024-12-19 09:38:56 +01:00
parent 243f5a0537
commit 155ce251b0
3 changed files with 59 additions and 39 deletions

View File

@@ -124,10 +124,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
if ($Peak) {
if ($boilerTemp < $minTemp) {
$this->SetValue(
"PowerSteps",
json_encode([0, $teilLeistung, $vollLeistung])
);
$this->SetValue( "PowerSteps", json_encode([0, $teilLeistung, $vollLeistung]) );
} elseif (
$boilerTemp < $minTemp + 5 &&
($AktuelleVollast || $AktuelleTeillast)
@@ -148,18 +145,10 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
) {
$this->SetValue("PowerSteps", json_encode([$vollLeistung]));
} elseif ($boilerTemp < $maxTemp - 5) {
$this->SetValue(
"PowerSteps",
json_encode([0, $teilLeistung, $vollLeistung])
);
} elseif (
$boilerTemp < $maxTemp &&
($AktuelleVollast || $AktuelleTeillast)
$this->SetValue("PowerSteps", json_encode([0, $teilLeistung, $vollLeistung]));
} elseif ( $boilerTemp < $maxTemp && ($AktuelleVollast || $AktuelleTeillast)
) {
$this->SetValue(
"PowerSteps",
json_encode([0, $teilLeistung, $vollLeistung])
);
$this->SetValue( "PowerSteps", json_encode([0, $teilLeistung, $vollLeistung]));
} else {
$this->SetValue("PowerSteps", json_encode([0]));
}

View File

@@ -1,10 +1,24 @@
{
"elements": [
{
"type": "ValidationTextBox",
"name": "IP_Adresse",
"caption": "IP-Adresse Ladestation",
"suffix": ""
"type": "Select",
"name": "Ladestation",
"caption": "Ladestation",
"value": 2,
"options": [
{
"caption": "Go-E Wallbox (Alte Version)",
"value": 1
},
{
"caption": "Go-E Germini / Germini Flex",
"value": 2
},
{
"caption": "Smart-Me Pico",
"value": 3
}
]
},
{
"type": "NumberSpinner",
@@ -14,7 +28,7 @@
{
"type": "NumberSpinner",
"name": "MaxLeistung",
"caption": "Maximlalleistung Ladestation"
"caption": "Maximalleistung Ladestation"
},
{
"type": "NumberSpinner",
@@ -24,29 +38,46 @@
{
"type": "NumberSpinner",
"name": "MaxLeistung_1ph",
"caption": "Maximlalleistung Ladestation 1-Phasig"
"caption": "Maximalleistung Ladestation 1-Phasig"
},
{
"type": "NumberSpinner",
"name": "IdleCounterMax",
"caption": "Zyklen zwischen zwei Leisutungsänderungen",
"caption": "Zyklen zwischen zwei Leistungsänderungen",
"suffix": ""
},
{
"type": "Select",
"name": "Ladestation",
"caption": "Ladestation",
"value": 2,
"options": [
{
"caption": "Go-E Wallbox (Alte Version)",
"value": 1
},
{
"caption": "Go-E Germini / Germini Flex",
"value": 2
}
]
}
"type": "ValidationTextBox",
"name": "IP_Adresse",
"caption": "IP-Adresse Ladestation",
"suffix": "",
"visible": true,
"visibilityCondition": {
"field": "Ladestation",
"valueNot": 3
}
},
{
"type": "ValidationTextBox",
"name": "ID",
"caption": "ID",
"suffix": "",
"visible": false,
"visibilityCondition": {
"field": "Ladestation",
"value": 3
}
},
{
"type": "ValidationTextBox",
"name": "Seriennummer",
"caption": "Seriennummer",
"suffix": "",
"visible": false,
"visibilityCondition": {
"field": "Ladestation",
"value": 3
}
}
]
}
}

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.197",
"version": "0.198",
"build": 0,
"date": 0
}