Get extra forecast values
The Get extra forecast values action returns forecast values that the standard weather.get_forecasts action has no field for, such as the precipitation type, snow accumulation and depth, solar radiation, sunshine duration, sunrise and sunset times, and how certain each day’s forecast is.
Use it, for example, to plan solar charging around the expected solar radiation, to warn about snow on the roads before a morning commute, or to protect plants when even a quarter of the forecast scenarios bring frost.
Targets of the action
This action requires a target. The target is the object of the action. You can point the action at a single entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more], a device, an area, a floor, or a label, and Home Assistant will run the action on every matching Foreca weather entity behind that target.
-
Entity: one specific Foreca weather entity, such as
weather.home. - Device: every Foreca weather entity that belongs to a device.
- Area: every Foreca weather entity in a room or area.
- Floor: every Foreca weather entity on a floor.
- Label: every Foreca weather entity that shares a label.
You can also select different target types in one action. For example, you can add a specific entity and an area as targets in the same action to run the action on both of them at once.
To learn which entities Home Assistant includes for a device, area, floor, or label, and how it handles several entities, refer to Automation targets.
To leave out some of these entities, refer to Excluding targets. For example, you can leave out one Foreca weather entity in an area.
This action returns data that you can use in later steps of the same automation or script.
Using this action from the user interface
If you prefer building automations and scripts visually, Home Assistant walks you through this action step by step. You pick what to target, tweak a few options, and save. No YAML knowledge required.
To get the extra forecast values from an automation or a script:
- Go to Settings > Automations & scenes.
- Open an existing automation or script, or select Create automation > Create new automation.
- If you’re setting up a new automation, add a trigger in the When section. Scripts don’t need a trigger. They run when something else calls them.
- In the Then do section, select Add action.
- Select what data you want to read. Under By target (see Targets), pick the Foreca weather entity you want to read. You can also select an area, a device, or a label.
- From the actions shown for that target, select Get extra forecast values.
- Select the Forecast type to retrieve.
- In the Response variable field, enter a name to store the data in, such as
extra_forecast. - Select Save.
Options in the UI
Using this action in YAML
If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required. For how an automation or a script is built in YAML, refer to Automations in YAML and Scripts.
In YAML, refer to this action as foreca.get_forecasts_extra. Because this action returns data, use response_variable to capture the result. A basic example looks like this:
action: foreca.get_forecasts_extra
target:
entity_id: weather.home
data:
type: daily
response_variable: extra_forecast
Options in YAML
Response data
This action always returns data, so the response variable is required. If you leave it out, the action fails when it runs. Use the response variable to store the data for later steps of the same automation or script. For details, refer to Action response data.
The response is a mapping of the targeted weather entities, each containing a forecast field. The forecast field is a list with one entry per hour or day, matching the entries of weather.get_forecasts. Values are in the weather entity’s units. A value that the forecast doesn’t include is null, so check for it before using the value in a calculation or a comparison.
Each hourly entry includes:
-
datetime: the time the values are for. -
precipitation_type:rain,mixed, orsnow. -
snow_accumulation: the thickness of snow falling during the hour that ends atdatetime, in the precipitation unit. -
snow_depth: the snow depth on the ground, in the precipitation unit. -
solar_radiation: the ground-level solar radiation, in W/m². -
thunderstorm_probability: the probability of thunder, in percent. -
visibility: the visibility, in the visibility unit.
Each daily entry includes:
-
datetime: the start of the day in your Home Assistant time zone. -
apparent_templow: the minimum apparent temperature. -
max_humidityandmin_humidity: the highest and lowest relative humidity, in percent. -
min_dew_point: the lowest dew point. -
min_visibility: the lowest visibility. -
snow_accumulation: the thickness of snow falling during the day, in the precipitation unit. -
snow_depth: the snow depth on the ground, in the precipitation unit. -
sunshine_duration: the hours of sunshine. -
solar_radiation_sum: the solar energy reaching the ground over the day, in Wh/m². -
sunriseandsunset: the times of sunrise and sunset, in UTC. -
confidence: how confident Foreca is in the forecast:good,normal, orlow. -
temperature_ensembleandtemplow_ensemble: the spread of the maximum and minimum temperature across the scenarios of Foreca’s ensemble forecast. The keysp000,p025,p050,p075, andp100are the lowest value, the lower quartile, the median, the upper quartile, and the highest value. -
precipitation_ensemble: the spread of the day’s precipitation across the scenarios, in the precipitation unit. The keysp010top090are the 10th, 25th, 50th, 75th, and 90th percentiles.
For a daily forecast, the response looks similar to this:
weather.home:
forecast:
- datetime: "2026-11-06T00:00:00+02:00"
apparent_templow: -4.34
max_humidity: 99
min_humidity: 58
min_dew_point: -0.99
min_visibility: 10.0
snow_accumulation: 0.0
snow_depth: 0.0
sunshine_duration: 5.35
solar_radiation_sum: 921
sunrise: "2026-11-06T05:54:46+00:00"
sunset: "2026-11-06T14:11:42+00:00"
confidence: good
temperature_ensemble:
p000: 3.69
p025: 4.02
p050: 4.02
p075: 4.02
p100: 4.36
templow_ensemble:
p000: -1.28
p025: -0.94
p050: -0.61
p075: -0.44
p100: 0.38
precipitation_ensemble:
p010: 0
p025: 0
p050: 0
p075: 0
p090: 0
Good to know
- The action reads the forecast the integration has already retrieved, so it uses no extra requests.
- Snow accumulation and depth are the thickness of the snow, not its water equivalent.
Try it yourself
Ready to test this? Open Settings > Tools > Actions, search for this action, fill in the fields, and select Perform action. You see what happens on your actual entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] without writing a line of YAML.
Still stuck?
To test the action on its own, run it in the automation editor with Run action, and check the message that it shows. To see what the action did when the automation ran, open the trace of that run. For details, refer to Testing automations. For common problems and their solutions, refer to Troubleshooting automations.
If that doesn’t help, the Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the action you’re calling and what you expected to happen, or share on our subreddit /r/homeassistant.
AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.