From 5ac9a7b3afd2552aba19e8899d359022730dd753 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 5 Sep 2011 07:20:53 +0000 Subject: [PATCH] Harrys eventMap wish, reworked git-svn-id: https://svn.fhem.de/fhem/trunk@995 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/91_notify.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/91_notify.pm b/fhem/FHEM/91_notify.pm index 4753d2e6f..7bb5f6a35 100755 --- a/fhem/FHEM/91_notify.pm +++ b/fhem/FHEM/91_notify.pm @@ -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= (