# Intégration EDF Tempo HS?

**URL:** <https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062>\
**Category:** Configuration\
**Tags:** bug\
**Created:** [Août 28, 2024, 8:24 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062 "2024-08-28T20:24:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Août 28, 2024, 8:24 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/1 "2024-08-28T20:24:26Z")

</div>

Bonjour,

Je viens de voir que l’intégration EDF Tempo semble HS :

 ![Capture d’écran 2024-08-28 à 22.21.31](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/9/39452cab82f14fd5a52efad818e6b4805ed0b974.png)

Est-ce un problème de côté de EDF ?

Merci 😉

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Août 29, 2024, 8:20 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/2 "2024-08-29T08:20:45Z")

</div>

Effectivement, l’API EDF Tempo est down 😕

L’URL de l’API est:

```auto
https://particulier.edf.fr/services/rest/referentiel/searchTempoStore?dateRelevant=2024-08-29

```

Et actuellement elle renvoie :

```auto
RESTEASY003210: Could not find resource for full path: https://particulier.edf.fr/services/rest/referentiel/searchTempoStore?dateRelevant=2024-08-29

```

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Août 31, 2024, 6:47 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/3 "2024-08-31T18:47:31Z")

</div>

> [@pierre-gilles](#):
>
> ```auto
> https://particulier.edf.fr/services/rest/referentiel/searchTempoStore?dateRelevant=2024-08-29
> 
> ```

Oups ☹  
Est-ce qu’on peut voir avec un support chez eux ou pas ?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Septembre 2, 2024, 7:45 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/4 "2024-09-02T07:45:38Z")

</div>

L’API a changé visiblement, pas le choix il faut recoder cette intégration avec une autre API !

Il y en a une chez RTE

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Septembre 2, 2024, 8:15 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/5 "2024-09-02T08:15:52Z")

</div>

Tu l’a vu ou qu’elle à changé ? 🙂  
Il n’est pas possible d’adapter le changement dans Gladys ?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Septembre 2, 2024, 8:17 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/6 "2024-09-02T08:17:38Z")

</div>

Je l’ai lu sur d’autres forums / discord 🙂

Cette API était un peu un «&nbsp;hack&nbsp;» car on passait par l’API utilisé par le site je crois. C’était pas un truc documenté, mais utilisé par toute la communauté domotique.

Le passage à l’API RTE est peut-être le moment de passer à une API maintenue et documentée

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Septembre 2, 2024, 8:20 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/7 "2024-09-02T08:20:09Z")

</div>

Ok merci pour le retour 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Septembre 2, 2024, 4:17 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/8 "2024-09-02T16:17:20Z")

</div>

J’ai travaillé sur ce sujet aujourd’hui !

Migration vers l’API RTE.

Comme cette API n’est pas ouverte au public, mais demande d’avoir un compte développeur, j’ai fais la même méthode que pour l’API Ecowatt : Je propose cette API gracieusement via les serveurs Gladys Plus à tous les utilisateurs Gladys, les flux étant vraiment très léger ( On parle d’un pauvre JSON qui est le même pour tout le monde 😛 )

L’objectif étant de garder la même simplicité d’utilisation qu’actuellement, à savoir: aucune configuration à faire.

La PR est ici :

> <https://github.com/GladysAssistant/Gladys/pull/2114>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[x\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[x\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Fix #2113

Pour l’utilisateur, ça ne change rien.

Cela partira dans la prochaine version de Gladys 🙂

Edit: Mergé !

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [Septembre 2, 2024, 4:51 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/9 "2024-09-02T16:51:00Z")

</div>

Un grand merci 😉

---

<div class="post-metadata">

**Author:** ![Fabic](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/f/a698b9/32.png) [@Fabic](https://community.gladysassistant.com/u/Fabic)\
**Post date:** [Septembre 2, 2024, 5:16 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/10 "2024-09-02T17:16:52Z")

</div>

Dans le flux node-red que j’avais fait pour Gladys j’utilisais l’API RTE.

On verra mais pour le cas d’usage j’ai eu pas mal de bug de l’API durant son utilisation. Elle me ramenait du XML de temps à autre alors que la requête demandait du JSON!

Merci en tout cas pour cette intégration qui peut faire faire des économies en centaines d’euros tous les ans.

PS: J’ai conservé une partie de mon code node-red pour calculer le nombre de jours rouges, blancs, bleus et faire un graphe «&nbsp;psychologique&nbsp;» des jours rouges passés

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Septembre 14, 2024, 6:50 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/11 "2024-09-14T06:50:07Z")

</div>

Cette nouvelle API est disponible dans Gladys Assistant 4.45.1 !

> [@Gladys Assistant 4.45 : DuckDB, une révolution dans Gladys ! zap](https://community.gladysassistant.com/t/gladys-assistant-4-45-duckdb-une-revolution-dans-gladys/9058/107):
>
> Pour information, j’ai sorti hier soir Gladys Assistant 4.45.1, au programme : Correction du widget EDF Tempo pour migrer vers l’API RTE au lieu de l’API EDF qui ne fonctionnait plus Ajout d’une tâche nocturne à 23h qui va purger les messages en DB plus vieux que 15 jours. Dès que vous êtes à jour et qu’une nuit à passé, je vous recommande d’aller faire un coup de nettoyage de la DB SQLite pour vraiment libérer l’espace ^^ Maintenant que vos états de capteurs ne sont plus dans SQLite, ça devra…

Chez moi tout remarche comme avant 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Septembre 14, 2024, 6:50 UTC](https://community.gladysassistant.com/t/integration-edf-tempo-hs/9062/12 "2024-09-14T06:50:11Z")

</div>


