From 99600ba85377884b45d63c4038f00efaf76d783d Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 8 Dec 2019 10:07:43 +0000 Subject: [PATCH] 31_HUEDevice.pm: deCONZ scenes fix git-svn-id: https://svn.fhem.de/fhem/trunk@20683 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' ) {