mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 22:56:34 +00:00
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@7994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b8572d4f16
commit
399da43464
@ -3701,6 +3701,7 @@ readingsBulkUpdate($$$@)
|
|||||||
my $eour = $attreour && grep($reading =~ m/^$_$/, @{$attreour});
|
my $eour = $attreour && grep($reading =~ m/^$_$/, @{$attreour});
|
||||||
|
|
||||||
# check if threshold is given
|
# check if threshold is given
|
||||||
|
my $eocrExists = $eocr;
|
||||||
if( $eocr
|
if( $eocr
|
||||||
&& $eocrv[0] =~ m/.*:(.*)/ ) {
|
&& $eocrv[0] =~ m/.*:(.*)/ ) {
|
||||||
my $threshold = $1;
|
my $threshold = $1;
|
||||||
@ -3742,7 +3743,7 @@ readingsBulkUpdate($$$@)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$hash->{".lastTime$reading"} = $now;
|
$hash->{".lastTime$reading"} = $now;
|
||||||
$changed = 1 if($eocr);
|
$changed = 1 if($eocrExists);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user