Heating Curve Optimizer¶
Intelligent Heating Optimization for Home Assistant
Minimize electricity costs while maximizing comfort using dynamic programming and predictive algorithms
What is Heating Curve Optimizer?¶
Heating Curve Optimizer is a sophisticated Home Assistant custom integration that automatically adjusts your heating system to minimize electricity costs while maintaining optimal comfort. It uses advanced algorithms to predict and optimize heating based on:
- Weather Forecasts - Temperature and solar radiation predictions
- Electricity Prices - Dynamic pricing for consumption and production
- Heat Pump Efficiency - Real-time COP (Coefficient of Performance) calculations
- Building Characteristics - Your home's thermal properties
Key Features¶
Cost Optimization¶
Dynamically adjust heating curves to minimize electricity costs while meeting heat demand. The optimizer shifts heating load to periods with lower electricity prices when possible.
Solar Integration¶
Automatically accounts for solar gain through windows and solar production, creating a thermal buffer that reduces heating requirements.
Smart Predictions¶
Uses a 6-hour planning horizon with dynamic programming to find the optimal heating strategy considering: - Variable electricity prices - Weather forecast (temperature, solar radiation) - Heat pump efficiency curves - Building thermal mass
Comfort Constraints¶
Maintains supply temperature within configurable limits while respecting maximum rate-of-change constraints to prevent system stress.
How It Works¶
The integration continuously:
- Fetches weather forecasts and electricity price predictions
- Calculates heat demand based on your building's thermal properties
- Optimizes heating curve offsets using dynamic programming
- Outputs optimal supply temperature adjustments
- Adapts in real-time as conditions change
Quick Start¶
Get started in minutes:
- Install via HACS (Home Assistant Community Store)
- Configure your building parameters (area, energy label, window sizes)
- Connect your electricity price sensors
- Deploy and enjoy automated optimization!
Architecture Overview¶
What Makes It Special?¶
Dynamic Programming Approach¶
Unlike simple threshold-based heating controls, this integration uses dynamic programming to solve the multi-period optimization problem. This means it considers:
- Future electricity prices
- Predicted weather changes
- Heat pump efficiency variations
- Building thermal inertia
The result is a globally optimal heating strategy, not just locally optimal decisions.
Real Physics Modeling¶
The integration uses actual thermal engineering principles:
- Heat Loss: \(Q_{loss} = U \times A \times \Delta T\)
- Solar Gain: Based on radiation intensity and window orientation
- COP Modeling: \(COP = (COP_{base} + \alpha \times T_{outdoor} - k \times (T_{supply} - 35)) \times f\)
This ensures realistic predictions and reliable optimization.
Production-Aware Optimization¶
When you have solar panels or other production:
- Negative net prices are handled correctly
- Thermal buffer is created from excess solar gain
- Optimization prefers heating during production peaks
Supported Configurations¶
Air-to-water heat pumps
Ground-source heat pumps
Hybrid heating systems
Dynamic electricity pricing
Fixed electricity pricing
Solar production integration
Multi-zone buildings (with appropriate configuration)
Documentation Structure¶
- Getting Started - Installation and initial setup
- Algorithm - Deep dive into the optimization engine
- Examples - Real-world scenarios with visualizations
- Reference - Complete sensor and configuration reference
- Development - Contribute to the project
Community & Support¶
- GitHub: Report issues
- Home Assistant Community: Share your experiences
- Buy me a coffee: Support development
Built with ❤️ for the Home Assistant community