Replies: 3 comments 13 replies
-
|
Meine Empfehlung: Steige auf OpenMeteo um. Hier gibt es keine Limits und es erlaubt die Vorhersage noch viel mehr feinzutunen zum Beispiel für Schattensituationen morgens oder abends. Zudem kein Rate Limit. Ich war zuvor auch bei SolCast und hatte zwei Accounts: Einen für EVCC und einen für HA. Mit OpenMeteo kann ich eine Konfiguration und mehr als nur 2 Arrays in beiden Systemen direkt konfigurieren. Deutlich einfacher als der Aufwand, den Du hier getrieben hast. Will jetzt nicht Deine Arbeit schlecht machen. Es ist toll, dass Du das geteilt hast. Aber ich denke es gibt für die meisten eine einfachere Alternative. |
Beta Was this translation helpful? Give feedback.
-
|
Man, exactly what I was going to look for right now! Great! TY! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
I suspect we are quite a few who combine EVCC, Home Assistant (HA) and forecast data from Solcast.
We occasionally run into the dreaded
429status code, a.k.a. rate limit of only being allowed 10 calls a day to Solcast.One could probably divvy it up so that HA and EVCC get 5 calls each daily, or one could even register a duplicate account at Solcast to bypass the limitation (probably in violation of their terms).
I figured it'd be more elegant to have one service gather the data, and then expose it to the other.
The https://github.com/BJReplay/ha-solcast-solar integration in HA offers a lot of features, so I figured this would be the best "master" of data.
There are some existing discussions on doing this with MQTT, but I wanted to do it with polling/http, and now that I got it working, I'd like to share the recipe here.
The goal format: EVCC expects forecast data in a certain form:
The data can stretch around 5 days or more into the future.
The Solcast integration offers no single sensor that exposes all that data.
So I (with some help from Gemini/Claude) wrote a python script that will gather the data from the relevant Solcast integration forecast sensors and keep them together in one:
Note that python scripts need to be enabled in HA
configuration.ymlfor this to work (probably requires a HA restart as well):After placing the script, execute it manually using HA Dev Tools:
Later on, it can be automatically updated using an automation:
In order to access the sensor via http, you'll need to generate a Long-lived access token for EVCC (HA menu -> Profile -> Security).
Time to test (using httpie) and jq to pick out the relevant parts of the JSON:
Replace
TOKENwith the long lived HA token value, andHA_HOSTwith the hostname or ip address of your instance.Expected response:
[ { "start": "2026-06-07T00:00:00+02:00", "end": "2026-06-07T00:30:00+02:00", "value": 0.0 }, { "start": "2026-06-07T00:30:00+02:00", "end": "2026-06-07T01:00:00+02:00", "value": 0.0 }, ...Now we tell EVCC where to get the data:
Configuration -> Tariffs & Forecasts -> Add forecast
And enter the equivalent to what we ran above:
And voila:
I hope this helps someone who comes along the same path as I did. Have fun!
PS: It would be cool if EVCC could integrate with the HA Solcast sensors directly, i.e. use the HA integration for auth and pull data from the relevant sensors. Just an idea.
Beta Was this translation helpful? Give feedback.
All reactions