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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user