Merge pull request #360 from KraigM/hotfix/PhilipsHueUnreachable

Fixed unreachable PhilipsHue bulbs to show up as off.
This commit is contained in:
Nick Farina
2015-11-02 11:55:02 -08:00

View File

@@ -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':