I tried adding this template through the UI, but that doesn’t seem possible, so I added it to configuration.yaml, but I’m not sure I know how to determine if it is working. It doesn’t show up under helpers or entities so I’m not sure where to see that it exists or is doing what it is supposed to do.
It needs to be added to configuration.yaml - as far as I know it’s not possible to add it through the UI. Once it’s added you may need to restart Home Assistant before the new entities will be created, then you should see them in your list of entities. Here’s how I’m doing it in my configuration.yaml:
template:
- trigger:
- platform: state
entity_id: weather.home
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.home
response_variable: daily
sensor:
- name: "Weather Forecast Min Temp Today"
unique_id: "5bb863b7-5225-464f-ba27-534c4ab3a73c"
state: >-
{{ daily['weather.home'].forecast[0].templow }}
- name: "Weather Forecast Precipitation Probability Today"
unique_id: "7efa2450-7215-4d60-bf8e-0a825599f023"
state: >-
{{ daily['weather.home'].forecast[0].precipitation_probability }}
- name: "Weather Forecast Precipitation Quantity Today"
unique_id: "e0b5c4cf-0227-4214-b12f-69e48dc0e08a"
state: >-
{{ daily['weather.home'].forecast[0].precipitation }}