diff --git a/fhem/CHANGED b/fhem/CHANGED index 8554fb1eb..35b8e8a70 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: sequence: triggerPartial Attribute added - feature: 36_JeeLink: changed flash command to use fhem firmware directory (by HCS) - feature: 70_ENIGMA2: new attribute lightMode for old/slow devices diff --git a/fhem/FHEM/91_sequence.pm b/fhem/FHEM/91_sequence.pm index f30b0b367..f9a529483 100755 --- a/fhem/FHEM/91_sequence.pm +++ b/fhem/FHEM/91_sequence.pm @@ -15,7 +15,7 @@ sequence_Initialize($) $hash->{DefFn} = "sequence_Define"; $hash->{UndefFn} = "sequence_Undef"; $hash->{NotifyFn} = "sequence_Notify"; - $hash->{AttrList} = "disable:0,1"; + $hash->{AttrList} = "disable:0,1 triggerPartial:0,1"; } @@ -103,8 +103,10 @@ sequence_Trigger($) my $hash = $defs{$ln}; my @d = split("[ \t]+", $hash->{DEF}); $hash->{RE} = $d[0]; + my $idx = $hash->{IDX}/2; $hash->{IDX} = 0; - Log3 $ln, 5, "sequence $ln timeout"; + Log3 $ln, 5, "sequence $ln timeout on $idx"; + DoTrigger($ln, "partial_$idx") if(AttrVal($ln, "triggerPartial", undef)); } sub @@ -128,7 +130,8 @@ sequence_Undef($$) Define =end html + +=begin html_DE + + +

sequence

+ + +=end html_DE + =cut