mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
30_HUEBridge.pm: honor ignoreReachable in createGroupReadings
git-svn-id: https://svn.fhem.de/fhem/trunk@23829 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b655a7267e
commit
10353f755d
@ -1315,7 +1315,8 @@ HUEBridge_updateGroups($$)
|
||||
foreach my $light ( split(',', $chash->{lights}) ) {
|
||||
next if( !$light );
|
||||
next if( !defined($modules{HUEDevice}{defptr}{"$name-$light"}) );
|
||||
my $current = $modules{HUEDevice}{defptr}{"$name-$light"}{helper};
|
||||
my $lhash = $modules{HUEDevice}{defptr}{"$name-$light"};
|
||||
my $current = $lhash->{helper};
|
||||
next if( !$current );
|
||||
#next if( !$current->{on} );
|
||||
next if( $current->{helper}{devtype} );
|
||||
@ -1367,7 +1368,10 @@ HUEBridge_updateGroups($$)
|
||||
$readings{sat} += $current->{sat} if( defined($current->{sat}) );
|
||||
|
||||
$readings{on} |= ($current->{on}?'1':'0');
|
||||
$readings{reachable} |= ($current->{reachable}?'1':'0');
|
||||
|
||||
if( !AttrVal($lhash->{NAME}, 'ignoreReachable', 0) ) {
|
||||
$readings{reachable} |= ($current->{reachable}?'1':'0');
|
||||
}
|
||||
|
||||
if( !defined($readings{alert}) ) {
|
||||
$readings{alert} = $current->{alert};
|
||||
|
Loading…
x
Reference in New Issue
Block a user