mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Added automatic slider to the zwave dimmer
git-svn-id: https://svn.fhem.de/fhem/trunk@2544 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4397a509bc
commit
9840fb488e
@ -156,6 +156,9 @@ my %zwave_class = (
|
||||
MARK => { id => 'ef', },
|
||||
NON_INTEROPERABLE => { id => 'f0', },
|
||||
);
|
||||
my %zwave_cmdArgs = (
|
||||
dim => "slider,0,1,100",
|
||||
);
|
||||
|
||||
|
||||
sub
|
||||
@ -246,9 +249,13 @@ ZWave_Cmd($$@)
|
||||
}
|
||||
}
|
||||
}
|
||||
return ("Unknown $type argument $cmd, choose one of "
|
||||
. join(" ",sort keys %cmdList))
|
||||
if(!$cmdList{$cmd});
|
||||
if(!$cmdList{$cmd}) {
|
||||
my $list = join(" ",sort keys %cmdList);
|
||||
foreach my $cmd (keys %zwave_cmdArgs) { # add slider & co
|
||||
$list =~ s/\b$cmd\b/$cmd:$zwave_cmdArgs{$cmd}/;
|
||||
}
|
||||
return "Unknown $type argument $cmd, choose one of $list";
|
||||
}
|
||||
|
||||
|
||||
################################
|
||||
|
Loading…
Reference in New Issue
Block a user