Skip to content

Commit

Permalink
Merge pull request #4214 from SwoopX/sercomm
Browse files Browse the repository at this point in the history
Add initial support for Sercomm motion sensor SZ-PIR02
  • Loading branch information
manup authored Feb 15, 2021
2 parents 5f23559 + 22b7b1a commit e873009
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,7 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
sensor->modelId() == QLatin1String("TS0202") || // Tuya sensor
sensor->modelId() == QLatin1String("3AFE14010402000D") || // Konke presence sensor
sensor->modelId() == QLatin1String("3AFE28010402000D") || // Konke presence sensor
sensor->modelId().startsWith(QLatin1String("GZ-PIR02")) || // Sercomm motion sensor
sensor->modelId().startsWith(QLatin1String("3300")) || // Centralite contatc sensor
sensor->modelId().startsWith(QLatin1String("3315")) ||
sensor->modelId().startsWith(QLatin1String("3157100")) ||
Expand Down Expand Up @@ -2763,6 +2764,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
sensor->modelId() == QLatin1String("Keyfob-ZB3.0") ||
// Sercomm
sensor->modelId().startsWith(QLatin1String("SZ-")) ||
sensor->modelId().startsWith(QLatin1String("GZ-")) ||
sensor->modelId() == QLatin1String("Tripper") ||
// WAXMAN
sensor->modelId() == QLatin1String("leakSMART Water Sensor V2") ||
Expand Down
3 changes: 3 additions & 0 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_SERCOMM, "SZ-SRN12N", emberMacPrefix }, // Sercomm siren
{ VENDOR_SERCOMM, "SZ-SRN12N", energyMiMacPrefix }, // Sercomm siren
{ VENDOR_SERCOMM, "SZ-DWS04", emberMacPrefix }, // Sercomm open/close sensor
{ VENDOR_SERCOMM, "GZ-PIR02", emberMacPrefix }, // Sercomm motion sensor
{ VENDOR_SERCOMM, "Tripper", emberMacPrefix }, // Quirky Tripper (Sercomm) open/close sensor
{ VENDOR_ALERTME, "MOT003", tiMacPrefix }, // Hive Motion Sensor
{ VENDOR_ALERTME, "DWS003", tiMacPrefix }, // Hive Door sensor
Expand Down Expand Up @@ -5150,6 +5151,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
modelId.startsWith(QLatin1String("MotionSensor51AU")) || // Aurora (Develco) motion sensor
modelId.startsWith(QLatin1String("MOT003")) || // Hive motion sensor
modelId == QLatin1String("4in1-Sensor-ZB3.0") || // Immax NEO ZB3.0 4 in 1 sensor E13-A21
modelId == QLatin1String("GZ-PIR02") || // Sercomm motion sensor
modelId == QLatin1String("E13-A21") || // Sengled E13-A21 PAR38 bulp with motion sensor
modelId == QLatin1String("TS0202") || // Tuya generic motion sensor
modelId == QLatin1String("TY0202") || // Lidl/Silvercrest Smart Motion Sensor
Expand Down Expand Up @@ -7741,6 +7743,7 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
i->modelId().startsWith(QLatin1String("4655BC0")) || // Ecolink contact sensor
i->modelId().startsWith(QLatin1String("lumi.sen_ill")) || // Xiaomi ZB3.0 light sensor
i->modelId().startsWith(QLatin1String("SZ-DWS04")) || // Sercomm open/close sensor
i->modelId().startsWith(QLatin1String("GZ-PIR02")) || // Sercomm motion sensor
i->modelId().startsWith(QLatin1String("Tripper")) || // Quirky Tripper (Sercomm) open/close
i->modelId().startsWith(QLatin1String("Lightify Switch Mini")) || // Osram 3 button remote
i->modelId().startsWith(QLatin1String("Switch 4x EU-LIGHTIFY")) || // Osram 4 button remote
Expand Down

0 comments on commit e873009

Please sign in to comment.