From 6e6238ec216892409b59d1aa8e1d390a2fc4ad4c Mon Sep 17 00:00:00 2001 From: igami Date: Tue, 28 Aug 2018 15:51:43 +0000 Subject: [PATCH] 98_monitoring: fix allCount update git-svn-id: https://svn.fhem.de/fhem/trunk@17223 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_monitoring.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/98_monitoring.pm b/fhem/FHEM/98_monitoring.pm index fe26ce664..6c4158a49 100644 --- a/fhem/FHEM/98_monitoring.pm +++ b/fhem/FHEM/98_monitoring.pm @@ -410,7 +410,7 @@ sub monitoring_modify($) { return unless(defined($hash)); return if(IsDisabled($SELF)); - my $at = eval($wait + gettimeofday()) if($wait); + my $at = eval($wait + gettimeofday()) if($wait && $wait ne "quiet"); my $TYPE = $hash->{TYPE}; my (@change, %readings); %readings = map{$_, 1} split(",", ReadingsVal($SELF, $list, "")); @@ -441,7 +441,8 @@ sub monitoring_modify($) { return; } else{ - monitoring_modify("$SELF|warning|remove|$value") if($list eq "error"); + monitoring_modify("$SELF|warning|remove|$value|quiet") + if($list eq "error"); $readings{$value} = 1; delete $hash->{READINGS}{$reading}; } @@ -464,7 +465,8 @@ sub monitoring_modify($) { readingsBulkUpdate($hash, "state", "$list $operation: $value"); readingsBulkUpdate($hash, $list, join(",", sort(keys %readings))); readingsBulkUpdate($hash, $list."Count", int(keys %readings)); - readingsBulkUpdate($hash, "allCount", $allCount); + readingsBulkUpdate($hash, "allCount", $allCount) + unless($wait &&$wait eq "quiet"); readingsEndUpdate($hash, 1); return;