mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_monitoring: white- and blacklist hebaviour changed to more accuracy; forum #126515
git-svn-id: https://svn.fhem.de/fhem/trunk@26892 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4015baa399
commit
68eefc7026
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 98_monitoring: white- and blacklist now are more accurate
|
||||||
- bugfix: 70_SVDRP: claen timer name, fix stateFormat overwrite
|
- bugfix: 70_SVDRP: claen timer name, fix stateFormat overwrite
|
||||||
- feature: 93_DbRep: sqlCmd supports execute DB Procedures
|
- feature: 93_DbRep: sqlCmd supports execute DB Procedures
|
||||||
- bugfix: 47_OBIS: Support DZG hack for power_L1/2/3
|
- bugfix: 47_OBIS: Support DZG hack for power_L1/2/3
|
||||||
|
@ -322,14 +322,14 @@ sub Notify {
|
|||||||
push @blacklist, devspec2array($_)
|
push @blacklist, devspec2array($_)
|
||||||
for (split m{[\s]+}x, AttrVal($SELF, 'blacklist', ''));
|
for (split m{[\s]+}x, AttrVal($SELF, 'blacklist', ''));
|
||||||
|
|
||||||
return if @blacklist && grep { m{$name}x } @blacklist;
|
return if @blacklist && grep { m{\A${name}\z}x } @blacklist;
|
||||||
|
|
||||||
my @whitelist;
|
my @whitelist;
|
||||||
|
|
||||||
push @whitelist, devspec2array($_)
|
push @whitelist, devspec2array($_)
|
||||||
for (split m{[\s]+}x, AttrVal($SELF, 'whitelist', ''));
|
for (split m{[\s]+}x, AttrVal($SELF, 'whitelist', ''));
|
||||||
|
|
||||||
return if @whitelist && !grep { m{$name}x } @whitelist;
|
return if @whitelist && !grep { m{\A$name\z}x } @whitelist;
|
||||||
|
|
||||||
for my $event (@{$events}){
|
for my $event (@{$events}){
|
||||||
next if !$event;
|
next if !$event;
|
||||||
|
Loading…
Reference in New Issue
Block a user