Troubleshooting¶
Common issues and their solutions.
Forecasts Are Not Long Enough¶
Problem¶
Optimization fails or warnings about insufficient forecast data.
Symptoms¶
- Optimization status shows
infeasibleorundefined - Logs mention forecast length issues
- Sensors show
unknownvalues
Solutions¶
Check Forecast Length¶
Ensure your forecast sensors provide data for the entire optimization horizon.
Example: If horizon is 48 hours, forecasts must cover at least 48 hours. Refer to the horizon guidance before changing that value.
Verify Forecast Sensors¶
Check sensor attributes in Developer Tools:
- Go to Developer Tools → States
- Find your forecast sensor
- Check
forecastattribute has enough timestamped values
Reduce Horizon¶
If you can't get longer forecasts, reduce the horizon:
- Open HAEO configuration
- Reduce Horizon Hours to match your forecast length
- Save and wait for optimization Shorter horizons limit planning depth, so follow the horizon guidance when you make this change.
Use Multiple Forecast Sensors¶
Some integrations split forecasts (today/tomorrow):
HAEO combines them automatically.
Common Integrations¶
| Integration | Forecast Length |
|---|---|
| Open-Meteo Solar Forecast | 7 days |
| Solcast | 7 days |
| Amber Electric | 48 hours |
| Custom Sensors | Varies |
Graph Isn't Connected Properly¶
Problem¶
Optimization fails because the network graph is disconnected.
Symptoms¶
- Optimization status shows
infeasible - Some elements never show power flow
- Logs mention disconnected components
Solutions¶
Visualize Your Network¶
Draw your network on paper:
graph LR
Grid[Grid] -.->|Missing?| Net[Net]
Battery[Battery] <--> Net
Solar[Solar] --> Net
Net --> Load[Load]
Each element should have at least one connection.
Check All Elements Have Connections¶
In HAEO configuration, verify:
- Grid: Connected to a net or battery
- Battery: Connected to grid or net
- Solar: Connected to net or battery
- Loads: Connected to net or battery
Add Missing Connections¶
If an element is isolated, add connection entries to link it to the network:
- Navigate to Settings → Devices & Services
- Click Add Integration and search for "HAEO"
- Select Connection as the entry type
- Choose the isolated element as source or target
- Connect it to another element in your network
- Submit the connection
Use Nodes¶
For complex topologies, use nodes as connection hubs:
graph LR
Grid[Grid] <--> Net[Main_Net]
Battery[Battery] <--> Net
Solar[Solar] --> Net
Net --> Load[Load]
This ensures all elements connect to a common point.
Verify Connection Direction¶
Some connections are unidirectional:
- Solar can only produce (→)
- Loads can only consume (→)
- Grid and Battery are bidirectional (↔)
Ensure directions match physical capabilities.
Optimization Takes Too Long¶
Problem¶
Optimization duration exceeds acceptable limits.
Solutions¶
If optimization takes too long:
- Trim horizon cautiously: Consider smaller horizons only after other steps and follow the horizon guidance when you do.
- Increase period: Use larger time steps (5min → 15min)
- Simplify network: Remove unnecessary elements
- Change solver: Try CBC or GLPK
Battery Not Charging/Discharging¶
Problem¶
Battery remains idle despite price variation.
Solutions¶
- Check SOC limits: May be too tight
- Verify pricing: Need import price > export price
- Check power limits: May be too restrictive
- Review connections: Battery must be connected
Sensors Showing Unknown¶
Problem¶
Element sensors display unknown values.
Solutions¶
- Wait for optimization: First run takes time
- Check optimization status: Must be
optimal - Verify configuration: All required fields filled
- Review logs: Check for error messages
Price Forecasts Not Working¶
Problem¶
HAEO doesn't respond to price changes.
Solutions¶
- Check forecast format: Must include
datetimeandvalue - Verify timestamps: Must be ISO format with timezone
- Ensure forecast length: Must cover horizon
- Check sensor updates: Must update regularly
Getting Help¶
If these solutions don't help:
- Check logs: Settings → System → Logs
- GitHub Issues: Report a bug
- Discussions: Ask for help
Include:
- Home Assistant version
- HAEO version
- Configuration (sanitized)
- Relevant logs
Next Steps¶
Try these resources if you still need assistance after working through the troubleshooting steps.
-
Review data update behaviour
Check how HAEO refreshes data and identify update bottlenecks.
-
Check automation patterns
Ensure follow-up automations react correctly to optimizer outputs.
-
Ask the community for help
Share logs and scenarios to get tailored assistance.