fhem.pl: event-on-change-reading+threshold and event-min-interval combination change/fix (Forum #33069)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-02-15 13:10:48 +00:00
parent e1e0ff69b3
commit 9a9b01e85b

View File

@@ -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);
}
}