mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
30_HUEBridge.pm: honor ignoreReachable in createGroupReadings also for the group itself
git-svn-id: https://svn.fhem.de/fhem/trunk@23830 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
10353f755d
commit
5214d778f8
@ -1369,7 +1369,9 @@ HUEBridge_updateGroups($$)
|
||||
|
||||
$readings{on} |= ($current->{on}?'1':'0');
|
||||
|
||||
if( !AttrVal($lhash->{NAME}, 'ignoreReachable', 0) ) {
|
||||
if( AttrVal($lhash->{NAME}, 'ignoreReachable', 0) ) {
|
||||
$readings{reachable} |= 1;
|
||||
} else {
|
||||
$readings{reachable} |= ($current->{reachable}?'1':'0');
|
||||
}
|
||||
|
||||
@ -1392,6 +1394,10 @@ HUEBridge_updateGroups($$)
|
||||
++$count;
|
||||
}
|
||||
|
||||
if( AttrVal($name, 'ignoreReachable', 0) ) {
|
||||
delete $readings{reachable};
|
||||
}
|
||||
|
||||
if( defined($hue) && $readings{colormode} && $readings{colormode} ne "ct" ) {
|
||||
#Log 1, "$hue $sat $bri";
|
||||
$readings{colormode} = 'hs';
|
||||
|
Loading…
x
Reference in New Issue
Block a user