-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Overkiz has strict limits on concurrent executions and the number of queued executions. This makes it difficult for Home Assistant to reliably execute many commands at the same time, especially in scenes or automations that trigger multiple actions simultaneously.
A potential solution is to add an optional queue to the library that groups actions triggered within a short, configurable time window into a single action group. This would reduce the number of concurrent and queued executions sent to Overkiz.
The library already provides execute_action_group(), which supports multiple actions, but users may still execute single actions individually. Additionally, there may be a limit on how many actions can be included in one action group, which should be considered in the design.
Plan
To mitigate this, we should introduce an optional queue mechanism in the library. This queue would:
- Collect actions that are triggered within a short time window (configurable)
- Automatically group them into a single action group.
- Use a configurable time window, for example under one second, defined when instantiating the client.