no message
This commit is contained in:
@@ -89,6 +89,13 @@ class Verbraucher_1_Stufig extends IPSModule
|
|||||||
$zeitZwischenZustandswechseln = $this->ReadPropertyInteger(
|
$zeitZwischenZustandswechseln = $this->ReadPropertyInteger(
|
||||||
"Zeit_Zwischen_Zustandswechseln"
|
"Zeit_Zwischen_Zustandswechseln"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($zeitZwischenZustandswechseln <= 0) {
|
||||||
|
$this->SetTimerInterval("ZustandswechselTimer", 0);
|
||||||
|
$this->SetValue("IsTimerActive", false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->SetTimerInterval(
|
$this->SetTimerInterval(
|
||||||
"ZustandswechselTimer",
|
"ZustandswechselTimer",
|
||||||
$zeitZwischenZustandswechseln * 60000
|
$zeitZwischenZustandswechseln * 60000
|
||||||
@@ -161,16 +168,21 @@ class Verbraucher_1_Stufig extends IPSModule
|
|||||||
|
|
||||||
$this->SetValue("IstNacht", $NeuesIstNacht);
|
$this->SetValue("IstNacht", $NeuesIstNacht);
|
||||||
|
|
||||||
if ($Peak) {
|
|
||||||
$this->SetValue("PowerSteps", json_encode([0]));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$DailyOnTime = $this->GetValue("DailyOnTime");
|
$DailyOnTime = $this->GetValue("DailyOnTime");
|
||||||
$Mindestlaufzeit =
|
$Mindestlaufzeit =
|
||||||
$this->ReadPropertyInteger("Mindesttlaufzeit") * 60 * 12;
|
$this->ReadPropertyInteger("Mindesttlaufzeit") * 60 * 12;
|
||||||
|
|
||||||
|
if (
|
||||||
|
$Peak &&
|
||||||
|
$this->ReadPropertyInteger("Mindesttlaufzeit") <= 0 &&
|
||||||
|
$this->ReadPropertyInteger("Zeit_Zwischen_Zustandswechseln") <= 0
|
||||||
|
) {
|
||||||
|
$this->SetValue("PowerSteps", json_encode([0]));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Überprüfen, ob der Timer aktiv ist
|
// Überprüfen, ob der Timer aktiv ist
|
||||||
if ($this->GetValue("IsTimerActive")) {
|
if ($this->GetValue("IsTimerActive")) {
|
||||||
// Timer ist aktiv, PowerSteps setzen
|
// Timer ist aktiv, PowerSteps setzen
|
||||||
|
|||||||
Reference in New Issue
Block a user