30_HUEBridge.pm: ignore non-lights for createGroupReadings calculation

git-svn-id: https://svn.fhem.de/fhem/trunk@18419 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2019-01-25 19:52:02 +00:00
parent 670d02a486
commit 4f56616b47

View File

@@ -1075,6 +1075,8 @@ HUEBridge_updateGroups($$)
foreach my $light ( split(',', $chash->{lights}) ) {
next if( !$light );
my $current = $modules{HUEDevice}{defptr}{"$name-$light"}{helper};
next if( !$current );
next if( $current->{helper}{devtype} );
$readings{ct} += $current->{ct};
$readings{bri} += $current->{bri};