mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Added event_data_template (#4180)
* Added event_data_template * Update scripts.markdown
This commit is contained in:
parent
6525969cfc
commit
122a77bc82
@ -124,6 +124,16 @@ event_data:
|
||||
entity_id: device_tracker.paulus
|
||||
domain: light
|
||||
```
|
||||
You can also use event_data_template to fire an event with custom data. This could be used to pass data to another script awaiting
|
||||
an event trigger.
|
||||
```
|
||||
event: MY_EVENT
|
||||
event_data_template:
|
||||
name: myEvent
|
||||
customData: "{{ myCustomVariable }}"
|
||||
```
|
||||
|
||||
|
||||
|
||||
[Script component]: /components/script/
|
||||
[automations]: /getting-started/automation-action/
|
||||
|
Loading…
x
Reference in New Issue
Block a user