From 0adc985f257c06b19689a7a667136382788b508f Mon Sep 17 00:00:00 2001 From: dietmar63 <> Date: Wed, 7 Oct 2015 21:22:54 +0000 Subject: [PATCH] 98_Heating_Control: last change is not workung under al circumstances - rollback git-svn-id: https://svn.fhem.de/fhem/trunk@9401 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_WeekdayTimer.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index 8a248bde5..a06fb7ada 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -590,21 +590,21 @@ sub WeekdayTimer_Update($) { my $idx = $myHash->{MODIFIER}; my $now = time(); - #Log3 $hash, 3, "WeekdayTimer_Update-->[$name] $idx "; + my $sollZeit = $myHash->{TIME}; # Schaltparameter ermitteln my $tage = $hash->{profil}{$idx}{TAGE}; my $time = $hash->{profil}{$idx}{TIME}; - my $epoch = $hash->{profil}{$idx}{EPOCH}; my $newParam = $hash->{profil}{$idx}{PARA}; #Log3 $hash, 3, "[$name] $idx ".FmtDateTime($epoch) . " " . $newParam . " " . join("",@$tage); - if ($hash->{STILLDONETIME} > $epoch ) { + if ($hash->{STILLDONETIME} <= $sollZeit ) { + $hash->{STILLDONETIME} = $sollZeit; + } else { Log3 $hash, 3, "[$name] Timer $time overwritten by " . FmtDateTime($hash->{STILLDONETIME}); return; } - $hash->{STILLDONETIME} = $epoch; # Fenserkontakte abfragen - wenn einer im Status closed, dann Schaltung um 60 Sekunden verzögern if (WeekdayTimer_FensterOffen($hash, $newParam, $idx)) {