From b0b73ed9be2f154f7f55e79f160426e73ccd502a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 15 Feb 2015 13:10:48 +0000 Subject: [PATCH] fhem.pl: event-on-change-reading+threshold and event-min-interval combination change/fix (Forum #33069) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7994 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem.pl b/fhem.pl index a512b9f78..0b7845730 100755 --- a/fhem.pl +++ b/fhem.pl @@ -3701,6 +3701,7 @@ readingsBulkUpdate($$$@) my $eour = $attreour && grep($reading =~ m/^$_$/, @{$attreour}); # check if threshold is given + my $eocrExists = $eocr; if( $eocr && $eocrv[0] =~ m/.*:(.*)/ ) { my $threshold = $1; @@ -3742,7 +3743,7 @@ readingsBulkUpdate($$$@) } } else { $hash->{".lastTime$reading"} = $now; - $changed = 1 if($eocr); + $changed = 1 if($eocrExists); } }