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]));
}