How home-assistant/core works
Home Assistant is a locally operated home-automation platform: users configure integrations, which expose device capabilities as entities and let the system observe state and react to events and actions. Its runtime centers on a shared core, with configuration flows and a large modular integration ecosystem around it. The repository also includes authentication, voice-assistant pipelines, and backup/restore. The excerpts show core event/state construction and selected subsystem references; many integration internals are unsampled, so their detailed runtime links are omitted.
Main entry points: core.py Home Assistant core · pipeline.py Assist pipeline · default_pipeline.py Default voice pipeline · config_entries.py Integration setup
Components 18
Core runtime
- Home Assistant core
homeassistant/core.py - Event bus
homeassistant/core.py - Entity states
homeassistant/core.py
Integrations and entities
- Integration setup
homeassistant/config_entries.py - Device integrations
homeassistant/components - Entity registry
homeassistant/helpers/entity_registry.py - Device registry
homeassistant/helpers/device_registry.py
Platform services
- Integration loader
homeassistant/loader.py - Service handling
homeassistant/helpers/service.py - Persistent storage
homeassistant/helpers/storage.py - Authentication
homeassistant/auth/auth_store.py
Product capabilities
- Assist pipeline
homeassistant/components/assist_pipeline/pipeline.py - Default voice pipeline
homeassistant/components/assist_pipeline/default_pipeline.py - Conversation agents
homeassistant/components/conversation - Speech recognition
homeassistant/components/stt - Speech synthesis
homeassistant/components/tts - Backup and restore
homeassistant/components/backup/manager.py
Other components
- Home operator
Connections 17
- Home operator → Integration setup: configures
- Integration setup → Device integrations: selects integration
README.rst - Home Assistant core → Event bus: creates
homeassistant/core.py - Home Assistant core → Entity states: creates
homeassistant/core.py - Entity registry → Entity states: cleans restored states
homeassistant/helpers/entity_registry.py - Integration setup → Device integrations: dispatches flows
homeassistant/config_entries.py - Integration loader → Device integrations: loads components
homeassistant/components/stt/__init__.py - Service handling → Home Assistant core: uses runtime
homeassistant/helpers/service.py - Persistent storage → Home Assistant core: initializes with
homeassistant/helpers/storage.py - Authentication → Persistent storage: uses storage
homeassistant/auth/auth_store.py - Assist pipeline → Conversation agents: uses agents
homeassistant/components/assist_pipeline/pipeline.py - Assist pipeline → Speech recognition: uses recognition
homeassistant/components/assist_pipeline/pipeline.py - Assist pipeline → Speech synthesis: uses synthesis
homeassistant/components/assist_pipeline/pipeline.py - Default voice pipeline → Conversation agents: uses agents
homeassistant/components/assist_pipeline/default_pipeline.py - Default voice pipeline → Speech recognition: uses recognition
homeassistant/components/assist_pipeline/default_pipeline.py - Default voice pipeline → Speech synthesis: uses synthesis
homeassistant/components/assist_pipeline/default_pipeline.py - Backup and restore → Persistent storage: uses storage
homeassistant/components/backup/manager.py