mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
state_object: Context: keywords with backticks (#31496)
* state_object: Context: keywords with backticks Same way the keywords are highlighted in other tables on this page. * tiny tweak --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
60834eb711
commit
20b5e2ca16
@ -41,8 +41,8 @@ When an attribute contains spaces, you can retrieve it like this: `state_attr('s
|
||||
|
||||
Context is used to tie {% term events %} and {% term states %} together in Home Assistant. Whenever an {% term automation %} or user interaction causes states to change, a new context is assigned. This context will be attached to all events and states that happen as result of the change.
|
||||
|
||||
| Field | Description |
|
||||
| ----- | ------------------------------------------------------------------- |
|
||||
| context_id | Unique identifier for the context. |
|
||||
| user_id | Unique identifier of the user that started the change. Will be `None` if action was not started by a user (ie. started by an automation) |
|
||||
| parent_id | Unique identifier of the parent context that started the change, if available. For example, if an automation is triggered, the context of the trigger will be set as parent. |
|
||||
| Field | Description |
|
||||
| ------------ | ------------------------------------------------------------------- |
|
||||
| `context_id` | Unique identifier for the context. |
|
||||
| `user_id` | Unique identifier of the user that started the change. Will be `None` if the action was not started by a user (for example, started by an automation). |
|
||||
| `parent_id` | Unique identifier of the parent context that started the change, if available. For example, if an automation is triggered, the context of the trigger will be set as parent. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user