2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +00:00

31_HUEDevice.pm: deCONZ scenes fix

git-svn-id: https://svn.fhem.de/fhem/trunk@20683 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-12-08 10:07:43 +00:00
parent ef61fe648c
commit 99600ba853

View File

@ -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' ) {