mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_monitoring: check if event exists
git-svn-id: https://svn.fhem.de/fhem/trunk@14544 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
56c504d582
commit
87ae6481c4
@ -268,6 +268,8 @@ sub monitoring_Notify($$) {
|
||||
|
||||
my $events = deviceEvents($dev_hash, AttrVal($SELF, "addStateEvent", 0));
|
||||
|
||||
return unless($events);
|
||||
|
||||
if($name eq "global" && "INITIALIZED" =~ m/@{$events}/){
|
||||
monitoring_setActive($hash);
|
||||
|
||||
@ -297,6 +299,8 @@ sub monitoring_Notify($$) {
|
||||
return if(@whitelist && !(grep(/$name/, @whitelist)));
|
||||
|
||||
foreach my $event (@{$events}){
|
||||
next unless($event);
|
||||
|
||||
my $addMatch = "$name:$event" =~ $addRegex;
|
||||
my $removeMatch = $removeRegex ? "$name:$event" =~ $removeRegex : 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user