Add context to event trigger documentation (#14678)

This commit is contained in:
On Freund 2020-10-01 12:59:31 +03:00 committed by GitHub
parent 248978b786
commit f9c0581076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ The following sections introduce all trigger types and further details to get st
### 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 to be present.
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.
Events can be fired by integrations or via the API. There is no limitation to the types. A list of built-in events can be found [here](/docs/configuration/events/).
@ -26,6 +26,8 @@ automation:
# optional
event_data:
mood: happy
context:
user_id: MY_USER_ID
```
### Home Assistant trigger