[APP][Pro] Solar Forecasts (SolCast + Forecast.Solar)

Solcast is more reliable.

You have to set up flows for updates based on the amount of api calls you have.

If you have 10, you could do every 2 hours.
If you have 50, every 30min between sunrise and sunset

1 Like

After a while of testing I also went for Solcast. But still a question. When I look at the Solcast site I get a nice curve of the forecast. And when you download the CSV you get a neat weather forecast every half hour.

Is it possible to download this curve/data with Homey? And then follow this data? You don’t have to make that many API calls. And you can also determine from, and until what time you can expect production from the PV. This is useful when controlling battery systems. (when to charge) In addition, for some extra eye candy on the dashboard a graph of the forecast would be nice. For example like the Power by the hour app. But then every half hour.

Technically possible as the homey app stores this csv and updates the values based on the last available data.

But to make this graph, I have no idea how to make it.

Maybe after summer or in the winter I could have a look at it. But honestly makes no sense, as you can find the graph on the solcast website

So I just discovered that the data is updated every half hour if the on/off button is on. At first, I only get updates on an API call. So that works. And is it sufficient to make an API call at midnight, 6:00, 12:00, & 18:00. Which keeps the number of calls neatly below 10 with two PV installations.

I would like to see the graph on my Honey Dashboard so that I have everything clearly arranged in one place. That’s kind of the idea of the Homey. Maybe @Gruijter developer of the Power by the hour app can help you with the graph. :grin:

Another addition I would like to have is the start and end time of PV production. This helps in my calculation. Now I use sunrise and sunset. But that’s not the same for a PV, of course.

U can “graphify” any insights value with the Insights Graphs app
Load the graph to a virtual cam, and you can show it on your dashboard.

Nice, but insights are just the past, right? I would like to see the forecast ahead.

Good point.
Well, I was thinking like this : tomorrow’s solar forecast data should already be present in Homey, just like the electricity prices for tomorrow in PbtH are.
But such a bummer, those prices aren’t visible in insights :sweat_smile:.

But it’s very well possible to store forecast data in insights, like
09:00 > tomorrow’s 09:00 forecast value
10:00 > tomorrow’s 10:00 forecast value
and so on
Makes any sense?

1 Like

If the prediction data can be converted into insights in advance, is that perfectly fine with me. Even better. Insights graphs are standard in Homey. Something like this, but for the next 48H (if I look in the CSV)

Ah yes, I forgot about the progress made in Dashboard section :face_with_peeking_eye::laughing:

1 Like

You cannot use the insights, as the data is changing all time. Insights only store data once.

I could have a look a the code of pbth, but it will not be for the first weeks/months

2 Likes

To get the begin and stop time is also hard, because you need a treshold.
A half hour after sunrise Solcast will maybe already forecast 0.1kWh.
You maybe want the time when it is more then x kWh.
But this value is different for everyone.

Homey is (unlike Home Assistant), not programmed for future data. So devs use all kind of tricks (virtual cameras) to fix this.

1 Like

As I said, it’s eye candy. So no hurry, just a wish.

Okay, good to know. I’m used to Beckhoff as a mechanic. Our developer can make most of the nonsense we can think of. So as you said, come up with creative solutions. I have something to do. :grinning_face:

And also when making graphs there will be a lot of users demands:

  • combine graphs for east-west setups
  • limit production for clipping (oversized) installations
  • 


Challenging :slight_smile:

The only thing of interest is the data Solcast provides plotted as a graph. If Solcast provides two tables for two installations, that means two graphs. We do have to acknowledge Homey’s limitations, after all. I believe clipping for an oversized installation is already factored into the Solcast data because you specify the capacity of the inverter and panels.

I have a new request. In connection with charging a home battery, I would like to know how much energy is expected in a certain period of time. So that in the morning it can be determined whether there is enough energy in the afternoon to charge the battery.

I would like to have an AND card for this.

Prediction between [time] and [time] is greater than [value] kWh.

Also see my flow to see what I’m trying to organise.

iyou want this, you will need some logic. I can make all the hours available, but that means 24 sensors extra. Then you still

need to make some calculations. Or I can make the raw data (json) available and advanced users can make their own logic with honeyscript

You will no need the hourly data, but the cumulative data, such as the next hours sensors.

I don’t need 24 sensors. What I’d like is a card like the one below. But then for the expected kilowatt-hours between, say, 12:00 and 17:00. For those 5 hours, simply add the half-hourly values and you’re done. If the total is greater than the requested value, the card is true; if the value is less, the card is false. So, like the forecast for the next 3 hours, but between two set times, and as a AND card.

I have no idea on how to program that, so feel free to provide me with some code and I can implement that.

It’s just a flow argument of type “time".

But yes, then you have to filter the solar data by this time arguments.

1 Like