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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user