From ffa96ef02583e1321caf84c7323bb89625022a42 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Wed, 8 Jan 2020 10:55:18 +0000 Subject: [PATCH] 31_HUEDevice.pm: entertainment fixes git-svn-id: https://svn.fhem.de/fhem/trunk@20915 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 010e6ca49..dd596d13c 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1366,7 +1366,7 @@ HUEDevice_Parse($$) my %readings; if( $result->{stream} - && (defined($hash->{helper}{stream}) || $result->{stream}{active}) ) { + && (defined($hash->{helper}{stream_active}) || $result->{stream}{active}) ) { $readings{stream_active} = $result->{stream}{active}?1:0; } if( $result->{state} ) { @@ -1704,7 +1704,7 @@ HUEDevice_Parse($$) $battery = $config->{battery} if( defined($config->{battery}) ); my $mode = undef; - $mode = $state->{mode} if( $hash->{helper}{mode} || defined($state->{mode} && $state->{mode} ne 'homeautomation') ); + $mode = $state->{mode} if( defined($state->{mode}) && ($hash->{helper}{mode} || $state->{mode} ne 'homeautomation') ); if( defined($colormode) && $colormode ne $hash->{helper}{colormode} ) {readingsBulkUpdate($hash,"colormode",$colormode);} if( defined($bri) && $bri != $hash->{helper}{bri} ) {readingsBulkUpdate($hash,"bri",$bri);}