2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

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:
justme-1968 2019-01-25 19:52:02 +00:00
parent b877c06c05
commit 7806004290

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