Skip to content

Commit

Permalink
Whitelist Xiaomi Smart Cube for Analog and Multistate Input clusters.
Browse files Browse the repository at this point in the history
Only create ZHASwitch resources for _Analog Input_ (0x000c) and
_Multistate Input_ (0x0012) clusters for the Xiaomi Smart Cube.  See
ebaauw/homebridge-hue#245 and
ebaauw/homebridge-hue#203.
  • Loading branch information
ebaauw authored and manup committed Jan 4, 2018
1 parent d5e8ed3 commit d82132e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2694,13 +2694,17 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node)

case ANALOG_INPUT_CLUSTER_ID:
{
fpSwitch.inClusters.push_back(ci->id());
if (modelId == QLatin1String("lumi.sensor_cube")) {
fpSwitch.inClusters.push_back(ci->id());
}
}
break;

case MULTISTATE_INPUT_CLUSTER_ID:
{
fpSwitch.inClusters.push_back(ci->id());
if (modelId == QLatin1String("lumi.sensor_cube")) {
fpSwitch.inClusters.push_back(ci->id());
}
}
break;

Expand Down

0 comments on commit d82132e

Please sign in to comment.