mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Fix trigger variables in example (#22111)
This commit is contained in:
parent
b433992208
commit
f3e0eba4c0
@ -54,6 +54,8 @@ The first variant allows you to define variables that will be set when the trigg
|
||||
|
||||
The second variant is setting variables that are available when attaching a trigger when the trigger can contain templated values. These are defined using the `trigger_variables` key at an automation level. These variables can only contain [limited templates](/docs/configuration/templating/#limited-templates). The triggers will not re-apply if the value of the template changes. Trigger variables are a feature meant to support using blueprint inputs in triggers.
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
trigger_variables:
|
||||
@ -67,6 +69,8 @@ automation:
|
||||
name: "{{ trigger.event.data.name }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
## Event trigger
|
||||
|
||||
Fires when an event is being received. Events are the raw building blocks of Home Assistant. You can match events on just the event name or also require specific event data or context to be present.
|
||||
|
Loading…
x
Reference in New Issue
Block a user