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:
parent
601c870d23
commit
ffa96ef025
@ -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);}
|
||||
|
Loading…
Reference in New Issue
Block a user