PV Production Forecasting in Home Assistant: Solcast, Forecast.Solar and Open-Meteo Step by Step
In part one of the series we set up the Energy dashboard so it reliably shows what already happened. Now we take a step into the future: we want to know how much the system will produce this afternoon, and how much tomorrow.
Why does it matter? Because without that information you can’t make any sensible energy decisions. Should you top up the battery from the grid overnight, or wait for the sun? Should you turn the water heater on now, or will there be free surplus in three hours? Should you set the inverter to export mode, or keep the energy at home? Every one of these questions needs an answer to an earlier one: how much power will my roof make.
This article walks you through the three most popular forecast sources available in Home Assistant. I’ll show how to install and configure each one, where the traps are (and Solcast has quite a few), how to check whether a forecast is accurate enough for your specific roof, and how to wire it into the Energy dashboard and your own chart.
A configured Energy dashboard with a working PV production sensor in kWh (covered in part one of the series). You’ll need it to compare the forecast against reality. It also helps to have HACS installed, since two of the three integrations covered here go through it. If you don’t have HACS yet, I’ll show below how to manage without it.
Solcast vs Open-Meteo vs Forecast.Solar: quick comparison
For the easiest first setup, start with Forecast.Solar: it is built into Home Assistant. Solcast and Open-Meteo Solar Forecast use community integrations installed through HACS. All three can provide forecasts for the Energy Dashboard; the forecast is an estimate, not a replacement for measured solar production.
| Source | Account / API | Setup and practical trade-off |
|---|---|---|
| Forecast.Solar | No account or key needed for the public service. | Built-in integration and Energy Dashboard support. Free service: one plane, hourly refresh and lower resolution. Paid Personal Plus or higher supports up to four planes. |
| Solcast | Account and API key required. | HACS integration with Energy Dashboard support and automatic scheduling. The current residential non-commercial offer allows 10 API requests per day and up to two tilt/azimuth combinations at one location; check your account quota. |
| Open-Meteo Solar Forecast | No key for the free non-commercial API; a paid customer API uses a key. | HACS integration, multiple arrays and Energy Dashboard support. Free API limits apply: 600 calls/minute, 5,000/hour, 10,000/day and 300,000/month. More setup choices, including shading and inverter capacity. |
No provider is automatically the most accurate for every roof. Compare forecast and measured production on your own system before using the result to control a battery or heater.
Checked 2026-10-02: Home Assistant Forecast.Solar, Solcast residential offer, Solcast integration, Open-Meteo limits and Open-Meteo integration.
Why a PV forecast isn’t the same as a weather forecast
Let’s start with something that’ll save you some disappointment. A weather app says “sunny tomorrow, 24 degrees.” That’s not enough to predict your system’s production, since production depends on factors the weather app says nothing about.
A PV production forecast has to combine sunlight data with your specific system’s parameters. What matters:
That’s why each integration covered here will ask you for these parameters during setup. The more precisely you supply them, the better the result. Even so, none of them knows about your chimney, so a forecast will always be an approximation that needs verifying against your own data. I’ll come back to that in a separate section.
Azimuth is given in degrees, and this is where a common mistake happens. Different integrations use different conventions: in some, south is 0, east is minus 90 and west is plus 90. In others, north is 0 and south is 180. Read the specific integration’s documentation before typing in a number, since mixing up the convention will give you a forecast shifted by half a day, and you’ll spend a week wondering why the chart doesn’t match. Tilt is always 0 for a flat roof and 90 for a vertical wall.
Solcast: the best data, the most traps
Solcast is a commercial forecast provider based on satellite data, also used by energy-sector companies. For home users it offers a free hobbyist plan. It’s the most commonly recommended solution in the Home Assistant community, and usually the most accurate of the three, but it has limits you need to know before starting.
Step 1: create an account and define your system
Go to Solcast’s site and create a free account under the home-user plan (hobbyist, home residential PV). Once logged in, add your system as a “rooftop site,” giving the location, power in kW, azimuth and tilt.
If you have panels on two roof faces with different directions (a classic east-west layout), you need to define two separate rooftop sites. Solcast calculates each one independently, and the HA integration sums the results. This matters, since it directly affects your query-limit usage, covered next.
After saving your system, go into your account settings and copy your API key. You’ll need it in Home Assistant.
Step 2: the query limit, the biggest trap
The current free residential Solcast offer permits 10 API requests per day. The integration documentation says some early accounts retain up to 50; use the quota assigned to your account. Current versions support automatic scheduled updates, enabled by default for new installations. A manual refresh automation is an alternative when auto-update is disabled, not a requirement for every installation. Configure the integration to stay within your quota, including calls for each rooftop site.
Let’s work out what this means in practice. Every forecast refresh uses one query per defined rooftop site. So:
Step 3: installing the integration through HACS
The Solcast integration isn’t built into Home Assistant, so you install it through HACS. Important: for years, guides floating around pointed at an old integration called oziee, which has been abandoned. The currently maintained version is BJReplay/ha-solcast-solar, and that’s the one to look for.
Once configured, you’ll get a set of entities. The most important are the summary forecast for today, tomorrow and the day after, plus entities broken down by time slot. Names can vary between integration versions, so check them in Developer Tools by filtering for “solcast.”
Step 4: optional manual refresh when auto-update is disabled
Since the integration doesn’t poll on its own, we build an automation. The key rule: don’t refresh evenly across the whole day. Overnight the forecast barely changes, and you’d be wasting queries. Concentrate them on daylight hours, when cloud cover actually evolves.
Use the example below only if automatic updates are disabled. A version for a one-face system (limit 10, we use 6, leaving a margin):
description: “6 odswiezen dziennie, skoncentrowanych w godzinach dziennych”
mode: single
trigger:
– platform: time
at: “05:30:00”
– platform: time
at: “08:30:00”
– platform: time
at: “11:00:00”
– platform: time
at: “13:30:00”
– platform: time
at: “16:00:00”
– platform: time
at: “21:00:00”
action:
– service: solcast_solar.update_forecasts
Why exactly these hours? The 5:30 refresh gives an up-to-date forecast for the start of the day. Three refreshes between 8:30 and 13:30 catch cloud-cover changes during peak production hours. The 16:00 one updates the afternoon. The last, at 21:00, pulls tomorrow’s forecast once weather models already have fresh data, which matters if you want to make overnight battery-charging decisions.
If you click manual refresh a few times while configuring, you can exhaust the limit and the automation will stop working until midnight. It’s worth adding a condition that checks the remaining queries. The integration exposes an entity counting used calls — check its exact name in your own Developer Tools and add a condition like the example below.
– condition: template
value_template: >
{{ states(‘sensor.solcast_pv_forecast_api_used’) | int(99) < 9 }}
You insert this between trigger and action. The function int(99) is a safeguard: if the entity doesn’t respond for some reason, we assume a value of 99, so the condition fails and the automation doesn’t blindly waste a query.
Forecast.Solar: the simplest start, no HACS
Forecast.Solar is built into Home Assistant’s core, so you don’t need to install anything. It’s the fastest route to any kind of forecast, and a good choice if you’re just starting out and don’t want to create accounts or dig into HACS.
Configuration
Go to Settings → Devices & services → Add integration and search for “Forecast.Solar.” The form will ask for:
The current Forecast.Solar integration supports adding planes within one entry with a paid Personal Plus account or higher, up to four planes. The free public service supports one plane. The summing examples below illustrate how to combine separate forecast entities when needed.
Free plan limits
Forecast.Solar’s free public plan limits you to one roof plane, gives coarser time resolution, and less frequent updates. Paid Personal Plus plans unlock up to four planes and an API key with more frequent refreshes.
Forecast.Solar’s model is fairly rough. A user running a two-year comparison on Node-RED described the forecast being off by more than 20 percent, often enough that they refused to use it directly in automations controlling charging. They treat it as an indicative sensor on the Energy dashboard, not a basis for control decisions. That’s a sensible approach, worth adopting until you’ve verified accuracy on your own roof.
When is Forecast.Solar enough? If you have a simple, single-face roof and your automations have a wide margin for error, along the lines of “if tomorrow’s forecast shows more than 15 kWh, don’t top up the battery from the grid,” rather than precise quarter-hour planning. It’s a good starting point before you invest time in something more accurate.
Open-Meteo: multiple arrays, no key for non-commercial use
The HACS integration rany2/ha-open-meteo-solar-forecast uses Open-Meteo weather data to model solar production. Its free non-commercial API does not require a key, but rate limits apply; see the current comparison above. The integration supports multiple arrays, with their own location, orientation and shading settings. Commercial use requires an appropriate paid API plan.
This solution is gaining popularity precisely as an escape from Solcast’s limits. The EVCC community, the popular EV charging control system, is switching to Open-Meteo for the same reason.
Installation and configuration
Open-Meteo Solar Forecast refreshes data through the integration; stay within the API limits rather than repeatedly forcing updates. Solcast also supports automatic scheduling in current versions. Weather model updates, not just polling frequency, determine when a forecast can improve.
Derivatives worth knowing about
Two interesting derivatives have grown up around this project. SunForecast Plus adds a correction based on real-time cloud cover. Helios goes further and learns from your actual production history recorded in Home Assistant’s database, acting as a native forecast provider for the Energy dashboard. Both have smaller communities than the main integration, so treat them as experimental, but the direction — models calibrating on your own data instead of a general regional model — solves exactly the chimney-and-shading problem I mentioned at the start.
Which to pick? A decision cheat sheet
Instead of a ten-column comparison table, a simpler approach: find the description that matches your situation.
You’re just starting out, have one roof face, don’t want to create accounts or install HACS, and the forecast is mainly for glancing at on the Energy dashboard. Setup takes five minutes.
You have several roof faces and want a forecast without a key for non-commercial use. Open-Meteo supports multiple arrays, but its free API is rate-limited. Choose it for the configuration flexibility, then verify the forecast against your roof rather than treating it as unlimited.
You want to compare a satellite-based forecast on one or two roof faces and accept account setup and the API quota. Use automatic scheduling, or a manual schedule with auto-update disabled. Verify accuracy locally; the result depends on weather, orientation and shading.
Nothing stops you running two sources in parallel and comparing them on one chart for a month. It only costs a bit of database space, and gives you a hard answer about which source fits your roof better, instead of relying on other people’s forum opinions. I show below how to build a chart like that.
Summing several roof faces
If you added Forecast.Solar several times, one entry per face, you got several separate forecast entities. The Energy dashboard only accepts one, so you need to sum them. Paste this into configuration.yaml:
– sensor:
– name: “Prognoza PV dzisiaj suma”
unit_of_measurement: “kWh”
device_class: energy
state_class: total
state: >
{% set wschod = states(‘sensor.energy_production_today’) | float(0) %}
{% set zachod = states(‘sensor.energy_production_today_2’) | float(0) %}
{{ (wschod + zachod) | round(2) }}
Swap the entity names for your own. The second instance of the integration usually gets a _2 suffix, but check this in your own Developer Tools, since naming can vary.
This same summing sensor will come in handy for wiring the forecast into the Energy dashboard, covered in the next section.
Wiring the forecast into the Energy dashboard
Back to the configuration from part one of the series. Go to Settings → Dashboards → Energy, click edit on your solar panel configuration, and you’ll find a field for the production forecast there.
Tick the forecast option and pick your integration from the list. If you’re using Solcast or Open-Meteo, the integration usually registers itself with the dashboard automatically and you just tick it. If you built your own summing sensor, you point at it manually.
You’ll see the effect on the production chart: an extra, lighter line or area showing predicted production against the actual. It’s the simplest way to keep an eye on whether the forecast is landing or missing.
The most common causes: the integration hasn’t pulled its first forecast yet (wait, or trigger a manual refresh), the forecast sensor doesn’t have device_class: energy, or in Solcast’s case, you’ve exhausted the query limit and the integration has no fresh data. Check in Developer Tools whether the forecast entity has a sensible value at all before hunting for a problem in the dashboard.
Verification: is this forecast even any good?
This is the most important section in the whole article. Before basing any automation controlling a battery, water heater or car charger on a forecast, you need to know how wrong that forecast tends to be for your roof. Not the forum author’s roof, not the Polish average — yours.
A sensor measuring forecast error
We’re building a sensor that calculates every evening how many percent the forecast was off. You need two things: the forecast value recorded in the morning, and actual daily production from the utility_meter counter (built in part one of the series).
First, a helper to store the morning forecast. In Settings → Devices & services → Helpers → Create helper → Number create a helper named “Morning forecast recorded,” range 0 to 200, step 0.01, unit kWh.
Now the automation that records the forecast at dawn:
mode: single
trigger:
– platform: time
at: “06:00:00”
action:
– service: input_number.set_value
target:
entity_id: input_number.prognoza_zapisana_rano
data:
value: “{{ states(‘sensor.prognoza_pv_dzisiaj’) | float(0) }}”
And the sensor calculating the error:
– sensor:
– name: “Blad prognozy PV”
unit_of_measurement: “%”
state_class: measurement
state: >
{% set prog = states(‘input_number.prognoza_zapisana_rano’) | float(0) %}
{% set real = states(‘sensor.produkcja_pv_dzisiaj’) | float(0) %}
{% if prog > 0.5 %}
{{ (((real – prog) / prog) * 100) | round(1) }}
{% else %}
0
{% endif %}
A positive value means you produced more than the forecast promised (the forecast was pessimistic). A negative value means production was worse than announced (the forecast was optimistic). It’s best to read this sensor in the evening, once production has finished.
How to read the results after two weeks
Collect data for at least two weeks, making sure the period covers sunny, overcast and variable days. The forecast usually does great on a stably sunny day, and goes off the rails exactly when you need it most — with variable cloud cover.
If you notice the forecast consistently overstates, say by an average of 15 percent in every weather, you don’t have to switch sources. Just add your own correction sensor that multiplies the forecast by a 0.85 factor. This is the most common case for people with shading or older panels whose real efficiency falls short of the nominal figure entered in the configuration.
Forecast versus reality chart
The error sensor gives you a number, but a chart will show you at what hour the forecast goes off track, which is far more useful information. We’ll use the apexcharts-card, which you install from HACS under the Frontend tab.
After installing, go into dashboard edit mode, add a custom card, and paste:
header:
show: true
title: Prognoza kontra rzeczywistosc
graph_span: 2d
span:
start: day
series:
– entity: sensor.produkcja_pv_moc
name: Produkcja rzeczywista
type: area
color: “#4ade80”
opacity: 0.4
stroke_width: 2
– entity: sensor.solcast_pv_forecast_forecast_today
name: Prognoza
type: line
color: “#fbbf24”
stroke_width: 2
extend_to: false
yaxis:
– min: 0
apex_config:
title:
text: W
Swap the entity names for your own. The green area is actual production, the yellow line is the forecast. After a few days of watching this chart, you’ll start seeing patterns: maybe the forecast nails noon but overstates mornings, because your roof is shaded by a neighbouring building then. No average error percentage will give you that kind of insight.
If you’re running two integrations in parallel, just add a third series to the configuration above, pointing at the second source’s entity and giving it a different colour, say blue. A month of watching a chart like that will give you confidence about which source to pick, based on your own data rather than other people’s opinions.
The first practical forecast-based automation
Now that you have a verified forecast, let’s build something that actually saves money. The simplest sensible case: don’t top up the battery from the grid at night if tomorrow looks sunny.
mode: single
trigger:
– platform: time
at: “23:30:00”
condition:
– condition: template
value_template: >
{{ states(‘sensor.prognoza_pv_jutro’) | float(99) < 12 }}
– condition: numeric_state
entity_id: sensor.bateria_soc
below: 40
action:
– service: switch.turn_on
target:
entity_id: switch.falownik_ladowanie_z_sieci
Let’s break this down. The 23:30 trigger is a typical start of the cheap night tariff. The first condition checks tomorrow’s forecast: if it shows more than 12 kWh, we don’t charge, since the sun will do it for free. The value float(99) as a safeguard means that when the forecast entity doesn’t respond, we assume a large number, so the condition fails and we don’t needlessly charge the battery. The second condition checks the charge level: if the battery is already half full, there’s no point topping it up.
The 12 kWh value in the example above is a starting point, not a universal truth. The right threshold depends on your system’s power, battery capacity and daily consumption. Start with a simple calculation: how much energy you typically use per day, and what share of that falls in hours without sun. If your system is 5 kWp and the battery 5 kWh, a threshold around 10 to 12 kWh is reasonable. Raise it accordingly for a bigger system. And remember the margin for the forecast error you just measured: if your forecast overstates by 15 percent, set the threshold higher so you don’t get stuck with an empty battery on a cloudy day.
Don’t forget to turn charging off. The automation above only turns the switch on, so you need a second one to turn it off in the morning, or once a target charge level is reached. We’ll cover this kind of automation pair more broadly in part three of the series, along with the problem of conflicts when several automations try to control the same inverter.
Before you pick an integration: prepare a card for your system
The most common beginner mistake looks innocent: someone adds the first integration they find, types in the inverter’s power, picks “south,” and then tries to fix a completely off forecast with automations. But forecast quality starts before you even install the add-on. First you need to describe the physical system the way the model sees it.
Prepare a sheet or a simple table and note down, separately for each face or panel group:
- module power in kWp, not the inverter’s rated power;
- the number of panels and the power of one module;
- azimuth;
- tilt angle;
- rough shading hours;
- whether the group runs on a separate MPPT;
- whether the inverter caps the system’s peak power;
- whether the panels are on a roof, on the ground, on a facade, or on a structure with different angles;
- whether winter brings persistent shading, snow, or leaf litter.
A system might have 6.5 kWp of modules and a 5 kW inverter. You usually enter 6.5 kWp into the forecast model, since the model is estimating the energy arriving from the modules. The inverter’s cap has to be accounted for later during calibration, since under good conditions the real curve might get “clipped” at 5 kW.
How to work out azimuth without guessing
The simplest way is reading the face’s direction off the installation documentation, a satellite map, or your phone’s compass. Keep the phone away from metal structures and cabling, since they can throw off the reading. What matters most, though, is converting the result to the convention used by the specific integration. Don’t copy a number between Solcast, Forecast.Solar and another add-on without checking the documentation.
When to create a separate model for a face
A separate entry makes sense when panel groups clearly face different directions, have a different angle, or are shaded at different times. There’s no point splitting one face into several models just because the panels run on two MPPTs if their geometry is the same. Every extra model adds complexity, and on some services, also eats into the API limit.
If you’re just getting inverter data running, first go back to part one of the Energy dashboard series. For Deye, the guide how to connect a Deye inverter to Home Assistant will also help, and for FoxESS, the instructions for local reading over RS485 and direct Modbus TCP on newer models.
How to read forecast sensors: power, energy, today, tomorrow, and “remaining”
Integrations can create a dozen or several dozen entities. Names differ between versions, so don’t get attached to identifiers from someone else’s screenshot. First work out what a given entity actually means.
This distinction has practical consequences. A forecast of 15 kWh for today doesn’t mean 15 kWh is still available at 15:00. Some of that energy is already history. An automation triggered in the afternoon should use the remaining forecast, or subtract actual production from the morning-recorded forecast itself.
Don’t add “today’s forecast” to “remaining forecast,” or power in kW to energy in kWh. This is a common mistake in template sensors that produces numbers looking believable but physically meaningless.
Build a safety layer: freshness, availability, and forecast margin
You can display almost any value on a dashboard. Controlling an inverter or a high-power device needs more caution. Before every decision, check four things:
- whether the sensor’s state isn’t
unknownorunavailable; - whether the value falls within a realistic range;
- whether the data was refreshed recently;
- whether the decision has margin for forecast error.
An example “safe forecast” sensor might deliberately lower the forecast by 20 percent:
– sensor:
– name: “Prognoza PV jutro bezpieczna”
unique_id: prognoza_pv_jutro_bezpieczna
unit_of_measurement: “kWh”
device_class: energy
state_class: measurement
availability: >
{{ states(‘sensor.prognoza_pv_jutro’) not in [‘unknown’, ‘unavailable’, ‘none’] }}
state: >
{% set forecast = states(‘sensor.prognoza_pv_jutro’) | float(0) %}
{{ [forecast * 0.80, 0] | max | round(2) }}
The 0.80 factor isn’t universal. It should come from your own measurements. When the forecast has an average error of 12 percent, you might allow a 15–20 percent margin. When you’re controlling something where a wrong trigger is costly, use a bigger margin.
Checking the age of the data
The most reliable approach is using an entity or attribute reporting the last API update, if the integration exposes one. When you don’t have such an entity, you can fall back to watching the sensor’s last-change time. Keep in mind, though, that the value can stay identical after a correct refresh, so last_changed doesn’t always mean the time data was pulled. last_updated is better, but it too can get reset by reloading the integration.
If you can’t clearly confirm the forecast’s freshness, the system should fall back to conservative behaviour: don’t change critical settings, keep the inverter’s base schedule, or rely only on actual measured power.
Calibration step by step: fitting the model to your own roof
Don’t judge a service after one day. A single cloud front can throw off even a good model badly. You need a series of data and to separate out a few different kinds of error.
Stage 1: check the scale
Pick two or three cloudless days. If the forecast is proportionally too high all day, check the system’s power, losses, shading and inverter clipping. If it’s too low, check whether you missed a face, or entered inverter power instead of module power.
Stage 2: check the hourly shift
If the curve’s shape is good but the forecast’s peak shows up an hour or two early, the culprit is often azimuth, location, or time zone. An east-facing roof can’t look like a west-facing one in the model.
Stage 3: find persistent shading
If the forecast regularly overstates in the morning but fits well from noon on, the model likely doesn’t know about a tree, a chimney, or a neighbouring building. Don’t correct the whole day with one factor. A per-hour correction, or treating the morning part of the forecast as less reliable, is better.
Stage 4: separate weather from the system
If errors happen randomly on variable days, but the model nails cloudless days, the system’s geometry is probably correct. The problem is weather uncertainty, which you can’t remove with a simple multiplier. In that case, the automation needs a bigger margin and confirmation from actual measured power.
Stage 5: evaluate error separately per season
A July result doesn’t describe January. Winter brings longer shadows, snow, frost, dirt, and a bigger relative role for low production. It’s worth calculating a calibration factor separately for summer and winter, or at least updating it periodically.
Run two sources in parallel for 30 days, but don’t let them control anything. Record the morning forecast, actual daily energy, and the error. Only after a month, pick a source and a safety margin. A test like this is worth more than dozens of forum opinions, since it’s about your roof and your local microclimate.
How to use the forecast in practice: from information to control
A forecast can be used at three levels. It’s safest to go through them in order.
Level 1: information only
You show the forecast on a dashboard, add it to the Energy dashboard, and get a notification in the evening. You’re not controlling anything yet. This is a good stage for the first two weeks.
Level 2: a proposed decision
Home Assistant evaluates the situation and sends a message: “Tomorrow’s forecast is 7.8 kWh, battery at 24%, consider overnight charging to 50%.” The user approves the change manually. This lets you check the logic without risking a bad setting getting written.
Level 3: automatic execution
Only once you’ve confirmed the data’s quality should the system change parameters on its own. Even then, the forecast shouldn’t be the only condition. Combine it with battery SOC, the current price, real household consumption, the power limit, and the state of communication with the inverter.
Example: a water heater only when a surplus actually shows up
A forecast can reserve a window between 11:00 and 14:00 in the morning, but shouldn’t turn the heater on by itself at 11:00. The actual trigger should require real export, or a suitable PV power level sustained for a few minutes. That way the forecast plans, and a live measurement confirms.
mode: single
trigger:
– platform: numeric_state
entity_id: sensor.moc_oddawana_do_sieci
above: 1800
for: “00:05:00”
condition:
– condition: time
after: “10:30:00”
before: “15:30:00”
– condition: numeric_state
entity_id: sensor.prognoza_pv_pozostalo
above: 4
– condition: numeric_state
entity_id: sensor.bateria_soc
above: 70
– condition: state
entity_id: input_boolean.automatyka_energii
state: “on”
action:
– service: switch.turn_on
target:
entity_id: switch.bojler
This is only the logic layer. Controlling a heating element needs a properly sized contactor, protection, and a safe local fallback state. You’ll find a full example in the MarkLabs series: using PV surplus to heat water and ESPHome and automations with protection layers.
Example: overnight battery charging
The decision should factor in not just the forecast total, but also free battery capacity and expected consumption. If tomorrow is set to produce 15 kWh, but the house will use 12 kWh during the day, not all 15 kWh will make it into the battery. In part three of the series we’ll build a full balance, and the article inverter automation based on Solcast has a practical example for a hybrid system.
Example: EV
An electric car needs not just a certain amount of energy, but also a minimum power sustained for long enough. A daily forecast of 20 kWh might consist of many short peaks and not deliver stable charging. For EV charging, use the hourly forecast, the planned departure time, and current export measurement.
Situations the model usually doesn’t know about
Even the best weather forecast doesn’t see everything happening at your system. Automations should recognise at least the most important exceptions.
- Snow or frost: the model predicts sun, but the modules stay covered.
- A string or MPPT failure: the weather is good, but half the system isn’t working.
- Export limiting: the inverter reduces production, so “actual production” doesn’t reflect the weather’s potential.
- Clipping: predicted power exceeds the inverter’s capability, and the real peak gets cut off.
- High module temperature: a sunny, hot day can give less energy than a cool day with similar sunlight.
- Dirt, dust and leaves: cause a slow, systematic decline the model doesn’t know about.
- A change to the system’s configuration: adding panels needs updating every model and every summing sensor.
- Service work or the inverter being switched off: you can’t automatically conclude the forecast is wrong based on this.
A good safeguard is a sensor that detects “high forecast, production hasn’t moved.” It can trigger a notification, but shouldn’t immediately diagnose a fault. The cause might be dense local fog, or snow.
trigger:
– platform: time
at: “10:30:00”
condition:
– condition: numeric_state
entity_id: sensor.prognoza_pv_dzisiaj
above: 12
– condition: numeric_state
entity_id: sensor.produkcja_pv_moc
below: 150
– condition: numeric_state
entity_id: sensor.produkcja_pv_dzisiaj
below: 0.3
action:
– service: notify.mobile_app_twoj_telefon
data:
title: “Check your solar system”
message: “The forecast is high, but the system is barely producing. Check for snow, the inverter, the MPPT and communication.””
A 30-day rollout plan
Days 1–2: prepare the parameters for each face, check panel power, azimuth, angle and location. Don’t configure any automations yet.
Days 3–4: launch Forecast.Solar as a quick reference point. Add the forecast to the Energy dashboard and check that the curve shows up at the right hours.
Days 5–7: launch a second source, e.g. Solcast or Open-Meteo Solar Forecast. Check API limits and how updates work.
Week 2: record the morning forecast and compare it against actual energy. Don’t adjust any coefficients yet after each single day.
Week 3: evaluate errors separately for sunny, overcast and variable days. Check for hourly shifts and persistent shading.
Week 4: pick a primary source, set a safety margin, and launch the first automation in notification-only mode. Only turn on automatic control after a few correct decisions.
Don’t consider the rollout done just because the chart looks nice. You should be able to answer: when was the data last refreshed, what’s the typical error, what margin are you using, what will the automation do if there’s no forecast, and how do you turn it off manually.
FAQ: PV forecasting in everyday use
Is one forecast enough to control a battery?
It might be enough for simple decisions, but it shouldn’t be the only source. Add SOC, household consumption, energy price, inverter availability, and fallback behaviour.
Is it worth refreshing the forecast every few minutes?
Usually not. Weather models don’t get new values every few minutes, and frequent calls can exhaust the limit. Reacting to actual clouds is the job of real power measurement, not constant forecast polling.
Can a forecast replace an energy meter?
No. A forecast is a plan, a meter is a measurement. The Energy dashboard and billing have to be based on real sensors.
Which source is most accurate in Poland?
There’s no single answer for every location. Solcast often does well, but local shading and microclimate can make a different source better. The most honest method is a parallel test on your own data.
Can I use two forecasts at once?
Yes. You can display both, compare their errors, or build a cautious value as the minimum of the two sources. Don’t complicate the automation, though, until you understand the differences between the entities.
Will the Energy dashboard use the forecast for control on its own?
No. The dashboard only visualises predicted production. Automations, Predbat or EMHASS are a separate decision layer.
What should I do after changing panels or adding capacity?
Update the power and geometry in every service, fix your summing sensors, and start calibration over. The old error coefficient doesn’t describe the new system.
The most common forecast problems
You’ve almost certainly mixed up the azimuth convention or the time zone. Check that Home Assistant’s configuration has the correct time zone and location, then verify azimuth per the specific integration’s documentation.
Check the power unit entered during configuration. A common mistake is typing 5000 instead of 5 when the integration expects kWp, not watts. The second common case is entering inverter power instead of panel power.
An exhausted query limit. Check the entity counting used calls and review its history to see what used them up. A common cause is manual calls during setup, or an automation firing more often than you intended, e.g. through a state trigger instead of a time trigger.
This is normal, and applies to every source. In winter, with a low sun, shading matters more, plus there’s a factor no forecast accounts for: snow on the panels. If you’re building automations on the forecast, it’s worth adding an extra condition checking whether actual morning production even started before you trust the forecast for the rest of the day.
This happens with bigger version changes, especially with Solcast, which went through a change of project maintainer. After every major integration update, check Developer Tools and confirm your automations and template sensors still point at entities that exist. An automation referencing a non-existent entity doesn’t complain loudly — it just stops working.
Summary and what’s next
After going through this article you have: a chosen and configured forecast source, the forecast visible on the Energy dashboard next to actual production, a sensor measuring forecast error for your specific roof, a chart showing at what hour the forecast goes off track, and a first automation that actually uses this knowledge.
Before moving on, give the error sensor two weeks. This isn’t a formality. An automation built on a forecast that overstates by 25 percent will systematically make bad decisions, and you’ll go looking for the cause in the automation’s logic instead of the input data. Note down the error you measured, since we’ll use it as a safety margin when building decision thresholds in later parts.
Part three gets to the heart of the series: whether to build your own automations, or reach for a ready-made optimiser like EMHASS. I’ll show an hourly-balance automation matched to Polish net-billing settlement, explain where conflicts come from between automations controlling the same inverter, and give a clear decision rule for when your own solution is enough, and when it’s worth investing time in something bigger.
Documentation and sources for further verification
- Home Assistant’s official Forecast.Solar integration
- The currently maintained Solcast PV Forecast integration
- Open-Meteo Solar Forecast for Home Assistant
- Home Assistant Energy dashboard documentation
Entity names, API limits and available options change with service and integration versions. Before publishing or rolling out automatic control, compare these examples against the documentation for the version installed on your system.
