2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

31_HUEDevice.pm: support set rgb for hue go

git-svn-id: https://svn.fhem.de/fhem/trunk@12526 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-11-08 00:39:49 +00:00
parent d7dbdb07d0
commit 38d1ff3b51

View File

@ -492,7 +492,8 @@ HUEDevice_SetParam($$@)
} elsif( $cmd eq "rgb" && $value =~ m/^(..)(..)(..)/) {
my( $r, $g, $b ) = (hex($1)/255.0, hex($2)/255.0, hex($3)/255.0);
if( $name && !defined( AttrVal($name, "model", undef) ) ) {
if( $name && ( !defined( AttrVal($name, "model", undef) )
|| AttrVal($name, "model", undef) eq 'LLC020') ) {
my( $h, $s, $v ) = Color::rgb2hsv($r,$g,$b);
$obj->{'on'} = JSON::true;