I tried a search, but from the answers I am seeing, I am not getting it to work still.
I set this up in the config file, restarted. But could not locat the sensor, plus I think I did it wrong as I dont see accuweather but it shows me ‘weather’
template:
- trigger:
- platform: state
entity_id: AccuWeather.forecast_local # this is my weather provider
action:
- service: AccuWeather.get_forecasts
data:
type: daily # change to hourly if you want hourly forecasts
target:
entity_id: AccuWeather.forecast_local
response_variable: daily
sensor:
- name: Local Weather Forecast Daily
unique_id: local_weather_forecast_daily
state: "{{ now() }}"
attributes:
forecast: "{{ daily['weather.forecast_local'].forecast }}"