mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-11 14:26:05 +01:00
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.
This commit is contained in:
@@ -190,7 +190,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
extractValue: function(characteristic, status) {
|
extractValue: function(characteristic, status) {
|
||||||
switch(characteristic.toLowerCase()) {
|
switch(characteristic.toLowerCase()) {
|
||||||
case 'power':
|
case 'power':
|
||||||
return status.state.on ? 1 : 0;
|
return status.state.reachable && status.state.on ? 1 : 0;
|
||||||
case 'hue':
|
case 'hue':
|
||||||
return this.hueToArcDegrees(status.state.hue);
|
return this.hueToArcDegrees(status.state.hue);
|
||||||
case 'brightness':
|
case 'brightness':
|
||||||
|
|||||||
Reference in New Issue
Block a user