mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Merge pull request #360 from KraigM/hotfix/PhilipsHueUnreachable
Fixed unreachable PhilipsHue bulbs to show up as off.
This commit is contained in:
@@ -190,7 +190,7 @@ PhilipsHueAccessory.prototype = {
|
||||
extractValue: function(characteristic, status) {
|
||||
switch(characteristic.toLowerCase()) {
|
||||
case 'power':
|
||||
return status.state.on ? 1 : 0;
|
||||
return status.state.reachable && status.state.on ? 1 : 0;
|
||||
case 'hue':
|
||||
return this.hueToArcDegrees(status.state.hue);
|
||||
case 'brightness':
|
||||
|
||||
Reference in New Issue
Block a user