Get minute forecast
Use this action to get a short-term forecast, also called a nowcast, for one of your Tomorrow.io weather 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]. It splits the near future into short intervals, so you can tell whether rain is about to start and when it is expected to stop.
This is more detailed than the hourly forecast from the weather.get_forecasts action. Use it when the timing matters, for example to send yourself a heads-up a few minutes before rain reaches your house.
The length of each interval is the Minutes between NowCast forecasts setting of the location: 1, 5, 15, 30, or 60 minutes. The action returns up to 30 intervals, so a 1-minute setting covers the next half hour and a 60-minute setting covers the next 30 hours. Tomorrow.io provides forecasts in intervals shorter than 60 minutes for up to 6 hours ahead, so the 15-minute and 30-minute settings return fewer intervals. To change the setting, reconfigure the location.
The action returns the data from the integration’s latest scheduled update, so it does not use any of your Tomorrow.io API requests and you can call it as often as you like. The data is only as fresh as that update, and intervals that have already ended are left out.
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 a minute forecast 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 Tomorrow.io weather entity you want the forecast for. You can also select an area, a device, or a label.
- From the actions shown for that target, select Tomorrow.io: Get minute forecast.
- In the Response variable field, enter a name to store the data in, such as
nowcast. - Select Save.
Options in the UI
This action has no options beyond the target.
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 tomorrowio.get_minute_forecast. Because it returns data, store the result in a response variable so you can use it in later steps:
action: tomorrowio.get_minute_forecast
target:
entity_id: weather.home_daily
response_variable: nowcast
This stores the nowcast for weather.home_daily in nowcast.
Options in YAML
This action has no options beyond the target.
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 Tomorrow.io weather entity behind that target.
-
Entity: one specific Tomorrow.io weather entity, such as
weather.home_daily. - Device: every Tomorrow.io weather entity that belongs to a device.
- Area: every Tomorrow.io weather entity in a room or area.
- Floor: every Tomorrow.io weather entity on a floor.
- Label: every Tomorrow.io 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 Tomorrow.io weather entity in an area.
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 has the same shape as the response of weather.get_forecasts. It is keyed by the entity ID of each targeted weather entity, and for every entity it contains a forecast list with one entry per interval, in chronological order. Each entry can have these fields:
-
datetime: when the interval starts. -
condition: the expected weather condition, such assunnyorrainy. -
precipitation: the expected amount of precipitation during the interval. -
precipitation_probability: how likely precipitation is, from 0 to 100. -
temperature: the expected temperature. -
dew_point: the expected dew point. -
humidity: the expected relative humidity, in percent. -
wind_bearing: the expected wind direction, in degrees. -
wind_speed: the expected wind speed.
Values use the units of the weather entity, the same as weather.get_forecasts. The precipitation value is not rounded, because the amounts in short intervals can be very small. A field is left out when Tomorrow.io doesn’t provide a value for it, and the list is empty when no nowcast data is available yet.
A shortened example response looks like this:
weather.home_daily:
forecast:
- datetime: "2026-11-12T17:55:00+00:00"
condition: rainy
precipitation: 0.1
precipitation_probability: 75
temperature: 8.2
wind_bearing: 315
wind_speed: 14.4
- datetime: "2026-11-12T18:00:00+00:00"
condition: cloudy
precipitation: 0
precipitation_probability: 10
temperature: 8.1
wind_bearing: 312
wind_speed: 13.7
Good to know
- Each entry covers one interval of the configured length, starting at its
datetime. - Precipitation amounts are per interval, not per hour. To get the total for a period, add up the amounts of its intervals.
- Changing the interval length reloads the integration, which fetches new data.
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.
More examples
Real scenarios where this action shows up in automations and scripts. Copy any example and adapt it to your setup. In the visual editor, select the UI options listed in the example or paste the YAML code.
You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the visual automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.
Automation: Get a heads-up before rain starts
Check the nowcast every 5 minutes, and send a notification when rain is expected to start within the next half hour. It stays quiet while it is already raining, so you only hear about it before it starts. Because the action doesn’t use any API requests, checking this often costs nothing.
- Trigger: Time pattern, every 5 minutes
-
Action: Tomorrow.io: Get minute forecast
-
Target: Home Daily (
weather.home_daily) -
Response variable:
nowcast
-
Target: Home Daily (
- Condition: Template, no rain is falling now and rain is expected within 30 minutes
-
Action: Send a notification message
-
Target: My Device (
notify.my_device)
-
Target: My Device (
YAML example for a heads-up before rain starts
alias: "Warn me before rain starts"
triggers:
- trigger: time_pattern
minutes: /5
actions:
- action: tomorrowio.get_minute_forecast
target:
entity_id: weather.home_daily
response_variable: nowcast
- variables:
intervals: "{{ nowcast['weather.home_daily']['forecast'] }}"
next_rain: >
{{ intervals | selectattr('precipitation', 'defined')
| selectattr('precipitation', '>', 0) | first | default(none) }}
- condition: template
value_template: >
{{ next_rain is not none
and 0 < as_timestamp(next_rain['datetime'])
- now().timestamp() < 1800 }}
- action: notify.send_message
target:
entity_id: notify.my_device
data:
message: >
Rain expected in about
{{ ((as_timestamp(next_rain['datetime'])
- now().timestamp()) / 60) | round | int }} minutes.
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.
Related actions
Explore related actions:
- Get weather forecasts: Retrieves the forecasts from one or more weather entities.