added sliders for AC, HomeEasyEU and ANSLUT

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1794 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2012-08-12 15:22:31 +00:00
parent 78a6502735
commit 9abd41b49a

View File

@@ -157,7 +157,12 @@ TRX_LIGHT_Set($@)
for ($i=0; $i <= $#$rec && ($rec->[$i] ne $command); $i++) { ;} for ($i=0; $i <= $#$rec && ($rec->[$i] ne $command); $i++) { ;}
if($i > $#$rec) { if($i > $#$rec) {
my $error = "Unknown command $command, choose one of " . join(" ", sort @$rec); my $l = join(" ", sort @$rec);
if ($device_type eq "AC" || $device_type eq "HOMEEASY" || $device_type eq "ANSLUT") {
$l =~ s/ level / level:slider,0,1,15 /;
}
my $error = "Unknown command $command, choose one of $l";
Log 4, $error; Log 4, $error;
return $error; return $error;
} }