mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Add explanation of multiple entities for the same trigger (#14375)
Addressing Issue #14304
This commit is contained in:
parent
84a0687a92
commit
8bd0591e52
@ -428,3 +428,17 @@ automation:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
```
|
||||
|
||||
### Multiple Entity IDs for the same Trigger
|
||||
|
||||
It is possible to specify multiple entities for the same trigger. To do so add multiple entities using a nested list. The trigger will fire and start, [processing](#what-are-triggers) your automation each time the trigger is true for each entity listed.
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.one
|
||||
- sensor.two
|
||||
- sensor.three
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user