I have been trying to get some forecast sensors from the new get_forecasts services, but I am somehow doing something wrong as my sensors just don’t show up in HA.
template:
- trigger:
- platform: time_pattern
hours: "/1"
- platform: homeassistant
event: start
action:
- service: weather.get_forecasts
target:
entity_id: weather.my_home
data:
type: daily
response_variable: daily
sensor:
- name: Open Meteo Today Forecast
unique_id: open_meteo_today_forecast
state: "{{ daily['weather.my_home'].forecast[0] }}"
- name: Open Meteo Today Min Temperature
unique_id: open_meteo_today_min_temperature
state: "{{ daily['weather.my_home'].forecast[0].templow }}"
unit_of_measurement: °C
device_class: temperature
- name: Open Meteo Today Max Temperature
unique_id: open_meteo_today_max_temperature
state: "{{ daily['weather.my_home'].forecast[0].temperature }}"
unit_of_measurement: °C
device_class: temperature