Skip to content

Commit 4fa4bef

Browse files
committed
[component] Document is_idle condition
1 parent deddf55 commit 4fa4bef

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

content/automations/actions.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,21 @@ on_...:
460460

461461
- **condition** (**Required**, [condition](#config-condition)): The condition to check.
462462

463-
{{< anchor "lambda_condition" >}}
463+
### `component.is_idle` Condition
464+
465+
This condition checks if a given component is idle. A component is considered to be idle if it has completed
466+
setup, has not been marked as failed, and is not currently being called by the loop task. This is useful for
467+
synchronizing actions with the state of the component, for example, an e-paper display component that requires
468+
a significant amount of time to update the display panel.
469+
470+
```yaml
471+
on_...:
472+
then:
473+
- if:
474+
condition:
475+
component.is_idle: some_component
476+
# ...
477+
```
464478

465479
### `lambda` Condition
466480

0 commit comments

Comments
 (0)