Delay bind Hue motion sensor basic cluster when sensor search isn't active
Prevent bind request when the binding is already active.
@@ -1567,6 +1567,12 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
val = sensor->getZclValue(*i, 0x0032); // usertest
// val = sensor->getZclValue(*i, 0x0033); // ledindication
+ if (searchSensorsState != SearchSensorsActive &&
+ idleTotalCounter < (IDLE_READ_LIMIT + (7200))) // wait for max reporting interval before fire bindings
+ {
+ continue;
+ }
+
if (val.timestampLastConfigured.isValid() && val.timestampLastConfigured.secsTo(now) < (val.maxInterval * 1.5))
{
continue;
