After a node was added, wait a bit before query is allowed
@@ -6113,6 +6113,11 @@ void DeRestPluginPrivate::nodeEvent(const deCONZ::NodeEvent &event)
case deCONZ::NodeEvent::NodeAdded:
{
+ QTime now = QTime::currentTime();
+ if (queryTime.secsTo(now) < 20)
+ {
+ queryTime = now.addSecs(20);
+ }
addLightNode(event.node());
addSensorNode(event.node());
}
