mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-27 20:34:52 +00:00
10_CUL_HM:change dimmer attr settingafter restart
git-svn-id: https://svn.fhem.de/fhem/trunk@13437 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1b360947a4
commit
a3ec1d99ca
@ -817,7 +817,8 @@ sub CUL_HM_Attr(@) {#################################
|
||||
}
|
||||
elsif($attrName eq "levelRange" ){
|
||||
if ($cmd eq "set"){
|
||||
return "use $attrName only for dimmer" if (CUL_HM_Get($defs{$name},$name,"param","subType") ne "dimmer");
|
||||
return "use $attrName only for dimmer" if (CUL_HM_Get($defs{$name},$name,"param","subType") ne "dimmer"
|
||||
&& $init_done );
|
||||
my ($min,$max) = split (",",$attrVal);
|
||||
return "use format min,max" if (!defined $max);
|
||||
return "min:$min must be between 0 and 100" if ($min<0 || $min >100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user