Developer guide¶
Welcome to the HAEO developer documentation! This section covers architecture, development setup, and contribution guidelines.
Quick start¶
Architecture¶
HAEO uses a layered architecture separating user configuration from optimization modeling:
- Architecture - Packages and how they fit together
- Adapter layer - Device layer to model layer transformation
- Energy models - Model elements, segments, and the network
- Policy compilation - How power policies compile into the LP
- VLAN optimization - Keeping policy tags from multiplying variables
Component guides¶
- Horizon manager - Synchronized forecast time windows
- Input entities - Input stores and the entities that expose them
- Data loading - Sensor data extraction and loading
- Coordinator - Event-driven optimization coordinator
- Config flow - Configuration UI patterns
Development¶
- Setup - Development environment with
uv - Local simulation - A browsable Home Assistant running on scenario data
- Typing philosophy - Type patterns and where checks belong
- Units and stability - Unit system and numerical considerations
- Testing - Running and writing tests
- Contributing - Contribution workflow
- Documentation guidelines - Writing and maintaining docs