From 82c62f78edcf19927ec4c24b98f567c199ffe670 Mon Sep 17 00:00:00 2001 From: Kraig McConaghy Date: Sun, 1 Nov 2015 12:42:03 -0600 Subject: [PATCH] Fixed unreachable PhilipsHue bulbs to show up as off. If you have a manual switch hooked up to a hue bulb, turning it off the switch makes it unreachable but doesn't mark it as off. --- platforms/PhilipsHue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/PhilipsHue.js b/platforms/PhilipsHue.js index 81f36b8..7ba1f0e 100644 --- a/platforms/PhilipsHue.js +++ b/platforms/PhilipsHue.js @@ -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':