diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 40647fb7e..ad2a11125 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1001,7 +1001,7 @@ HUEDevice_Set($@) } if( $hash->{IODev} && defined($hash->{IODev}{modelid}) && $hash->{IODev}{modelid} ne 'deCONZ' ) { - if( my $scenes = $hash->{scenes} ) { + if( my $scenes = $hash->{helper}{scenes} ) { my @names; for my $scene (@{$scenes}) { push(@names, $scene->{name}); @@ -1339,6 +1339,8 @@ HUEDevice_Parse($$) $hash->{class} = $result->{class} if( defined($result->{class}) ); $hash->{uniqueid} = $result->{uniqueid} if( defined($result->{uniqueid}) ); + $hash->{helper}{scenes} = $result->{scenes} if( defined($result->{scenes}) ); + $hash->{helper}{json} = $result; if( $hash->{helper}->{devtype} eq 'G' ) {