On-Till fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@525 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-12-28 08:01:56 +00:00
parent 518a1ac43b
commit 23deb8af4f

View File

@@ -145,7 +145,9 @@ Do_On_Till($@)
my @b = ($a[0], "on");
FS20_Set($hash, @b);
CommandDefine(undef, $hash->{NAME} . "_till at $hms_till set $a[0] off");
my $tname = $hash->{NAME} . "_till";
CommandDelete(undef, $tname) if($defs{$tname});
CommandDefine(undef, "$tname at $hms_till set $a[0] off");
}