From 676f2fddb9a0cacb1d6fc32b0bd46893e98b7417 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Wed, 29 May 2013 10:58:17 +0000 Subject: [PATCH] event-min-interval + event-on-update-reading combination patch git-svn-id: https://svn.fhem.de/fhem/trunk@3226 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index cd0cb6312..f26bd2555 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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);