Salut,
j’ai créer ces Templates, pour la suppression du forecast demain ( 2024.4.0 ). Comme ca j’ai refais mes capteurs météo pour mes ESP et suis prêt pour la 2024.4.0.
template:
- trigger:
- platform: time_pattern
hours: /1
- platform: homeassistant
event: start
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.xxxxx
response_variable: daily
sensor:
- name: Weather Forecast Jour XXXX
unique_id: weather_forecast_jour_XXXXX
state: "{{ daily['weather.xxxxx'].forecast[0].condition }}"
attributes:
forecast: "{{ daily['weather.xxxxx'].forecast }}"
- trigger:
- platform: time_pattern
hours: /1
- platform: homeassistant
event: start
action:
- service: weather.get_forecasts
data:
type: hourly
target:
entity_id: weather.xxxxx
response_variable: hourly
sensor:
- name: Weather Forecast Heure XXXX
unique_id: weather_forecast_heure_XXXX
state: "{{ hourly['weather.xxxxx'].forecast[0].condition }}"
attributes:
forecast: "{{ hourly['weather.xxxxx'].forecast }}"
Par heures:
Par Jours: