You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_docs/configuration/events.markdown
+28-41Lines changed: 28 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -8,62 +8,49 @@ The core of Home Assistant is the event bus. The event bus allows any integratio
8
8
9
9
Home Assistant contains a few built-in events that are used to coordinate between various components.
10
10
11
-
### Event `homeassistant_start`
12
-
Event `homeassistant_start` is fired when all integrations from the configuration have been initialized. This is the event that will start the timer firing off `time_changed` events.
13
-
14
-
<divclass='note warning'>
15
-
16
-
Starting 0.42, it is no longer possible to listen for event `homeassistant_start`. Use the 'homeassistant' [platform](/docs/automation/trigger) instead.
17
-
18
-
</div>
19
-
20
-
### Event `homeassistant_stop`
21
-
Event `homeassistant_stop` is fired when Home Assistant is shutting down. It should be used to close any open connection or release any resources.
22
-
23
-
24
11
### Event `state_changed`
25
12
Event `state_changed` is fired when a state changes. Both `old_state` and `new_state` are state objects. [Documentation about state objects.](/topics/state_object/)
26
13
27
-
Field | Description
28
-
----- | -----------
29
-
`entity_id` | Entity ID of the changed entity. Example: `light.kitchen`
30
-
`old_state` | The previous state of the entity before it changed. This field is omitted if the entity is new.
31
-
`new_state` | The new state of the entity. This field is omitted if the entity is removed from the state machine.
0 commit comments