diff --git a/fhem/FHEM/98_Heating_Control.pm b/fhem/FHEM/98_Heating_Control.pm index c4a2bb53d..34156771c 100644 --- a/fhem/FHEM/98_Heating_Control.pm +++ b/fhem/FHEM/98_Heating_Control.pm @@ -93,9 +93,12 @@ sub Heating_Control_SetTimerOfDay($) { sub Heating_Control_Attr($$$) { my ($cmd, $name, $attrName, $attrVal) = @_; - if( $attrName eq "disable" ) { - my $hash = $defs{$name}; + my $hash = $defs{$name}; + if( $attrName eq "disable" ) { readingsSingleUpdate ($hash, "disabled", $attrVal, 1); + } elsif ( $attrName eq "switchInThePast" ) { + $attr{$name}{$attrName} = $attrVal; + Heating_Control_SetTimerOfDay({ HASH => $hash}); } return undef; } diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index d30be856e..bea6c27a4 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -493,7 +493,7 @@ sub WeekdayTimer_SetTimer($) { if ($secondsToSwitch>$grenzSeconds && !$switchedInThePast) { if ($secondsToSwitch>0 || $isActiveTimer) { - Log3 $hash, 4, "[$name] timer seems to be active today: ".join("",@$tage)."|$time|$nextPara" if($isActiveTimer); + Log3 $hash, 4, "[$name]:setTimer - timer seems to be active today: ".join("",@$tage)."|$time|$nextPara" if($isActiveTimer); myInternalTimer ("$time", $timToSwitch, "$hash->{TYPE}_Update", $hash, 0); my ($stunde, $minute, $sekunde) = split (":",$nextSwitch); @@ -535,7 +535,7 @@ sub WeekdayTimer_Update($) { my $active = 1; $active = WeekdayTimer_isAnActiveTimer ($hash, $tage, $newParam); - Log3 $hash, 4, "[$name] timer seems to be active today: ".join("",@$tage)."|$time|$newParam" if($active); + Log3 $hash, 4, "[$name]:Update - timer seems to be active today: ".join("",@$tage)."|$time|$newParam" if($active); # ggf. Device schalten WeekdayTimer_Device_Schalten($hash, $newParam, $tage);