2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

added sliders for AC, HomeEasyEU and ANSLUT

git-svn-id: https://svn.fhem.de/fhem/trunk@1794 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2012-08-12 15:22:31 +00:00
parent 9439775348
commit 11f56d74c3

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;
} }