Skip to content

Commit

Permalink
Disable IAS zone status reporting for Samjin Button
Browse files Browse the repository at this point in the history
This should, in conjunction with PR #4765, prevent 1002 ghost events.
  • Loading branch information
SwoopX committed Jun 9, 2021
1 parent 9a98cbe commit a28e0e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings.cpp
Original file line number Diff line number Diff line change
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 a28e0e0

Please sign in to comment.