no message

This commit is contained in:
2025-04-25 13:23:46 +02:00
parent 3ecc20dc4a
commit 92636da118

View File

@@ -131,13 +131,12 @@ class Verbraucher_Sperrbar extends IPSModule
$Leistung = GetValue($this->ReadPropertyInteger("Leistung"));
$schaltkontaktID = $this->ReadPropertyInteger("Schaltkontakt1");
if ($power == $Leistung) {
if ($this->GetValue("Sperrung_Aktiv") && $power == 0) {
$schaltkontaktStatus = true;
} elseif ($power == 0) {
} else{
$schaltkontaktStatus = false;
} else {
// Keine Änderung, wenn power nicht 0 oder boilerLeistung entspricht
return;
}
$currentStatus = GetValue($this->ReadPropertyInteger("Schaltkontakt1"));
@@ -148,7 +147,7 @@ class Verbraucher_Sperrbar extends IPSModule
$schaltkontaktStatus
);
if ($schaltkontaktStatus) {
if ($schaltkontaktStatu==true) {
$this->SetValue("DailyOnTime", $this->GetValue("DailyOnTime") + 1);
}
}