Bonjour,
Il faut faire le template du lien qui t’a donné pour récupérer les forecasts.
Pour les forecasts:
template:
- trigger:
- platform: state
entity_id: weather.xxxx #ton entité météo france.
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.xxxx
response_variable: daily
sensor:
- name: Weather Forecast Jour xxxx
unique_id: weather_forecast_jour_xxxx
state: "{{ daily['weather.xxxx'].forecast[0].condition }}"
attributes:
forecast: "{{ daily['weather.xxxx'].forecast }}"
availability: "{{ states('weather.xxxx') not in ['unknown', 'unavailable', 'none'] }}"
Puis des templates sensor pour les j+1 j+2 j+3 temp mon et max.
j+1
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[1].temperature | float(0) }}
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[1].templow | float(0) }}
j+2
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[2].temperature | float(0) }}
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[2].templow | float(0) }}
j+3
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[3].temperature | float(0) }}
{{ state_attr('sensor.weather_forecast_jour_xxxx','forecast')[3].templow | float(0) }}