diff --git a/FHEM/98_monitoring.pm b/FHEM/98_monitoring.pm index 7e4efb852..9ab8b5f6f 100644 --- a/FHEM/98_monitoring.pm +++ b/FHEM/98_monitoring.pm @@ -53,6 +53,7 @@ sub monitoring_Initialize($) { $hash->{AttrList} = "addStateEvent:1,0 " + . "blacklist " . "disable:1,0 " . "disabledForIntervals " . "errorFuncAdd:textField-long " @@ -78,8 +79,6 @@ sub monitoring_Define($$) { if(int(@re) < 1 || int(@re) > 2); readingsBeginUpdate($hash); - # readingsBulkUpdate($hash, "warning", "") unless($hash->{READINGS}{warning}); - # readingsBulkUpdate($hash, "error", "") unless($hash->{READINGS}{error}); readingsEndUpdate($hash, 0); monitoring_setActive($hash) if($init_done); @@ -235,6 +234,7 @@ sub monitoring_Notify($$) { || $removeRegex && $removeRegex =~ m/^$name:/ || $events ); + return if(AttrVal($SELF, "blacklist", "") =~ m/(^|,)$name(,|$)/); foreach my $event (@{$events}){ my $addMatch = "$name:$event" =~ $addRegex; @@ -463,7 +463,7 @@ sub monitoring_setActive($) { formatted by two attributes.

The following applications are possible and are described - below:
+ below: