Merge PR #126: PhilipsHue: Work around a bug in Osram LIGHTIFY RGBW LED stripes

master
Jenkins 2019-06-28 12:45:48 +02:00
commit fe92cd5872
1 changed files with 7 additions and 1 deletions

View File

@ -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());