mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
Harrys eventMap wish, reworked
git-svn-id: https://svn.fhem.de/fhem/trunk@995 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b6cb44b36e
commit
5ac9a7b3af
@ -60,7 +60,12 @@ notify_Exec($$)
|
||||
for (my $i = 0; $i < $max; $i++) {
|
||||
my $s = $dev->{CHANGED}[$i];
|
||||
$s = "" if(!defined($s));
|
||||
if($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/) {
|
||||
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/);
|
||||
if(!$found && AttrVal($n, "eventMap", undef)) {
|
||||
(undef, $s) = ReplaceEventMap($n, [$n,$s], 0);
|
||||
$found = ("$n:$s" =~ m/^$re$/);
|
||||
}
|
||||
if($found) {
|
||||
my (undef, $exec) = split("[ \t]+", $ntfy->{DEF}, 2);
|
||||
|
||||
my %specials= (
|
||||
|
Loading…
x
Reference in New Issue
Block a user