Skip to content

Commit

Permalink
Merge remote-tracking branch 'swoopx/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed Apr 5, 2020
2 parents 2e86a73 + c71c54e commit b3086c6
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 27 deletions.
12 changes: 9 additions & 3 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
sensor->modelId().startsWith(QLatin1String("332")) ||
sensor->modelId().startsWith(QLatin1String("3200-S")) ||
sensor->modelId().startsWith(QLatin1String("3305-S")) ||
sensor->modelId().startsWith(QLatin1String("3320-L")) ||
sensor->modelId().startsWith(QLatin1String("3326-L")) ||
// dresden elektronik
(sensor->manufacturer() == QLatin1String("dresden elektronik") && sensor->modelId() == QLatin1String("de_spect")) ||
Expand Down Expand Up @@ -1935,6 +1936,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("motion")) ||
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("multi")) ||
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("water")) ||
(sensor->manufacturer() == QLatin1String("Samjin") && sensor->modelId() == QLatin1String("outlet")) ||
// Bitron
sensor->modelId().startsWith(QLatin1String("902010")) ||
// Develco
Expand Down Expand Up @@ -1986,13 +1988,17 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
sensor->modelId().contains(QLatin1String("ST218")) ||
// Tuya
sensor->modelId().contains(QLatin1String("TS0201")) ||
// Tuyatec
sensor->modelId().startsWith(QLatin1String("RH3040")) ||
sensor->modelId().startsWith(QLatin1String("RH3001")) ||
sensor->modelId().startsWith(QLatin1String("RH3052")) ||
// Xiaomi
sensor->modelId().startsWith(QLatin1String("lumi")) ||
sensor->modelId().startsWith(QLatin1String("lumi.plug.maeu01")) ||
// iris
sensor->modelId().startsWith(QLatin1String("1116-S")) ||
sensor->modelId().startsWith(QLatin1String("1117-S")) ||
// iHorn (Huawei)
sensor->modelId() == QLatin1String("113D"))
// Hive
sensor->modelId() == QLatin1String("MOT003"))
{
deviceSupported = true;
if (!sensor->node()->nodeDescriptor().receiverOnWhenIdle() ||
Expand Down
Loading

0 comments on commit b3086c6

Please sign in to comment.