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:
@@ -1364,6 +1364,10 @@ HUEDevice_Parse($$)
|
|||||||
if( ref($result->{state}) eq 'HASH' ) {
|
if( ref($result->{state}) eq 'HASH' ) {
|
||||||
my %readings;
|
my %readings;
|
||||||
|
|
||||||
|
if( $result->{stream}
|
||||||
|
&& (defined($hash->{helper}{stream}) || $result->{stream}{active}) ) {
|
||||||
|
$readings{stream_active} = $result->{stream}{active}?1:0;
|
||||||
|
}
|
||||||
if( $result->{state} ) {
|
if( $result->{state} ) {
|
||||||
$readings{all_on} = $result->{state}{all_on};
|
$readings{all_on} = $result->{state}{all_on};
|
||||||
$readings{any_on} = $result->{state}{any_on};
|
$readings{any_on} = $result->{state}{any_on};
|
||||||
|
|||||||
Reference in New Issue
Block a user