notify: set STATE after executing the commands.

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5418 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-04-03 07:33:42 +00:00
parent 3fa6a4feff
commit 8a0610e871

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;
}