diff --git a/Verbraucher_1_Stufig/module.php b/Verbraucher_1_Stufig/module.php index f9fad90..de78b08 100644 --- a/Verbraucher_1_Stufig/module.php +++ b/Verbraucher_1_Stufig/module.php @@ -161,6 +161,12 @@ class Verbraucher_1_Stufig extends IPSModule $this->SetValue("IstNacht", $NeuesIstNacht); + if ($Peak) { + $this->SetValue("PowerSteps", json_encode([0])); + return; + } + + $DailyOnTime = $this->GetValue("DailyOnTime"); $Mindestlaufzeit = $this->ReadPropertyInteger("Mindesttlaufzeit") * 60 * 12;