State machine
The part of Home Assistant Core that holds the current state of every entity.
- In code
hass.statesStateMachine
Integrations write states to it, and everything else reads from it: automations, templates, dashboards. Writing goes through the entity, not straight to the state machine.