2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

91_sequence.pm: set $data{sequence_source} (Forum #71671)

git-svn-id: https://svn.fhem.de/fhem/trunk@20796 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-12-21 18:52:09 +00:00
parent c6718e153a
commit 483aa21642

View File

@ -100,7 +100,9 @@ sequence_Notify($$)
Log3 $ln, 5, "sequence $ln $tt";
setReadingsVal($hash, "state", "active", TimeNow());
$data{sequence_source} = $dev->{NAME};
DoTrigger($ln, $tt);
delete($data{sequence_source});
$idx = 0;
$hash->{TS} = 0;
@ -199,7 +201,9 @@ sequence_Undef($$)
define lampseq sequence Btn1:on 2:3 Btn1:off<br>
</code>
</ul>
sequence will be triggerred if Btn1 is pressed for 2 to 5 seconds.
sequence will be triggerred if Btn1 is pressed for 2 to 5 seconds.<br>
Note: the global variable $data{sequence_source} is set to the name of the
device triggering the last event.
</ul>
<br>
@ -289,7 +293,9 @@ sequence_Undef($$)
</code>
</ul>
ist nur erfolgreich, falls Btn1 zwischen 2 und 5 Sekunden lang gedr&uuml;ckt
wurde.
wurde.<br>
Die globale Variable $data{sequence_source} wird auf dem Namen des
Ger&auml;tes gesetzt, was den letzten Event ausgel&ouml;st hat.
</ul>
<br>