diff --git a/FHEM/30_HUEBridge.pm b/FHEM/30_HUEBridge.pm index 285980b03..9065bf55b 100644 --- a/FHEM/30_HUEBridge.pm +++ b/FHEM/30_HUEBridge.pm @@ -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';