mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
9439775348
commit
11f56d74c3
@ -157,7 +157,12 @@ TRX_LIGHT_Set($@)
|
||||
for ($i=0; $i <= $#$rec && ($rec->[$i] ne $command); $i++) { ;}
|
||||
|
||||
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;
|
||||
return $error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user