no message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user