Home Assistant · Energy
Energy dashboard with the Shelly Pro 3EM
Assigning import, export and power correctly – the basis for comparing forecast and production.
Read article →Technical article · Home Assistant · Photovoltaics
Anyone who wants to plan battery, wallbox or immersion heater around the sun needs an idea of what the roof will deliver tomorrow. Home Assistant includes one integration for this, two more come via HACS. The differences lie less in the maths than in resolution, request limits and terms of use – and in one detail that regularly goes wrong: the orientation of the roof. Each service counts it differently.
All three estimate what the system will produce from location, orientation and module power plus weather data. Forecast.Solar combines this with historical averages from the EU's photovoltaic information system PVGIS, Open-Meteo Solar Forecast converts Open-Meteo's weather forecast into power. Besides the forecast, Solcast supplies estimated actuals calculated afterwards from observed conditions.
| Forecast.Solar | Solcast | Open-Meteo Solar Forecast | |
|---|---|---|---|
| In Home Assistant | built in | via HACS | via HACS |
| Account | none needed | hobbyist account, own residence only, non-commercial | none needed, free for non-commercial use only |
| Roof planes | 1 | up to 2 orientations | several |
| Resolution | 1 hour | 30 minutes | – |
| Horizon | today and tomorrow | several days | – |
| Requests | 12 per 60 minutes and IP; the integration polls hourly | 10 a day (new accounts) | under 10,000 a day |
| Special features | damping in the morning and evening, inverter size | three scenarios (10 %, 50 %, 90 %), damping from your own measurements | horizon profile, inverter per plane, trackers |
A dash means: not stated in the documentation. Paid Forecast.Solar plans raise resolution, horizon and number of planes; prices are on the service's website.
The integration is added under Settings › Devices & services and asks for four things:
The integration then creates these sensors, among others: estimated production today, for the rest of the day and tomorrow, for the current and the next hour, estimated power now and the time of the highest power today and tomorrow. Power forecasts for 1, 12 and 24 hours ahead also exist but are disabled by default. Without an account the forecast updates hourly, with an API key every 30 minutes.
This is where the most common mistake happens, and it is hard to spot because the forecast does not look obviously wrong afterwards. The services count compass direction differently, and anyone who carries a guide for one service over to another turns their roof.
| Roof faces | Home Assistant: Forecast.Solar, Open-Meteo Solar Forecast, EMHASS | Forecast.Solar API | Solcast |
|---|---|---|---|
| South | 180 | 0 | −180 |
| South-west | 225 | 45 | 135 |
| West | 270 | 90 | 90 |
| South-east | 135 | −45 | −135 |
| East | 90 | −90 | −90 |
| North | 0 | ±180 | 0 |
So Home Assistant's Forecast.Solar integration counts differently from the interface of the very service it queries; anyone entering the values directly in the interface uses Home Assistant's convention. Solcast values, on the other hand, are not entered in Home Assistant but in the Solcast account. The developers of the Solcast integration warn that an orientation entered the wrong way shifts the forecast “possibly by up to an hour during the day”.
In all three services, a plane is a group of modules with the same orientation. An east-west roof is therefore two planes, and that is where Forecast.Solar's free access fails: it allows only one. With an API key the integration takes up to four planes and combines them into one set of sensors, optionally capped at the inverter's power. How many planes an account allows depends on the plan, according to Forecast.Solar: two with Personal Plus, three with Professional, four from Professional Plus.
Solcast allows two orientations at the same location in the hobbyist account, which covers east and west. Open-Meteo Solar Forecast supports several planes and either one shared inverter for all or a separate one per plane.
No forecast knows about the tree that shades half the roof in the morning. The services offer different adjustments for this. If you only want a rough idea beforehand of what an array brings per year at a given orientation and tilt, the solar panel output calculator on xmoo.app gives an estimate (PVGIS data).
How to see whether a change helped: the Energy dashboard can overlay forecast and actual production. The Forecast.Solar documentation recommends exactly that – adjusting damping step by step based on the comparison.
Under Settings › Dashboards › Energy, open the configured solar system, turn on the production forecast option and select the service. The solar production graph then shows both. How the solar system itself gets into the Energy dashboard is covered in Energy dashboard with the Shelly Pro 3EM.
The sensors can be used like any other value. An example: check in the evening whether little sun is
expected tomorrow, and if so allow the battery to charge from the grid. The helper
input_boolean.grid_charging_allowed stands for whatever your own battery control
evaluates:
alias: "Little sun tomorrow: allow grid charging"
triggers:
- trigger: time
at: "22:00:00"
conditions:
- condition: numeric_state
entity_id: sensor.energy_production_tomorrow
below: 5
actions:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.grid_charging_allowed
The 5 kWh threshold is a placeholder and depends on system, battery and consumption. Whether grid charging pays off at all is decided by the price calculation in Battery arbitrage: the calculation, which also explains why a cycle from the grid is missing for the solar surplus. The control itself is covered in Controlling a home battery with Home Assistant and Charging Victron ESS on spot prices. The same pattern applies to wallbox and hot water, see Charging your EV from solar surplus and PV surplus into hot water.
EMHASS needs a production forecast for its schedule and fetches it itself: by default from Open-Meteo's weather forecast, optionally from Solcast, from Forecast.Solar's free access or from a CSV file. With Solcast, EMHASS can weight between the central and the cautious scenario. Why setting up EMHASS is still the real hurdle is covered in Setting up EMHASS.
Forecast.Solar, since version 2021.7. Without an account it provides a forecast for one roof plane, for today and tomorrow in hourly values, and updates every hour. Solcast and Open-Meteo Solar Forecast come as add-on integrations via HACS.
That depends on the service. In Home Assistant's Forecast.Solar integration, in Open-Meteo Solar Forecast and in EMHASS, south is 180 degrees. The Forecast.Solar programming interface counts south as 0 degrees, Solcast as minus 180 degrees. West is 90 degrees there, 270 degrees in Home Assistant.
For your own system at home, yes. The free offer covers one location with up to two orientations and 10 requests per day, for private, non-commercial use only. Solcast checks that the location is a residence. The Home Assistant integration comes via HACS.
With free access, only one roof plane. Several planes need an account: according to Forecast.Solar, two from Personal Plus and four from Professional Plus. The Home Assistant integration takes up to four planes and combines them into one set of sensors. Solcast allows two orientations in the free hobbyist account.
Under Settings, Dashboards, Energy, open the configured solar system, turn on the production forecast option and select the forecast service. The solar production graph then shows forecast and actual production on top of each other.
There is no fixed figure. The forecast is based on weather and reference data, not on your own measurement, and never matches exactly. How well it fits your system is shown by comparing it in the Energy dashboard over a few weeks; orientation, damping and inverter size can then be adjusted.
All statements come from the documentation of Home Assistant, the forecast services and the integrations, each with the date it was checked.
Integrations and service plans change. The current documentation of the providers is what counts.
You want to control battery, wallbox or hot water by the PV forecast and do not know which service suits your system? I can set it up with you – the first conversation is free.