Homey Community Forum

[APP] Solcast - Solar Forecasts

Solcast - Solar Forecasts

Homey app using the Solcast API to get solar forecasts customized for your location and installation

Links
You can download the app here: Solcast

Purpose

The app will download every half hour the latest solar forecast with the current forecasted value, and the next 1, 2 and 3 hours.
Every night at Midnight, it will download the accumulated forecasts for Today and Tomorrow.

Every 5 minutes you can upload your current solar production to fine-tune the prediction model of your solcast forecast. (see below instructions to setup the flows)

Usage

You could use the app to switch on electric appliances or charge a car or battery based on the forecast solar power, to maximize self-consumption.
You can compare the daily forecast with your actual production.

Setup

Sign up your solar installation at Solcast Toolkit
You have to setup the ‘Free’ Home PV owner account (hobbyist) which gives you (currently) 50 API calls a day.
Fill in all the exact details of your solar installation.

Setup the Solcast app

You have to provide your API-key and Resource ID to get the app working.
API Key can be found under - Your name - Your API key
Resource ID can be found if you click on your location on the main screen.

Upload functionality

The app can upload your PV output every 5 minutes to improve the model.
The upload needs to have your PV output in kW!, most of the solar apps use watt, so you have to divide the output by 1000.
I also use the app Insight Trends to make an average of the output.

See in the 2nd comment, my example flows.

You can check if the upload was successful by going to:
Solcast<your_resource_ID>/measurements

Support topic

For support please use the official support topic on the forum.

Donations

If you appreciate the app: Buy me a Beer]
@athom a Homey Pro is always appreciated :slight_smile:

API

The Solcast api has a max of 50 calls a day, and the data is only available every 30 minutes.
The upload minimum is 5 minutes.

To Do

  • Different #API calls
  • Setup flows

Changelog

v1.0.0

  • Initial release
5 Likes

Flows for upload

  1. Calculate trend

  1. Set variable and divide by 1000

  1. Upload every 5 minutes during the day

Cool and cool app. BTW you can replace the “after sunrise” and “before sunset” conditions with “it is day” (het is overdag).

Done

1 Like

The app is now in the app store

Hi!

How do you use the information in the end, apart from uploading to SolCast and better their predictions? I’ve intrested in getting ideas on how to set charge levels of my ESS battery system depending on what predicted solar levels there is for next day. But when looking into the flows that I can enable it only seems to be forecast now is greated than or less than … The forecast now I assume is the next hour? Not the next day? Since I’m looking for ways to charge the ESS battery bank from grid during nighttime when the forecast says low sun probability for the next day.

Hi,

The app will get following data:
At midnight:

  • total forecasted production today
  • total forecasted production next day

Every half hour

  • solar power now (W)
  • cumulated solar power next hour
  • cumulated solar power next 2 hours
  • cumulated solar power next 3 hours

I use the app to charge my Solaredge battery at night (during off-peak hours) when not enough solar is forecasted.

You can use the half hour predictions to start for example a washing machine, dryer, … if you know that it will consume for example 2KW during 2 hours, you could match this with the Solcast forecast

The app has limited flows built-in, but by using logic, you can do everything.

Example flow to charge battery (dutch)
https://homey.app/f/ely3_G

Thanks found it

Works great :grinning:
Sadly Solcast recenlty discontinued tuning the prediction model with your own production values, for accurency validation it’s still working.

Is it possible to exclude the power valueu in the energy tab in the homey app?
Couting the prediction as usage, effect’s the total use in the energy app.

Ah I didn’t know that.
That’s a bummer.

I can change that it doesn’t show up at the energy tab. I will check this week.

I can also implement https://forecast.solar/

I will check if I need to make a new app or integrate it into the same app, as a different device.

1 Like

Okay thanks!

Perhaps forecast is a better option, because the Homey Solcast app uses more than 50 updates for me, at the end of the day the API requests are consumed and the homey device is unreachable.

The free forecasts option is less accurate, as the location and pv system is less accurate.
I use it on home assistant to compare.
But I will try to implement it in the future.

It is strange that your api calls are used.
The app only polls every half hour between sunrise and sunset + 1 time at midnight.
So it should be maximum 49 calls.

Where do you live and when are the api calls used?

I just checked and the pv tuning still works, they already promise for long time to stop it.

I live in The Netherlands, only the Solcast app is connected and using api calls.
Flow’s are like u suggested, only changed the condition for sending measurements.
Seems like I only have a few api calls short.

Maybe existing tuning will be kept and new users won’t get any more?
This is what I read yesterday:

For me it look’s like this:

Ah that looks different, mine is still tuning.
Can you check how many api calls are made every day?
I live in Belgium and I have now 35 calls.
Is your location set in Homey?

Sinds today 18:21 49 calls were made.
When I check the updates at insights, there is an update every 30 minutes sinds 06:20 this morning. Should be 24+1 calls from midnight.

Looks like the api calls are double? I changed my
api key to be sure. Let see what’s happening tomorrow.

Yes my location is set in Homey.

EDIT: Problem is solved after changing API Key.

Ok great!

Next version will also keep track of the API requests.
I am just waiting for Athom to fix the issues with fw 7.1.3, as the updated app doesn’t work properly due to their bugs…