not sure what im doing wrong here but this doesnt seem to be working, just would like to ask Assist what the weather forecast is for the rest of the week. what am i missing here?
conversation:
intents:
GetWeatherForecast:
- "What's the weather forecast for the next couple of days?"
- "Tell me the weather forecast for the next few days."
- "How will the weather be in the coming days?"
- "Give me the forecast for the next couple of days."
- "What should I expect from the weather in the next days?"
intent_script:
GetWeatherForecast:
action:
- action: weather.get_forecasts
target:
entity_id: weather.openweathermap
data:
type: daily
response_variable: result
- stop: ""
response_variable: result
speech:
text: >
{% set forecasts = action_response['weather.openweathermap'].forecast %}
{% if forecasts is defined and forecasts|length > 1 %}
The forecast for the next couple of days is:
{% for day in forecasts[:2] %}
On {{ (day.datetime | as_datetime).strftime('%A') }},
the temperature will be around {{ day.temperature }} degrees,
with {{ day.condition }} expected.
{% endfor %}
{% else %}
I'm sorry, I couldn't retrieve the forecast right now.
{% endif %}