mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 09:56:52 +00:00
Add context to event trigger documentation (#14678)
This commit is contained in:
parent
248978b786
commit
f9c0581076
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user