From 0f3abfbffcd7741a99eb1b4f1781be9856ecfa21 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 27 Jun 2019 14:39:12 +0200 Subject: [PATCH] PhilipsHue: Work around a bug in Osram LIGHTIFY RGBW LED stripes --- philipshue/huelight.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/philipshue/huelight.cpp b/philipshue/huelight.cpp index 7e1a2270..ad3a1a78 100644 --- a/philipshue/huelight.cpp +++ b/philipshue/huelight.cpp @@ -142,7 +142,13 @@ void HueLight::updateStates(const QVariantMap &statesMap) setEffect("color loop"); } - setReachable(statesMap.value("reachable").toBool()); + // FIXME: This is a workaround for a bug in the hue bridge: + // "LIGHTIFY Indoor Flex RGBW" are erroneously reporting "reachable: false" all the time. + if (modelId() == "LIGHTIFY Indoor Flex RGBW") { + setReachable(true); + } else { + setReachable(statesMap.value("reachable").toBool()); + } // alert (none, select, lselect) setAlert(statesMap.value("alert").toString());