2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +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:
justme-1968 2020-01-07 13:34:31 +00:00
parent 4689147518
commit e3336db489

View File

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