From 3bf0c19ef541ecf1441f0c4a20ad42e676f2a91c Mon Sep 17 00:00:00 2001 From: justme1968 Date: Sat, 14 Feb 2015 15:54:37 +0000 Subject: [PATCH] 31_HUEDevice.pm: fixed detection of subType git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7978 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 9a6cc3a91..f97dda92c 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -852,9 +852,6 @@ HUEDevice_Parse($$) } elsif( $attr{$name}{model} =~ m/RGBW$/ ) { $attr{$name}{subType} = 'extcolordimmer'; - } elsif( $attr{$name}{model} =~ m/RGBW$/ ) { - $attr{$name}{subType} = 'extcolordimmer'; - } elsif( $hash->{type} ) { if( $hash->{type} eq "Extended color light" ) { $attr{$name}{subType} = 'extcolordimmer'; @@ -862,6 +859,9 @@ HUEDevice_Parse($$) } elsif( $hash->{type} eq "Color light" ) { $attr{$name}{subType} = 'colordimmer'; + } elsif( $hash->{type} eq "Color Temperature Light" ) { + $attr{$name}{subType} = 'ctdimmer'; + } elsif( $hash->{type} eq "Dimmable light" ) { $attr{$name}{subType} = 'dimmer';