# 2023.9 forecast meteo france, contournement pour les cartes

**URL:** <https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766>\
**Category:** Entraide Home Assistant\
**Tags:** meteo-weather, meteo-france\
**Created:** [Septembre 8, 2023, 6:23 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766 "2023-09-08T06:23:37Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [Mars 30, 2024, 5:30 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/23 "2024-03-30T17:30:57Z")

</div>

> [@Doubledom](#):
>
> With this change, the `forecast` attribute of the weather entity is deprecated, and will be removed in Home Assistant Core 2024.3.

Salut,  
on est en core 2024.3.3 et:

 ![image](https://forum.hacf.fr/uploads/default/original/3X/f/0/f00efb75b19dee758c6bf65e09f6db3d543ff4e3.png)

C'est quand qu'il vont supprimer forecast sur l'intégration météo france ?

---

<div class="post-metadata">

**Author:** ![vingerha](https://forum.hacf.fr/user_avatar/forum.hacf.fr/vingerha/32/30749_2.png) [@vingerha](https://forum.hacf.fr/u/vingerha)\
**Post date:** [Mars 30, 2024, 5:44 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/24 "2024-03-30T17:44:01Z")

</div>

Question intéressant et je n’ai pas de réponse. Je me débrouille avec des sensors à côtés sans aucun erreur donc je ne bouge pas non plus 🙂

---

<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:** [Mars 30, 2024, 5:51 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/25 "2024-03-30T17:51:51Z")

</div>

Je sais pas si ca va migrer automatiquement ou faudrait que je supprimer mes entités météo france et les recréer. Je vais patienter, que j’utilise les données pour des ESP.

---

<div class="post-metadata">

**Author:** ![vingerha](https://forum.hacf.fr/user_avatar/forum.hacf.fr/vingerha/32/30749_2.png) [@vingerha](https://forum.hacf.fr/u/vingerha)\
**Post date:** [Mars 30, 2024, 5:58 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/26 "2024-03-30T17:58:28Z")

</div>

> [@WarC0zes](#):
>
> si ca va migrer automatiquement

Sans intervention de la part des intégration / carte MF... normalement non. Apres plusieurs mois j'ai revu la carte et il n'y a pas d'option pour selectionner horaire/journaliere. Pas trops de temps (voir; intérêt) pour l'attaquer moi-même....

---

<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:** [Mars 31, 2024, 3:37 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/27 "2024-03-31T03:37:15Z")

</div>

Salut,  
C'est pour la 2024.4.0. Va falloir que je reconfigure mes ESP 😒

> <https://github.com/home-assistant/core/commit/65230908c6bd7b9f2dac6e8de41b7bd27d28d1be>
>
> \* Remove deprecated forecast attribute from WeatherEntity
> 
> \* Fix some
> 
> \* Ruf…f
> 
> \* ipma
> 
> \* buienradar
> 
> \* some more
> 
> \* Some more
> 
> \* More and more
> 
> \* strings
> 
> \* attr\_forecast
> 
> \* Fix nws
> 
> \* Fix
> 
> \* remove from coverage
> 
> \* Remove recorder test
> 
> \* Review comments

---

<div class="post-metadata">

**Author:** ![Doubledom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/doubledom/32/9606_2.png) [@Doubledom](https://forum.hacf.fr/u/Doubledom)\
**Post date:** [Mars 31, 2024, 9:04 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/28 "2024-03-31T09:04:12Z")

</div>

Slt  
En Core 2024.4.0b3 effectivement plus le "forecast attribute" !

 ![image](https://forum.hacf.fr/uploads/default/original/3X/5/5/55c661663275dbf43622bc24f15ed064a43e2ca8.png)  
mais les entités sont présentes pour les prévisions ?  
 ![image](https://forum.hacf.fr/uploads/default/original/3X/8/1/81cf8ab2dc4caa0b5a51a9f6ab0f98ef89bc6efd.png)

---

<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:** [Mars 31, 2024, 9:12 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/29 "2024-03-31T09:12:59Z")

</div>

Voila, c’est fini 😪  
Va falloir faire un template pour les heures et pour les jours … pfff  
J’ai du boulot pour mes ESP.

---

<div class="post-metadata">

**Author:** ![Doubledom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/doubledom/32/9606_2.png) [@Doubledom](https://forum.hacf.fr/u/Doubledom)\
**Post date:** [Mars 31, 2024, 9:15 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/30 "2024-03-31T09:15:42Z")

</div>

Fonctionne encore cette partie là !

 ![image](https://forum.hacf.fr/uploads/default/original/3X/b/e/be517d05e9f6b941184e90ad2542573d7cda68b3.png)

 ![image](https://forum.hacf.fr/uploads/default/original/3X/0/f/0f0e842b90d2ed828b4d8f3971bb2e5362cc71a9.png)

---

<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:** [Mars 31, 2024, 9:16 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/31 "2024-03-31T09:16:22Z")

</div>

T’es entités météo france avait le forecast et après la mise a jour, ca a supprimé le forecast automatiquement ?

---

<div class="post-metadata">

**Author:** ![Doubledom](https://forum.hacf.fr/user_avatar/forum.hacf.fr/doubledom/32/9606_2.png) [@Doubledom](https://forum.hacf.fr/u/Doubledom)\
**Post date:** [Mars 31, 2024, 9:17 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/32 "2024-03-31T09:17:18Z")

</div>

Oui je les vois plus sur la version dev en 2024.4.0.03

---

<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:** [Mars 31, 2024, 9:18 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/33 "2024-03-31T09:18:43Z")

</div>

Ok, merci de ces précisions. J’ai du boulot pour mercredi 😅

---

<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 2, 2024, 6:11 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/34 "2024-04-02T06:11:56Z")

</div>

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.

```auto
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:

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

Par Jours:

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

---

<div class="post-metadata">

**Author:** ![herveaurel](https://forum.hacf.fr/user_avatar/forum.hacf.fr/herveaurel/32/134147_2.png) [@herveaurel](https://forum.hacf.fr/u/herveaurel)\
**Post date:** [Avril 7, 2024, 9:36 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/36 "2024-04-07T09:36:06Z")

</div>

> [@WarC0zes](#):
>
> ```auto
> - trigger:
> - platform: time_pattern
> hours: /1
> 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 }}"
> 
> ```

Bonjour à toi !  
J'ai créé ces template, mais pour le moment ca reste à `unknown`...  
J'ai restart HA, refresh les template...  
Faut il attendre ou compléter avec d'autres template pour que cela fonctionne ?

 ![image](https://forum.hacf.fr/uploads/default/original/3X/0/e/0ecde8c01a3b0115bd6ab64a5033d55b92aa3701.png)

 ![image](https://forum.hacf.fr/uploads/default/original/3X/9/0/90e385623b351ad69d5fa661dd73f1c5c6584b12.png)

```auto
##############################
#. #
# TRIGGER #
# #
##############################

###### WEATHER
  - trigger:
      - platform: time_pattern
        hours: /1
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: weather.maison
        response_variable: daily
    sensor:
      - name: Weather Forecast Jour Maison
        unique_id: weather_forecast_jour_maison
        state: "{{ daily['weather.maison'].forecast[0].condition }}"
        attributes:
          forecast: "{{ daily['weather.maison'].forecast }}"

  - trigger:
      - platform: time_pattern
        hours: /1
    action:
      - service: weather.get_forecasts
        data:
          type: hourly
        target:
          entity_id: weather.maison
        response_variable: hourly
    sensor:
      - name: Weather Forecast Heure Maison
        unique_id: weather_forecast_heure_maison
        state: "{{ hourly['weather.maison'].forecast[0].condition }}"
        attributes:
          forecast: "{{ hourly['weather.maison'].forecast }}"

```

---

<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 7, 2024, 9:40 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/37 "2024-04-07T09:40:17Z")

</div>

> [@WarC0zes](#):
>
> ```auto
> - trigger:
> - platform: time_pattern
> hours: /1
> 
> ```

Salut,  
il y a un trigger toutes les heures ( normalement a 12h00 ca va s'actualiser) . Tu peut tenter d'utiliser le service homeassistant.update\_entity sur ton entité pour forcer une maj.

Peu être rajouter ce trigger en plus.

```auto
  - trigger:
      - platform: time_pattern
        hours: /1
      - platform: homeassistant
        event: start

```

---

<div class="post-metadata">

**Author:** ![herveaurel](https://forum.hacf.fr/user_avatar/forum.hacf.fr/herveaurel/32/134147_2.png) [@herveaurel](https://forum.hacf.fr/u/herveaurel)\
**Post date:** [Avril 7, 2024, 9:42 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/38 "2024-04-07T09:42:39Z")

</div>

> [@WarC0zes](#):
>
> homeassistant.update\_entity

Oui j'ai bien vu le trigger, mais la commande `homeassistant.update_entity` ne donne rien, ni le restart ce qui me semble louche.

---

<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 7, 2024, 9:44 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/39 "2024-04-07T09:44:45Z")

</div>

> [@WarC0zes](#):
>
> `template:`

c'est quoi ta facon de découper ta config ?

chez moi, c'est configurer avec packages:

```auto
homeassistant:
  packages: !include_dir_named packages

```

Dans /config/packages, j'ai un fichier template.yaml:

````auto
template:
  - trigger:
      - platform: time_pattern
        hours: /1
    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 }}"```
````

---

<div class="post-metadata">

**Author:** ![herveaurel](https://forum.hacf.fr/user_avatar/forum.hacf.fr/herveaurel/32/134147_2.png) [@herveaurel](https://forum.hacf.fr/u/herveaurel)\
**Post date:** [Avril 7, 2024, 9:47 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/40 "2024-04-07T09:47:14Z")

</div>

> [@WarC0zes](#):
>
> ```auto
> - platform: homeassistant
> event: start
> 
> ```

J'ai un fichier template.yaml qui est scindé depuis configuration.yaml avec : template: !include template.yaml

Dans lequel il y a :

- binary\_sensor
- sensor  
et maintenant : - trigger

---

<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 7, 2024, 9:57 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/41 "2024-04-07T09:57:57Z")

</div>

Test voir si ta une réponse en appelant le service dans outils de dev.

 ![image](https://forum.hacf.fr/uploads/default/original/3X/f/6/f610a79ca18cba37f3bb97c8a2b18902fa6abefb.png)

---

<div class="post-metadata">

**Author:** ![herveaurel](https://forum.hacf.fr/user_avatar/forum.hacf.fr/herveaurel/32/134147_2.png) [@herveaurel](https://forum.hacf.fr/u/herveaurel)\
**Post date:** [Avril 7, 2024, 9:59 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/42 "2024-04-07T09:59:20Z")

</div>

Ca vient de remonter, me reste plus qu’a adapté les templates pour avoir ce que j’ai besoin, merci !

---

<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 7, 2024, 10:00 UTC](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766/43 "2024-04-07T10:00:57Z")

</div>

Oui, c’est 12h00. Le trigger c’est lancer 😉

[Page précédente](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766.md?page=1)

[Page suivante](https://forum.hacf.fr/t/2023-9-forecast-meteo-france-contournement-pour-les-cartes/27766.md?page=3)
