From 4f56616b4706658076ae00a2fd4009135741d7d5 Mon Sep 17 00:00:00 2001 From: justme1968 Date: Fri, 25 Jan 2019 19:52:02 +0000 Subject: [PATCH] 30_HUEBridge.pm: ignore non-lights for createGroupReadings calculation git-svn-id: https://svn.fhem.de/fhem/trunk@18419 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/30_HUEBridge.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/30_HUEBridge.pm b/fhem/FHEM/30_HUEBridge.pm index bf4210473..eb6257606 100644 --- a/fhem/FHEM/30_HUEBridge.pm +++ b/fhem/FHEM/30_HUEBridge.pm @@ -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};