mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +00:00
Fixed event-on-change-reading in combination with event-change-interval
git-svn-id: https://svn.fhem.de/fhem/trunk@3113 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
66db915b56
commit
427691be28
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII
|
||||
- SVN
|
||||
- bugfix: event-on-change-reading in combination with event-change-interval
|
||||
- change: HUEDevice: allow color preset buttons in webCmd
|
||||
- feature: SYSSTAT: allow (remote) monitoring raspberry pi on chip temperature
|
||||
- feature: HUEDevice: use webCmdFn for colorpicker
|
||||
|
@ -3228,14 +3228,15 @@ readingsBulkUpdate($$$@)
|
||||
my @v = grep { my $l = $_;
|
||||
$l =~ s/:.*//;
|
||||
($reading=~ m/^$l$/) ? $_ : undef} @{$hash->{".attrminint"}};
|
||||
if($changed && @v) {
|
||||
if(@v) {
|
||||
my (undef, $minInt) = split(":", $v[0]);
|
||||
my $now = $hash->{".updateTime"};
|
||||
my $le = $hash->{".lastTime$reading"};
|
||||
if($le && $now-$le < $minInt) {
|
||||
$changed = 0;
|
||||
$changed = 0 if(!$eocr);
|
||||
} else {
|
||||
$hash->{".lastTime$reading"} = $now;
|
||||
$changed = 1 if($eocr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user