Hello, I’ve been attempting to get the forecast from pirate weather as a sensor so I can use it in some automations. I’ve watched videos, read the Home Assistant page, and tried yaml from several different posts in this forum. The issue I’m having is no matter what I try I end up with the sensor state being unknown. the current itteration of the yaml I’m using is based on the HA page on template sensors and looks like this:
- triggers:
- trigger: time_pattern
minutes: /55
actions:
- action: weather.get_forecasts
target:
entity_id: weather.pirateweather
data:
type: daily
response_variable: my_forecast
sensor:
- name: "Daily High"
unique_id: Daily High
state: >
{{ my_forecast.forecast[0].temperature }}
I’ve tried following some other videos to no avail. Any idea what I’m doing wrong here?

