2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 23:09:26 +00:00

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 59fb5f8e7e
commit e8f5dabdbd

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