Harrys eventMap wish, reworked
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@995 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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= (
|
||||
|
||||
Reference in New Issue
Block a user