Update trigger.markdown (#27740)

Added video tutorial on Trigger IDs
This commit is contained in:
Smart Home Junkie 2023-06-12 09:19:29 +02:00 committed by GitHub
parent 9a225b47d1
commit 959b6aa015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,11 @@ An automation can be triggered by an event, a certain entity state, at a given t
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 and actions](/docs/scripts/conditions/#trigger-condition). The `id` does not have to be unique for each trigger, and it can be used to group similar triggers for use later in the automation (i.e., several triggers of different types that should all turn some entity on).
### Video Tutorial
This video tutorial explains how trigger IDs work.
<lite-youtube videoid="fE_MYcXYwMI" videotitle="How to use Trigger IDs in Home Assistant - Tutorial" posterquality="maxresdefault"></lite-youtube>
```yaml
automation:
trigger: