23 lines
1.4 KiB
Markdown
23 lines
1.4 KiB
Markdown
---
|
|
title: "Architecture"
|
|
sidebar_label: "Introduction"
|
|
---
|
|
|
|
Before we dive into the Home Assistant architecture, let's get a clear overview of the home automation landscape as a whole. This way, we can show how the different parts of Home Assistant fit into the picture.
|
|
|
|
For more information about each part in this overview, [check out our blog](https://www.home-assistant.io/blog/2014/12/26/home-control-home-automation-and-the-smart-home/). Here's the tl;dr version of the blog:
|
|
|
|
- Home Control is responsible for collecting information and controlling devices.
|
|
- Home Automation triggers commands based on user configurations.
|
|
- Smart Home triggers commands based on previous behavior.
|
|
|
|

|
|
|
|
The Home Assistant core is responsible for Home Control. Home Assistant contains four parts which make this possible:
|
|
|
|
- **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 services.
|
|
- **Timer**: sends a `time_changed` event every 1 second on the event bus.
|
|
|
|
 |