mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
31_HUEDevice.pm: added stream_active reading for groups
git-svn-id: https://svn.fhem.de/fhem/trunk@20904 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4689147518
commit
e3336db489
@ -1364,6 +1364,10 @@ HUEDevice_Parse($$)
|
||||
if( ref($result->{state}) eq 'HASH' ) {
|
||||
my %readings;
|
||||
|
||||
if( $result->{stream}
|
||||
&& (defined($hash->{helper}{stream}) || $result->{stream}{active}) ) {
|
||||
$readings{stream_active} = $result->{stream}{active}?1:0;
|
||||
}
|
||||
if( $result->{state} ) {
|
||||
$readings{all_on} = $result->{state}{all_on};
|
||||
$readings{any_on} = $result->{state}{any_on};
|
||||
|
Loading…
Reference in New Issue
Block a user