A custom Home Assistant integration for photovoltaic (PV) production forecasting based on:
This integration brings solar production forecasting directly into Home Assistant using solXpect-based calculation logic.
The integration adapts the solXpect PV forecasting model into Home Assistant sensors.
The original solXpect model calculates PV production using:
- solar geometry
- direct and diffuse radiation
- weather forecast data (Open-Meteo)
- panel orientation (azimuth & tilt)
- temperature influence
- inverter limits
- optional shading effects
This Home Assistant integration exposes these calculations as sensors for automation and dashboards.
- PV production forecast:
- Today
- Tomorrow
- Native Home Assistant sensors
- HACS compatible installation
- Based on solXpect physics model
- Uses Open-Meteo weather forecasts
- Lightweight calculation layer
In HACS:
- Go to HACS → Integrations
- Open menu (⋮)
- Select Custom repositories
- Add: https://github.com/piter-pit/ha-solxpect
- Category: Integration
- Click Add
- Search for SolXpect PV Forecast
- Install in HACS
- Settings → Devices & Services → Add Integration → solXpect PV Forecast
The configuration UI is still being refined and may require some additional polishing.
For now, please note the following important details:
- All configuration fields must currently be filled in.
Cells Max Poweris currently not used directly in calculations.
SinceCells EfficiencyandCells Areawere introduced, the panel power is calculated automatically from these values.
Latitude and longitude should be entered in decimal format, for example:
13.92873
Coordinate conventions follow the Open-Meteo API standard:
- Positive latitude values = Northern Hemisphere
- Negative latitude values = Southern Hemisphere
- Positive longitude values = Eastern Hemisphere
- Negative longitude values = Western Hemisphere
Examples:
Latitude: 52.2297
Longitude: 21.0122
If Is Central Inverter is enabled, the total generated PV power will be limited by the configured Inverter Power Limit.
Each shading cell must contain exactly 36 comma-separated values representing obstacles for azimuth sectors in 10° increments:
0°–10°, 10°–20°, 20°–30°, ...
Shading Elevation defines the maximum obstacle height angle for each sector:
- Range:
0°–90°
Shading Opacity defines the attenuation strength of the obstacle:
- Range:
0%–100%
Shading affects only the direct beam irradiation component.
If forecast values still appear too high after configuring shading, it is recommended to reduce the Diffuse Efficiency parameter to better match real-world conditions.
- Only one PV string / panel group is supported - No multiple orientations
The integration creates the following sensors:
| Sensor | Description |
|---|---|
sensor.solxpect_today |
PV forecast for today |
sensor.solxpect_tomorrow |
PV forecast for tomorrow |
Units: kWh
Each sensor also provides detailed hourly PV production values in its attributes under hours.
- Battery charge planning
- EV charging optimization
- Smart home energy scheduling
- Forecast-based automations
- Energy dashboards
https://github.com/woheller69/solxpect
SolXpect is a photovoltaic forecasting model for Android based on physical solar calculations:
- solar position
- irradiance models
- temperature correction
- inverter constraints
- shading
https://github.com/blablubbbb/solXpect_meets_python
Python adaptation of solXpect.
Thanks to:
- solXpect authors
- solXpect_meets_python contributors
- Open-Meteo weather API
This integration is currently in active development.
Some features may change, break, or be refactored without notice.
It is intended for testing and early adoption purposes.
This integration is provided "as is", without any warranties.
Use it at your own risk.
The authors are not responsible for:
- incorrect PV forecasts
- data inaccuracies
- Home Assistant instability
- issues caused by external weather data (Open-Meteo)
- incorrect automation decisions based on forecasts
Always verify critical automations with additional safeguards.