From fe17487adc245616a6596f5a82af0441b4664e59 Mon Sep 17 00:00:00 2001 From: jamesgo <> Date: Tue, 5 Mar 2019 15:09:18 +0000 Subject: [PATCH] 94_PWM.pm : reading maxOffTimeCalculation was set but not used git-svn-id: https://svn.fhem.de/fhem/trunk@18796 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/94_PWM.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/94_PWM.pm b/fhem/FHEM/94_PWM.pm index e23ef02cf..ec953beb5 100644 --- a/fhem/FHEM/94_PWM.pm +++ b/fhem/FHEM/94_PWM.pm @@ -33,6 +33,7 @@ # 31.01.18 GA add support for stateFormat # 05.02.18 GA fix typo overallHeatingSwitchThresholdTemup # 19.11.18 GA add support for attribute maxOffTime +# 05.03.19 GA fix reading maxOffTimeCalculation was set but not used ############################################## # $Id$ @@ -809,7 +810,6 @@ PWM_CalcRoom(@) return ("on_mop_stay", $newpulse, $cycletime, $actorV); } else { Log3 ($hash, 3, "PWM_CalcRoom $room->{NAME}: F16 maxOffTime off"); - #delete ($room->{helper}{maxOffTimeLastSwitch}); return ("off_mop", $newpulse, $cycletime, $actorV); } @@ -901,7 +901,7 @@ PWM_CalcRoom(@) # ---------------- # check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set) - if ($maxOffTimeApply > 0) { + if ($maxOffTimeApply > 0 and ReadingsVal($hash, "maxOffTimeCalculation", "off") eq "on") { ## wz > 2:00 if ($maxOffTimeAct >= $maxOffTime) {