mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
31_HUEDevice.pm: fix for subtype autodetection
git-svn-id: https://svn.fhem.de/fhem/trunk@14256 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc02280244
commit
7bdca8c0c1
@ -1291,6 +1291,8 @@ HUEDevice_Parse($$)
|
||||
if( defined($hueModels{$attr{$name}{model}}{subType}) ) {
|
||||
$attr{$name}{subType} = $hueModels{$attr{$name}{model}}{subType};
|
||||
|
||||
HUEDeviceSetIcon($hash) if( $hash->{helper}{fromAutocreate} );
|
||||
|
||||
} elsif( $attr{$name}{model} =~ m/TW$/ ) {
|
||||
$attr{$name}{subType} = 'ctdimmer';
|
||||
|
||||
@ -1302,10 +1304,10 @@ HUEDevice_Parse($$)
|
||||
|
||||
}
|
||||
|
||||
HUEDeviceSetIcon($hash) if( $hash->{helper}{fromAutocreate} );
|
||||
delete $hash->{helper}{fromAutocreate};
|
||||
}
|
||||
|
||||
} elsif( $hash->{type} ) {
|
||||
if( !defined($attr{$name}{subType}) && $hash->{type} ) {
|
||||
if( $hash->{type} eq "Extended color light" ) {
|
||||
$attr{$name}{subType} = 'extcolordimmer';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user