mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
31_HUEDevice.pm: use colorpicker:BRI for pct and bri slider
git-svn-id: https://svn.fhem.de/fhem/trunk@12540 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d0943da6dd
commit
0920d065f7
@ -775,7 +775,7 @@ HUEDevice_Set($@)
|
|||||||
my $subtype = AttrVal($name, "subType", "extcolordimmer");
|
my $subtype = AttrVal($name, "subType", "extcolordimmer");
|
||||||
|
|
||||||
my $list = "off:noArg on:noArg toggle:noArg statusRequest:noArg";
|
my $list = "off:noArg on:noArg toggle:noArg statusRequest:noArg";
|
||||||
$list .= " pct:slider,0,1,100 bri:slider,0,1,254" if( $subtype =~ m/dimmer/ );
|
$list .= " pct:colorpicker,BRI,0,1,100 bri:colorpicker,BRI,0,1,254" if( $subtype =~ m/dimmer/ );
|
||||||
$list .= " dimUp:noArg dimDown:noArg" if( !$hash->{helper}->{devtype} && $subtype =~ m/dimmer/ );
|
$list .= " dimUp:noArg dimDown:noArg" if( !$hash->{helper}->{devtype} && $subtype =~ m/dimmer/ );
|
||||||
$list .= " satUp:noArg satDown:noArg hueUp:noArg hueDown:noArg ctUp:noArg ctDown:noArg " if( $defs{$name}->{IODev}->{helper}{apiversion} && $defs{$name}->{IODev}->{helper}{apiversion} >= (1<<16) + (7<<8) );
|
$list .= " satUp:noArg satDown:noArg hueUp:noArg hueDown:noArg ctUp:noArg ctDown:noArg " if( $defs{$name}->{IODev}->{helper}{apiversion} && $defs{$name}->{IODev}->{helper}{apiversion} >= (1<<16) + (7<<8) );
|
||||||
$list .= " rgb:colorpicker,RGB" if( $subtype =~ m/color/ );
|
$list .= " rgb:colorpicker,RGB" if( $subtype =~ m/color/ );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user