diff --git a/FHEM/31_HUEDevice.pm b/FHEM/31_HUEDevice.pm index 9e6c501f5..7e7942533 100644 --- a/FHEM/31_HUEDevice.pm +++ b/FHEM/31_HUEDevice.pm @@ -989,7 +989,7 @@ HUEDevice_Parse($$) $hash->{STATE} = 'Initialized'; $hash->{lights} = join( ",", @{$result->{lights}} ) if( $result->{lights} ); - if( $result->{state} ) { + if( ref($result->{state}) eq 'HASH' ) { my $all_on = $result->{state}{all_on}; my $any_on = $result->{state}{any_on};