mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +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:
parent
59fb5f8e7e
commit
e8f5dabdbd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user