mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 08:36:24 +00:00
change levelRange off handling
git-svn-id: https://svn.fhem.de/fhem/trunk@5309 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
198435e4c2
commit
84c066e45e
@ -3104,7 +3104,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
||||
? '00'
|
||||
: 'C8';
|
||||
my(undef,$lvlMax)=split",",AttrVal($name, "levelRange", "0,100");
|
||||
$hash->{helper}{dlvl} = sprintf("%02X",$lvlMax)
|
||||
$hash->{helper}{dlvl} = sprintf("%02X",$lvlMax*2)
|
||||
if ($hash->{helper}{dlvl} eq 'C8');
|
||||
$hash->{helper}{dlvlCmd} = "++$flag"."11$id$dst"
|
||||
."02$chn$hash->{helper}{dlvl}".'0000';
|
||||
@ -3130,7 +3130,9 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
||||
$ramp = ($ramp && $st eq "dimmer")?CUL_HM_encodeTime16($ramp):"0000";
|
||||
delete $hash->{helper}{dlvl};#stop desiredLevel supervision
|
||||
$hash->{helper}{stateUpdatDly} = ($duration>120)?$duration:120;
|
||||
CUL_HM_PushCmdStack($hash,"++${flag}11$id${dst}02${chn}C8$ramp$tval");
|
||||
my(undef,$lvlMax)=split",",AttrVal($name, "levelRange", "0,100");
|
||||
$lvlMax = sprintf("%02X",$lvlMax*2);
|
||||
CUL_HM_PushCmdStack($hash,"++${flag}11$id${dst}02${chn}$lvlMax$ramp$tval");
|
||||
$hash = $chnHash; # report to channel if defined
|
||||
}
|
||||
elsif($cmd eq "lock") { #####################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user