Can't get forecast.solar forecast to line up with my production

I added forecast.solar a year ago, but I can’t think that much has changed.

Adding forecast.solar as an integration from the main settings page brings up a UI page asking for name, latitude, longitude (all pre-filled from HA settings), declination, azimuth, and total peak power.

Once added, each integration can be adjusted later using the ‘configure’ option within the integration listing, which allows changes to some settings, and adds options for damping factor and inverter size.

I have two integrations already, and adding another does bring up the usual page, so I think you need to double check the difference between adding a new integration (on top of any you have already) and modifying an existing integration. If necessary - delete all integrations and start from scratch, add one, then add the second using the same route.

The inverter size - this usually relates to those of us with a standard inverter. Where the panel size is such that the panel peak summer generation is greater than the physical output of the inverter, it could mean that the forecast is more than the inverter can deliver. I have 4.4 kW peak system, with an inverter of 5 kW. With split panels east and west, my maximum peak is midday at about 3.6 kW, thus I have no issue with capping. For someone with 6kW peak, and an inverter of 4kW capacity, the inverter would be set to 4kW to stop the forecast giving higher figures in the middle of summer.

With your micro inverter, if your panel has a peak power of 405 watts, and the inverter has a peak output power of 366 watts, then your 9 panel system could be said to have a peak of 3645 W and the inverter should be limited to 3294 W. However, this is really just academic and you can either leave the inverter figure at 0 or set it higher (4000 W) and just see what happens in the summer. If you see the forecast going up to 3650+ and the actual stopping at 3300, then you will know that your micro inverters are effectively limiting output, and then you can decide if you want to limit the forecast to match.
Hope that makes sense!

2 Likes

@Biscuit After reading your explanation and example about “Inverter size”, I think the value of 405 is totally wrong.

From the company installer, I got this data:

Total panel : 14
Each panel : 405 watt
Total watt-peak: 5670 watt
Estimated production per year: 4854 watt

I guess, I should use 4854 as the inverter size for all 14 panels. So, I changed the configuration like below, using just one integration for all 14 panels. Let’s see what happen :slight_smile:

image

You have 14 panels. Each produces 405 watts peak, so your 9 panel plane will be 3645 watts peak, and your 5 panel plane will be 2025 watts peak. You can increase or reduce this a little either way to adjust the forecast. I have found my east plane generates more because of beneficial reflection from a house wall, so I bumped that up a bit.

You can either ignore the inverter size (leave at 0) or set to something over your peak and forget it to start with.

One plane will not give you accurate results, however you can try it out and just see what happens. It may be near enough for your purposes.

This is, after all, a forecast and it took me many months of tinkering to get my forecast to line up with actual production. If you eventually want to do anything important with the forecast (or want the approval kama) then accuracy may become more important.

My solar forecast (worked from the API calls) top right - yesterday was a cloudy day, today very sunny. My summary (summation of total energy under the forecast curve) for today was 5.5 kWh, which I know is always optimistic. Production today, 4.7 kWh, so not bad. Tomorrow looks like a good day too.

Good luck with your solar journey!

FWIW, I have decided to use both Forecast.Solar and Solcast predictions and take averages, since they both can vary quite significantly from each other and my “actual” on any given day. More tuning I’m sure may improve this but for example today is a very clear day so ought to be an “ideal” near perfect prediction to actual, but still have a 10kWH difference between the two different models. I think my actual will end up being somewhere between the two, as it was yesterday.

Solcast gives you a 10%-90% probability range which is helpful to see how much uncertainty there is in the model - and its still a lot even today. Although it was created with southern hemisphere in mind I’ve not noticed it be a lot more wrong than Forecast.Solar.

As the prediction models get updated continuously, I think what level of “accuracy” to expect/rely on also depends how you plan to use the prediction and when. In my case I want to estimate a target overnight charge from grid, for battery storage. So I want to compare today’s “actual” with what was predicted for today, as at [some cut-off time] yesterday, not the current “today” prediction both integrations provide. Then I could explore whether tuning any parameters improves that day ahead forecast (on “ideal” clear days when random cloud variation ought to be minimal). But for now, given the large delta between the two and my actuals, I don’t rely on anything more than a fairly arbitrary “low, medium, high” interpretation of the figures for setting that charge target.

@Biscuit would you mind sharing how you built your graph “Solar Forecast: yesterday - today- tomorrow”? I’ve been playing with different ways of drawing this using the apexcharts card and day offsets, and averages and so on, but not managed to produce one that looks as neat as yours…

Happy to share but it is all done in Node-RED as I effectively capture the forecast from API calls every hour and build a table spanning three days (72 hours). I am doing this so that I can correct the inherent problem with the 1 hour time-shift, and record actual generation over a matching 60 minute period. I also capture the forecast to history, as it does tend to change post-now and that affects the day-energy figures the integration provides.

This table is then used to plot graphs, and also to perform power-analysis. It all works but I have not developed it further other than being able to identify, for example, the estimated time period for when solar power will be 1.2 kW for the day.

This is (a picture of ) the NR flow - does quite a bit but all that is really needed is the API capture, actual solar capture, table build, and data calculation for the graph display. I am sure I have already shared the key parts of the flow (to get the graph working) but just can’t find my old post. If (iff) you really would like a copy then I will have to extract a redacted version and post again. Looking at this I see that it dates from last September and is full of function nodes which I now try to avoid using!

