31_HUEDevice.pm: fixed detection of subType

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7978 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-02-14 15:54:37 +00:00
parent 2a55656143
commit ae053631e6

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