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:
justme1968
2020-01-14 21:31:12 +00:00
parent bf1ab5823c
commit fb7a22d58e

View File

@@ -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);
}