Let me know if you would like either the NR flow or just the Apex chart settings.

1 Like

OK found it!

https://community.home-assistant.io/t/access-data-from-forecast-solar/435964/10?u=biscuit

You probably need to read down the postings to get the ‘how to set up the actual sensor’ and ‘how to set apex charts’.

This all dates back to last August but hopefully it all hangs together and still works.

2 Likes

Thanks I’ll take a look!

For Enphase IQ7A-72-2 Micro Inverters, the total inverter size will be 349 watts x number of panels.

For example, I have
22 x 370w panels = 8140w total panel output
22 x 349w microinverters = 7678w total inverter size

2 Likes

Could you share the code of Solar Forecast card ?

My Solar Forecast runs in Node-RED, to call the API directly and manipulate the data.

I have shared this setup on another thread - see above/below.

It does require Node-RED, an extra utility sensor to get the actual solar figures, and if you read down the quoted discussion the Apex Chart settings are included as well.

This will not be accurate if there are two different planes. Using a inverter size that is equal to the sum of all micro inverters will assume that the inverter can handle the total production of each plane up to the inverter size. So if (12) 370W panels are in 1 plane, it would allow for the full 4440W production in that plane as long as the other plane is not forecast to produce over 3238 during that time.

With micro inverters, the more accurate way to estimate your production may be to calculate panel wattage as the wattage of the micro inverter rather than the wattage of the panel. So rather than having a total panel output of 8140, the total panel output would be 7678 in your example. Then you would leave the inverter size as blank/empty.

This will still not be entirely accurate since sun angle impacts production. The only real way to get completely “accurate” forecast figures would be to enter each panel as its own array for Forecast.Solar (which is not inaccurate, since this is literally what micro inverters do). However, if you have more than 12 panels, you will run into the API call limits. I assume a paid tier gives you more API calls.

FWIW, other non-micro inverter based arrays have their own problems if there are multiple planes. I have two planes (only facing 180 degrees and the other facing 270 degrees) with one inverter. Since solar.forcast doesn’t support multiple planes/arrays per inverter, I cannot limit my overall production based on the inverter size. Luckily for me, I oversized my inverter for future growth and battery, so it can handle 100% production from both planes at the same time (even though that would never happen), so I don’t have top worry about how the inverter size would impact my production.

Hi @nkrick,

Yeah, I wasnt going down that rabbit hole, I was simply answering this question.

The maximum continuous output power (of each micro inverter) is 349 VA = 349 W.

When using the solcast service, you have the ability to configure multiple planes/rooftops.

You configure the details of each rooftop on the solcast site.

Example image from https://github.com/oziee/ha-solcast-solar#configuration
image

Solcast does this for you.

I also had some difficulty setting this up, the forcast was not in line with the production.


In my case I had to set up the Azimuth properly. I stumbled upon Find your Azimuth (doc.forcast.solar) and the Suncalc.org worked for me.

1 Like

This is very good info, thank you! I used suncalc to calculate it but mine is still a bit off, though.

Have you correctly set all other variables?
It looks like the forecast is following the production, but the figures are of.

This is my graph:


I think it’s in de “Total Watt Peak Power”, when I change the “Total Watt Peak Power of your solar modules” from my 4820 to 2000 the graph will look like this:

The “Total Watt Peak Power” has been provided the company that installed my panels, it’s based on all kinds of factors like the azimuth, angle of the panels, shading factors (tree, buildings, other solarpanels, etc. etc.), maximum power of the panels and probably some more.

1 Like

If you don’t know the “Total Watt Peak Power” because that figure hasn’t been provided or you’ve installed the panels yourself, you could always try to get retrieve the value from HA; it’s the highest wattage the entity has.

1 Like

Thanks for that!
I believe I got it right but it’s weird:
I have 1 on South and 1 on East, 5 400W panels and 5 microinverters (which I believe have a maximum peak power of 295W each) on South then 6 400W panels and 6 microinverters on East.
The calculation I did (which I hope it’s correct) was multiplying number of inverters per max wattage of each (which gives me 1.475 at South and 1.770 East) for max AC and 5 x 400W(solar panels - 2kW total) South and 6 x 400W (2.4kW) East for DC.
GPS coords are correct and using SunCalc, I believe the azimuth is also correct.
Unless my calculations here are wrong (which is also possible!).

I assume you’ve entered 4400 in the “Total Watt peak power…” field and 3245 in the "Inverter size (Watt) field. I would enter 3245 in both fields and my reasoning is:

  • the “Total Watt peak power…” of your panels can not be higher than your “Inverter size (Watt)”,
  • because in your case there is a “big” difference between, what the panels can generate and the inverter can invert, I don’t think you have to take into account any limiting factors.

In my case I’ve got 14 405W panels with 7 two channel inverters capable of 730W (max per inverter). I theory my panels should be capable of providing 5670W. My supplier has determined that 4820 is a more realistic number, taking all variables into account because I don’t live in a labaratory with the most optimal conditions. So I’ve entered 4820 in the “Total Watt peak power…” field and 5110 in the "Inverter size (Watt) field.

1 Like