Skip to content

Commit

Permalink
Add support for Lidl/Silvercrest door bell (TS0211)
Browse files Browse the repository at this point in the history
Fixes #4260
  • Loading branch information
jurriaan committed Feb 10, 2021
1 parent aab2ccc commit e09d336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
// lidl / SilverCrest
sensor->modelId()== QLatin1String("TY0203") || // Door sensor
sensor->modelId() == QLatin1String("TY0202") || // Motion Sensor
sensor->modelId() == QLatin1String("TS0211") || // Door bell
// Konke
sensor->modelId() == QLatin1String("3AFE140103020000") ||
sensor->modelId() == QLatin1String("3AFE130104020015") ||
Expand Down
7 changes: 5 additions & 2 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ static const SupportedDevice supportedDevices[] = {
{ VENDOR_HEIMAN, "TY0203", silabs7MacPrefix }, // Lidl/Silvercrest Smart Window or Door Sensor
{ VENDOR_HEIMAN, "TY0202", silabs3MacPrefix }, // Lidl/Silvercrest Smart Motion Sensor
{ VENDOR_HEIMAN, "TY0202", silabs7MacPrefix }, // Lidl/Silvercrest Smart Motion Sensor
{ VENDOR_HEIMAN, "TS0211", silabs3MacPrefix }, // Lidl/Silvercrest Smart Wireless Door Bell
{ VENDOR_HEIMAN, "TS0211", silabs7MacPrefix }, // Lidl/Silvercrest Smart Wireless Door Bell
{ VENDOR_AURORA, "DoubleSocket50AU", jennicMacPrefix }, // Aurora AOne Double Socket UK
{ VENDOR_COMPUTIME, "SP600", computimeMacPrefix }, // Salus smart plug
{ VENDOR_HANGZHOU_IMAGIC, "1116-S", energyMiMacPrefix }, // iris contact sensor v3
Expand Down Expand Up @@ -5181,7 +5183,8 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
{
fpAlarmSensor.inClusters.push_back(ci->id());
}
else if (manufacturer == QLatin1String("Samjin") && modelId == QLatin1String("button"))
else if ((manufacturer == QLatin1String("Samjin") && modelId == QLatin1String("button")) ||
modelId == QLatin1String("TS0211"))
{
fpSwitch.inClusters.push_back(ci->id());
}
Expand Down Expand Up @@ -6893,7 +6896,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
{
sensorNode.setManufacturer("ELKO");
}
else if ((modelId == QLatin1String("TY0202") || modelId == QLatin1String("TY0203")) && node->nodeDescriptor().manufacturerCode() == VENDOR_HEIMAN)
else if ((modelId == QLatin1String("TY0202") || modelId == QLatin1String("TY0203") || modelId == QLatin1String("TS0211")) && node->nodeDescriptor().manufacturerCode() == VENDOR_HEIMAN)
{
sensorNode.setManufacturer(QLatin1String("SILVERCREST"));
}
Expand Down

0 comments on commit e09d336

Please sign in to comment.