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:
- opened windows
- battery warnings
@@ -597,17 +597,21 @@ sub monitoring_setActive($) {
Attribute
-
-
+
addStateEvent
+ -
+
blacklist
+ Comma-separated list of devices which will be ignored.
+
-
disable (1|0)
1: Disables the monitoring.
0: see "set active"
-
-
+
disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM ...
@@ -707,7 +711,7 @@ sub monitoring_setActive($) {
Like errorReturn, just for the warning list.
-
-
+
readingFnAttributes
@@ -811,7 +815,7 @@ attr Wasserfilter_monitoring warningReturn {return unless(@warnings);;\
return "Der Wasserfilter muss demnächst gewechselt werden.";;\
}
attr Wasserfilter_monitoring warningWait 60*60*24*25
- A DashButton is used to tell FHEM that
+ A DashButton is used to tell FHEM that
the water filter has been changed.
After 30 days, the DashButton is set to the error list.
@@ -841,7 +845,7 @@ attr putzen_monitoring errorReturn {return unless(@errors);;\
return(join("\n - ", "Die folgenden Räume müssen wieder geputzt werden:", @errors))\
}
attr putzen_monitoring errorWait 60*60*24*7
- Several DashButton are used to inform
+ Several DashButton are used to inform
FHEM that the rooms have been cleaned.
After 7 days, the room is set to the error list.
However, the room name is not the device name but the readings name and
@@ -877,9 +881,9 @@ attr BeamerFilter_monitoring errorReturn {return unless(@errors);;\
}
attr BeamerFilter_monitoring warningFuncAdd {return}
attr BeamerFilter_monitoring warningFuncRemove {return}
- An HourCounter is used to record the
+ An HourCounter is used to record the
operating hours of a beamer and a
- DashButton to tell FHEM that the filter
+ DashButton to tell FHEM that the filter
has been cleaned.
If the filter has not been cleaned for more than 200 hours, the device
is set to the error list.
@@ -912,7 +916,7 @@ attr BeamerFilter_monitoring warningFuncRemove {return}
zwei Attribute formatiert ausgeben.
Folgende Anwendungen sind möglich und werden
- unten beschrieben:
+ unten beschrieben:
- geöffnete Fenster
- Batterie Warnungen
@@ -1056,17 +1060,21 @@ attr BeamerFilter_monitoring warningFuncRemove {return}
Attribute
-
-
+
addStateEvent
+ -
+
blacklist
+ Durch Komma getrennte Liste von Geräten die ignoriert werden.
+
-
disable (1|0)
1: Deaktiviert das monitoring.
0: siehe "set active"
-
-
+
disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM ...
@@ -1168,7 +1176,7 @@ attr BeamerFilter_monitoring warningFuncRemove {return}
Wie errorReturn, nur für die warning-Liste.
-
-
+
readingFnAttributes
@@ -1282,7 +1290,7 @@ attr Wasserfilter_monitoring warningReturn {return unless(@warnings);;\
return "Der Wasserfilter muss demnächst gewechselt werden.";;\
}
attr Wasserfilter_monitoring warningWait 60*60*24*25
- Hierbei wird ein DashButton genutzt um
+ Hierbei wird ein DashButton genutzt um
FHEM mitzuteilen, dass der Wasserfilter gewechselt wurde.
Nach 30 Tagen wird der DashButton auf die error-Liste gesetzt.
@@ -1315,7 +1323,7 @@ attr putzen_monitoring errorReturn {return unless(@errors);;\
return(join("\n - ", "Die folgenden Räume müssen wieder geputzt werden:", @errors))\
}
attr putzen_monitoring errorWait 60*60*24*7
- Hierbei werden mehrere DashButton
+ Hierbei werden mehrere DashButton
genutzt um FHEM mitzuteilen, dass die Räume geputzt wurden.
Nach 7 Tagen wird der Raum auf die error-Liste gesetzt.
Der Raum Name ist hierbei jedoch nicht der Geräte-Name, sondern der
@@ -1352,9 +1360,9 @@ attr BeamerFilter_monitoring errorReturn {return unless(@errors);;\
}
attr BeamerFilter_monitoring warningFuncAdd {return}
attr BeamerFilter_monitoring warningFuncRemove {return}
- Hierbei wird ein HourCounter genutzt
+ Hierbei wird ein HourCounter genutzt
um die Betriebsstunden eine Beamer zu erfassen und ein
- DashButton um FHEM mitzuteilen, dass der
+ DashButton um FHEM mitzuteilen, dass der
Filter gereinigt wurde.
Wurde der Filter länger als 200 Betriebsstunden nicht gereinigt
wird das Gerät auf die error-Liste gesetzt.