developers.home-assistant/docs/architecture/core.md

799 B

title sidebar_label
Core architecture Core

The Home Assistant Core consists of four main parts. On top of this it includes many helper classes to deal with common scenarios, like providing an entity or dealing with locations.

  • Event Bus: facilitates the firing and listening of events -- the beating heart of Home Assistant.
  • State Machine: keeps track of the states of things and fires a state_changed event when a state has been changed.
  • Service Registry: listens on the event bus for call_service events and allows other code to register service actions.
  • Timer: sends a time_changed event every 1 second on the event bus.

Overview of the Home Assistant core architecture