Add explanation of multiple entities for the same trigger (#14375)

Addressing Issue #14304
This commit is contained in:
Adam 2020-09-03 04:26:21 -05:00 committed by GitHub
parent 84a0687a92
commit 8bd0591e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```