30_HUEBridge.pm: parse data from 'added' event after device move/create
git-svn-id: https://svn.fhem.de/fhem/trunk@20982 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -133,6 +133,14 @@ HUEBridge_Read($)
|
||||
}
|
||||
|
||||
if( my $chash = $modules{HUEDevice}{defptr}{$code} ) {
|
||||
if( $obj->{r} eq 'lights' ) {
|
||||
$obj = $obj->{light};
|
||||
} elsif( $obj->{r} eq 'sensors' ) {
|
||||
$obj = $obj->{sensor};
|
||||
} elsif( $obj->{r} eq 'goups' ) {
|
||||
$obj = $obj->{group};
|
||||
}
|
||||
|
||||
HUEDevice_Parse($chash, $obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user