mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
91_notify.pm: add triggeredByDev and triggeredByEvent readings (Forum #123886)
git-svn-id: https://svn.fhem.de/fhem/trunk@25181 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d8a3f1b329
commit
1eab18e9ff
@ -122,6 +122,8 @@ notify_Exec($$)
|
||||
Log3 $ln, 3, "$ln return value: $r" if($r);
|
||||
$ret .= " $r" if($r);
|
||||
$ntfy->{TRIGGERTIME} = $now;
|
||||
setReadingsVal($ntfy, "triggeredByDev", $n, $dev->{NTFY_TRIGGERTIME});
|
||||
setReadingsVal($ntfy, "triggeredByEvent", $s, $dev->{NTFY_TRIGGERTIME});
|
||||
$ntfy->{STATE} = $dev->{NTFY_TRIGGERTIME} if(AttrVal($ln,'showtime',1));
|
||||
last if($dat);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user