# \[Météo France\] Prévisions par jour et par heure

**URL:** <https://forum.hacf.fr/t/meteo-france-previsions-par-jour-et-par-heure/33172>\
**Category:** Entraide Home Assistant\
**Tags:** meteo-france\
**Created:** [Décembre 23, 2023, 5:57 UTC](https://forum.hacf.fr/t/meteo-france-previsions-par-jour-et-par-heure/33172 "2023-12-23T17:57:05Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Avril 4, 2024, 6:09 UTC](https://forum.hacf.fr/t/meteo-france-previsions-par-jour-et-par-heure/33172/38 "2024-04-04T18:09:08Z")

</div>

Salut,  
l'attribut `Forecast` a été supprimer sur le core 2024.4.0.

Faut se faire un template pour créer un sensor avec l'attribut forecast.

exemple:

```auto
template:
  - trigger:
      - platform: state
        entity_id: weather.xxxxx #entité météo france
    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 }}"

```

> [@2023.9 forecast meteo france, contournement pour les cartes](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/34):
>
> 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: Weath…

Tu utilisera le sensor template `sensor.weather_forecast_jour_XXXXX` a la place de ton entité weather `weather.xxxxxxxx`

PS:  
Fallait lire le breaking change du mois 😉

 ![image](https://forum.hacf.fr/uploads/default/original/3X/7/a/7adfdd004d9153000d75ac8053999b0d9097d219.png)

---

_[View the full topic](https://forum.hacf.fr/t/meteo-france-previsions-par-jour-et-par-heure/33172)._
