mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
follow-on-for-timer is more general
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
63b3448204
commit
8e70360d08
@ -217,7 +217,7 @@ FS20_Set($@)
|
|||||||
CommandDelete(undef, $a[0] . "_timer");
|
CommandDelete(undef, $a[0] . "_timer");
|
||||||
delete $follow{$a[0]};
|
delete $follow{$a[0]};
|
||||||
}
|
}
|
||||||
if($a[1] eq "on-for-timer" && $na == 3 &&
|
if($a[1] =~ m/for-timer/ && $na == 3 &&
|
||||||
defined($attr{$a[0]}) && defined($attr{$a[0]}{"follow-on-for-timer"})) {
|
defined($attr{$a[0]}) && defined($attr{$a[0]}{"follow-on-for-timer"})) {
|
||||||
my $to = sprintf("%02d:%02d:%02d", $val/3600, ($val%3600)/60, $val%60);
|
my $to = sprintf("%02d:%02d:%02d", $val/3600, ($val%3600)/60, $val%60);
|
||||||
$follow{$a[0]} = $to;
|
$follow{$a[0]} = $to;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user