no message

This commit is contained in:
dh
2025-04-25 13:23:46 +02:00
parent 3ecc20dc4a
commit 92636da118
+5 -6
View File
@@ -131,13 +131,12 @@ class Verbraucher_Sperrbar extends IPSModule
$Leistung = GetValue($this->ReadPropertyInteger("Leistung")); $Leistung = GetValue($this->ReadPropertyInteger("Leistung"));
$schaltkontaktID = $this->ReadPropertyInteger("Schaltkontakt1"); $schaltkontaktID = $this->ReadPropertyInteger("Schaltkontakt1");
if ($power == $Leistung) {
if ($this->GetValue("Sperrung_Aktiv") && $power == 0) {
$schaltkontaktStatus = true; $schaltkontaktStatus = true;
} elseif ($power == 0) { } else{
$schaltkontaktStatus = false; $schaltkontaktStatus = false;
} else {
// Keine Änderung, wenn power nicht 0 oder boilerLeistung entspricht
return;
} }
$currentStatus = GetValue($this->ReadPropertyInteger("Schaltkontakt1")); $currentStatus = GetValue($this->ReadPropertyInteger("Schaltkontakt1"));
@@ -148,7 +147,7 @@ class Verbraucher_Sperrbar extends IPSModule
$schaltkontaktStatus $schaltkontaktStatus
); );
if ($schaltkontaktStatus) { if ($schaltkontaktStatu==true) {
$this->SetValue("DailyOnTime", $this->GetValue("DailyOnTime") + 1); $this->SetValue("DailyOnTime", $this->GetValue("DailyOnTime") + 1);
} }
} }