From 9f71d29cd54ec0be4f524cc31214cec4fa56dd8d Mon Sep 17 00:00:00 2001 From: Leonardo Brondani Schenkel Date: Fri, 27 Jul 2018 15:08:21 +0200 Subject: [PATCH] Detect IKEA light by manufacturer code in additon to MAC prefix Recent light/firmware combos have a different MAC prefix (0x90fd9f) compared to the hardcoded 'ikeaMacPrefix' (0x000b57), so use the manufacturer code as an additional criteria to detect IKEA lights. --- zcl_tasks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zcl_tasks.cpp b/zcl_tasks.cpp index 25b49c5169..d0870bc970 100644 --- a/zcl_tasks.cpp +++ b/zcl_tasks.cpp @@ -369,7 +369,7 @@ bool DeRestPluginPrivate::addTaskSetColorTemperature(TaskItem &task, uint16_t ct // workaround IKEA move to color temperature is broken and won't update x,y values // which results in broken scenes // instead transform into a move to color x,y task - if ((task.lightNode->address().ext() & macPrefixMask) == ikeaMacPrefix) + if (task.lightNode->manufacturerCode() == VENDOR_IKEA || (task.lightNode->address().ext() & macPrefixMask) == ikeaMacPrefix) { quint16 x; quint16 y;