From 1cca49b3f12b9ec8fd3104f21413ee6ce2cc2151 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 12 May 2012 06:02:55 +0000 Subject: [PATCH] Schedlue a trigger for follow-on-for-timer git-svn-id: https://svn.fhem.de/fhem/trunk@1551 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_FS20.pm | 5 +++-- fhem/docs/commandref.html | 9 ++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/fhem/FHEM/10_FS20.pm b/fhem/FHEM/10_FS20.pm index fc4db6d53..5177ad805 100755 --- a/fhem/FHEM/10_FS20.pm +++ b/fhem/FHEM/10_FS20.pm @@ -184,7 +184,7 @@ FS20_Set($@) return "Readonly value $a[1]" if(defined($readonly{$a[1]})); if($na > 2 && $a[1] eq "dim") { - $a[1] = ($a[2] eq "0" ? "off" : "dim$a[2]%"); + $a[1] = ($a[2] eq "0" ? "off" : sprintf("dim%02d%%",$a[2]) ); splice @a, 2, 1; $na = int(@a); } @@ -251,7 +251,8 @@ FS20_Set($@) my $to = sprintf("%02d:%02d:%02d", $val/3600, ($val%3600)/60, $val%60); $modules{FS20}{ldata}{$name} = $to; Log 4, "Follow: +$to setstate $name off"; - CommandDefine(undef, $name . "_timer at +$to setstate $name off"); + CommandDefine(undef, + $name."_timer at +$to setstate $name off; trigger $name off"); } ########################## diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 1af65ca9a..13f83777c 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -1535,10 +1535,6 @@ A line ending with \ will be concatenated with the next one, so long lines to 8 sec, 1 sec from 8 to 16 sec and so on. If you need better precision for large values, use at which has a 1 sec resolution. -