notify: set STATE after executing the commands.

git-svn-id: https://svn.fhem.de/fhem/trunk@5418 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-04-03 07:33:42 +00:00
parent b206c5b8a6
commit 5718272657

View File

@@ -70,9 +70,6 @@ notify_Exec($$)
$found = ("$n:$s" =~ m/^$re$/);
}
if($found) {
$ntfy->{STATE} =
AttrVal($ln,'showTriggerTime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
Log3 $ln, 5, "Triggering $ln";
my (undef, $exec) = split("[ \t]+", $ntfy->{DEF}, 2);
@@ -89,6 +86,9 @@ notify_Exec($$)
$ret .= " $r" if($r);
}
}
$ntfy->{STATE} =
AttrVal($ln,'showTriggerTime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
return $ret if(AttrVal($ln, "forwardReturnValue", 0));
return undef;
}