mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Add info on trigger id's uniqueness requirement (#19336)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
61da3139e6
commit
98a1a43cd1
@ -24,7 +24,7 @@ An automation can be triggered by an event, with a certain entity state, at a gi
|
|||||||
|
|
||||||
## Trigger id
|
## Trigger id
|
||||||
|
|
||||||
All triggers can be assigned an optional `id`. If the id is omitted, it will instead be set to the index of the trigger. The `id` can be referenced from trigger conditions.
|
All triggers can be assigned an optional `id`. If the id is omitted, it will instead be set to the index of the trigger. The `id` can be referenced from trigger conditions. The `id` should be unique for each trigger.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user