2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

31_HUEDevice.pm: entertainment fixes

git-svn-id: https://svn.fhem.de/fhem/trunk@20915 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2020-01-08 10:55:18 +00:00
parent 601c870d23
commit ffa96ef025

View File

@ -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);}