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:
justme1968
2020-01-07 13:34:31 +00:00
parent 3f8b6e9d0a
commit a6b2f44b40

View File

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