Skip to content

Commit

Permalink
Merge pull request #4212 from SwoopX/nyce
Browse files Browse the repository at this point in the history
Add initial support for NYCE NCZ-3041-HA motion sensor
  • Loading branch information
manup authored Feb 15, 2021
2 parents 6cbfb80 + db0a640 commit 1700b85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2563,6 +2563,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
// NYCE
sensor->modelId() == QLatin1String("3011") ||
sensor->modelId() == QLatin1String("3014") ||
sensor->modelId() == QLatin1String("3041") ||
sensor->modelId() == QLatin1String("3043") ||
// Philips
sensor->modelId().startsWith(QLatin1String("SML00")) ||
Expand Down
2 changes: 2 additions & 0 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_MMB, "Gear", zenMacPrefix },
{ VENDOR_NYCE, "3011", emberMacPrefix }, // NYCE door/window sensor
{ VENDOR_NYCE, "3014", emberMacPrefix }, // NYCE garage door/tilt sensor
{ VENDOR_NYCE, "3041", emberMacPrefix }, // NYCE motion sensor
{ VENDOR_NYCE, "3043", emberMacPrefix }, // NYCE ceiling motion sensor
{ VENDOR_PHILIPS, "RWL02", philipsMacPrefix }, // Hue dimmer switch
{ VENDOR_PHILIPS, "ROM00", philipsMacPrefix }, // Hue smart button
Expand Down Expand Up @@ -5141,6 +5142,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
modelId == QLatin1String("3AFE28010402000D") || // Konke motion sensor ver.2
modelId == QLatin1String("motion") || // Samjin motion sensor
modelId == QLatin1String("ZB-MotionSensor-D0003") || // Linkind motion sensor
modelId == QLatin1String("3041") || // NYCE motion sensor
modelId.startsWith(QLatin1String("902010/22")) || // Bitron motion sensor
modelId.startsWith(QLatin1String("SN10ZW")) || // ORVIBO motion sensor
modelId.startsWith(QLatin1String("MOSZB-1")) || // Develco motion sensor
Expand Down

0 comments on commit 1700b85

Please sign in to comment.