Skip to content

Commit

Permalink
Merge pull request #4986 from SwoopX/samjin
Browse files Browse the repository at this point in the history
Disable IAS zone status reporting for Samjin Button
  • Loading branch information
manup committed Jun 12, 2021
2 parents 0415a9e + a28e0e0 commit dc2c1c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings.cpp
Expand Up @@ -950,6 +950,11 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
rq.minInterval = 300;
rq.maxInterval = 3600;
}
else if (sensor && sensor->type() == QLatin1String("ZHASwitch") && modelId == QLatin1String("button"))
{
rq.minInterval = 65535; // Disable reporting so devices must not be reset to not have it
rq.maxInterval = 65535; // configured at all. Should be changed in future to explicitly exclude device from reporting.
}
else
{
rq.minInterval = 300;
Expand Down

0 comments on commit dc2c1c1

Please sign in to comment.