2
0
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:
rudolfkoenig 2021-11-04 17:44:00 +00:00
parent d8a3f1b329
commit 1eab18e9ff

View File

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