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
This commit is contained in:
justme1968
2015-02-14 15:54:37 +00:00
parent fcb9e9fcc1
commit 3bf0c19ef5

View File

@@ -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';