Prevent creation of some sensor clusters for Xiaomi plug
Issue
@@ -3167,6 +3167,16 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
QList<deCONZ::ZclCluster>::const_iterator cend = i->inClusters().constEnd();
for (; ci != cend; ++ci)
{
+ if ((ci->id() & 0xfff0) == 0x0400)
+ {
+ if (modelId == QLatin1String("lumi.plug"))
+ {
+ // prevent creation of some sensor clusters for Xiaomi plug
+ // 0x0400, 0x0402, 0x0403, 0x0405, 0x0406
+ continue;
+ }
+ }
+
switch (ci->id())
{
case BASIC_CLUSTER_ID:
