mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +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
|
- platform: sun
|
||||||
event: sunset
|
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