From ae053631e65ea9e7ed6cbc6c8760b6afbc2fc3d2 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sat, 14 Feb 2015 15:54:37 +0000 Subject: [PATCH] 31_HUEDevice.pm: fixed detection of subType git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7978 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/31_HUEDevice.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FHEM/31_HUEDevice.pm b/FHEM/31_HUEDevice.pm index 9a6cc3a91..f97dda92c 100644 --- a/FHEM/31_HUEDevice.pm +++ b/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';