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:
parent
ef61fe648c
commit
99600ba853
@ -1001,7 +1001,7 @@ HUEDevice_Set($@)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( $hash->{IODev} && defined($hash->{IODev}{modelid}) && $hash->{IODev}{modelid} ne 'deCONZ' ) {
|
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;
|
my @names;
|
||||||
for my $scene (@{$scenes}) {
|
for my $scene (@{$scenes}) {
|
||||||
push(@names, $scene->{name});
|
push(@names, $scene->{name});
|
||||||
@ -1339,6 +1339,8 @@ HUEDevice_Parse($$)
|
|||||||
$hash->{class} = $result->{class} if( defined($result->{class}) );
|
$hash->{class} = $result->{class} if( defined($result->{class}) );
|
||||||
$hash->{uniqueid} = $result->{uniqueid} if( defined($result->{uniqueid}) );
|
$hash->{uniqueid} = $result->{uniqueid} if( defined($result->{uniqueid}) );
|
||||||
|
|
||||||
|
$hash->{helper}{scenes} = $result->{scenes} if( defined($result->{scenes}) );
|
||||||
|
|
||||||
$hash->{helper}{json} = $result;
|
$hash->{helper}{json} = $result;
|
||||||
|
|
||||||
if( $hash->{helper}->{devtype} eq 'G' ) {
|
if( $hash->{helper}->{devtype} eq 'G' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user