mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
event-min-interval + event-on-update-reading combination patch
git-svn-id: https://svn.fhem.de/fhem/trunk@3226 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
988fbe5ba0
commit
d9e2423452
@ -3254,7 +3254,11 @@ readingsBulkUpdate($$$@)
|
||||
my $now = $hash->{".updateTime"};
|
||||
my $le = $hash->{".lastTime$reading"};
|
||||
if($le && $now-$le < $minInt) {
|
||||
$changed = 0 if(!$eocr);
|
||||
if(!$eocr || ($eocr && $value eq $readings->{VAL})){
|
||||
$changed = 0;
|
||||
} else {
|
||||
$hash->{".lastTime$reading"} = $now;
|
||||
}
|
||||
} else {
|
||||
$hash->{".lastTime$reading"} = $now;
|
||||
$changed = 1 if($eocr);
|
||||
|
Loading…
Reference in New Issue
Block a user