Home Assistant(https://www.home-assistant.io/) Component
This custom component integrates the Solcast API into Home Assistant.
Modified from the great works of
- dannerph/homeassistant-solcast
- cjtapper/solcast-py
- home-assistant-libs/forecast_solar
Add a new HA Integration selecting 'Solcast PV Solar'.
If the integration is not listed in HACS, click on the three dots at the top right and select custom repositories. Enter https://github.com/oziee/ha-solcast-solar
and pick Integration as category.
Once downloaded, you can add the integration using Configuration | Devices & Services | Add Integration.
Setup the Recorder to record data.. something like
recorder:
purge_keep_days: 31
include:
entity_globs:
- sensor.solcast*
ONLY SET THE OFFSET to anything other than zero ONLY if your energy graph does not display properly. Leave it as zero for default and then only if there is a problem change it. see issue 21
If you have more than one Solcast rooftop site, repeat the above sets for each site (2 sites).. to edit them.. click the item to edit then the configure button will appear
Go to the HA>Configuration>Energy settings page Click the edit for the solar production item you have created.
Click the Forecast option button and select all the sites you have.. Click SAVE.. HA will do all the rest for you
Sign up for an API key (https://solcast.com/)
Solcast may take up to 24hrs to apply the 50 API counter from the default 10.. give it time to work:)
Create a Rooftop entity on the Solcast website. This will generate a rooftop_id (resource id) Copy the id and api for this integration to work.