# GRDF: Gazpar\_2\_MQTT

**URL:** <https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828>\
**Category:** Vos Projets\
**Created:** [Avril 29, 2024, 7:25 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828 "2024-04-29T07:25:16Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 6, 2024, 5:56 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/21 "2024-05-06T17:56:21Z")

</div>

Avec STANDANLONE mode à False, j’ai:

```auto
2024-05-06 19:54:25,050 INFO 1 PCE found !
2024-05-06 19:54:25,053 INFO ---------------------------------
2024-05-06 19:54:25,053 INFO Get measures of PCE ********** alias Maison
2024-05-06 19:54:25,053 INFO Range period : from 2021-05-06 (3 years ago) to 2024-05-06 (today) ...
2024-05-06 19:54:25,053 INFO ---------------
2024-05-06 19:54:25,053 INFO Retrieve informative measures...
2024-05-06 19:54:25,626 INFO Informative measures found !
2024-05-06 19:54:25,626 INFO Analysis of informative measures provided by GRDF...
2024-05-06 19:54:25,626 INFO 919 informative measures provided by Grdf
2024-05-06 19:54:25,627 INFO 647 informative measures are ok
2024-05-06 19:54:25,627 INFO Accuracy is 70 percent
2024-05-06 19:54:25,627 INFO Last valid informative measure provided by GRDF : 
2024-05-06 19:54:25,627 INFO Date = 2024-04-24
2024-05-06 19:54:25,627 INFO Start index = 4979, End index = 4983
2024-05-06 19:54:25,627 INFO Volume = 4 m3, Energy = 41 kWh, Factor = 11.06118
2024-05-06 19:54:25,627 INFO ---------------
2024-05-06 19:54:25,627 INFO Retrieve published measures...
2024-05-06 19:54:25,833 INFO Published measures found !
2024-05-06 19:54:25,834 INFO Analysis of published measures provided by GRDF...
2024-05-06 19:54:25,834 INFO 58 published measures provided by Grdf
2024-05-06 19:54:25,834 INFO 0 published measures are ok
2024-05-06 19:54:25,834 INFO Accuracy is 0 percent
2024-05-06 19:54:25,835 WARNING Unable to find the last published measure.
2024-05-06 19:54:25,835 INFO ---------------
2024-05-06 19:54:25,835 INFO Update of database with retrieved measures...
2024-05-06 19:54:25,849 INFO Database updated !
2024-05-06 19:54:25,849 INFO ---------------
2024-05-06 19:54:25,849 INFO Retrieve PCE's thresholds from GRDF...
2024-05-06 19:54:26,108 INFO 0 thresholds found !
2024-05-06 19:54:26,112 INFO -----------------------------------------------------------
2024-05-06 19:54:26,112 INFO # Load prices #
2024-05-06 19:54:26,112 INFO -----------------------------------------------------------
2024-05-06 19:54:26,112 INFO Loading prices from file prices.csv of directory /data
2024-05-06 19:54:26,112 WARNING Unable to find price file prices.csv in directory /data
2024-05-06 19:54:26,112 INFO -----------------------------------------------------------
2024-05-06 19:54:26,112 INFO # Stand alone publication mode #
2024-05-06 19:54:26,112 INFO -----------------------------------------------------------
2024-05-06 19:54:26,113 INFO Publishing values of PCE *- ************ alias Maison...
2024-05-06 19:54:26,113 INFO ---------------------------------
2024-05-06 19:54:26,113 INFO You can retrieve published values subscribing topic gazpar/05540376180642/#
2024-05-06 19:54:26,113 INFO Publishing to Mqtt...
2024-05-06 19:54:27,118 WARNING Unable to publish last measure infos.

```

presque la même chose.  
Mais dans MQTT sous HA j’ai pleins de rolling qui arrivent en continue

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 6, 2024, 5:58 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/22 "2024-05-06T17:58:57Z")

</div>

trop compliqué pour moi. Je n’ai pas les noms de HASS\_etc…

---

<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:** [Mai 6, 2024, 6:04 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/23 "2024-05-06T18:04:24Z")

</div>

Je ne peux rien faire avec que une partie des logs. Ce que je voix : c’est bon

---

<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:** [Mai 6, 2024, 6:08 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/24 "2024-05-06T18:08:11Z")

</div>

> [@alain128](#):
>
> es noms de HASS\_e

??

```auto
      HASS_DISCOVERY: 'True'
      HASS_PREFIX: 'homeassistant'
      HASS_DEVICE_NAME: 'gazpar'

```

---

<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:** [Mai 6, 2024, 6:16 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/25 "2024-05-06T18:16:00Z")

</div>

J’ai revu l’erreur et c’est pas un erreur en realité … hérité de l’ancien gazpar2mqtt… je vais faire une solution prochainement.  
De ma côté pour «&nbsp;standalone&nbsp;»…le docker-compose marche nickel…j’ai tout dans mon mqtt sans boucle ou sorte

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 6, 2024, 6:41 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/26 "2024-05-06T18:41:58Z")

</div>

un grand merci. Ca fonctionne. Par contre j’ai lu que la mise à jour se faisait une fois par jour alors que dans les log de mon docker ca boucle à l’infini. il y a une manipulation à faire?

---

<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:** [Mai 7, 2024, 4:27 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/27 "2024-05-07T04:27:34Z")

</div>

Je ne comprends pas ce ‹&nbsp;boucle&nbsp;›. Si t’as défini p.e.

```auto
SCHEDULE_TIME: '06:30'

```

ça devrat terminer dans le log avec une ligne qui montre cette heure  
Si pas défini, ça termine aussi sans indication de relancement vers une heure

```auto
"End of gazpar2mqtt. See u..."

```

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 7, 2024, 1:27 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/28 "2024-05-07T13:27:34Z")

</div>

je n’ai pas défini de SCHEDULE TIME/  
j’ai bien le See u… et ca recommence!

```auto
2024-05-07 15:25:52,351 INFO -----------------------------------------------------------
2024-05-07 15:25:52,351 INFO No schedule defined.
2024-05-07 15:25:52,351 INFO -----------------------------------------------------------
2024-05-07 15:25:52,351 INFO # End of program #
2024-05-07 15:25:52,352 INFO -----------------------------------------------------------
2024-05-07 15:25:52,352 INFO End of gazpar2mqtt. See u...
Using '/app' as APP directory
Copying default app/*.py files to app (except param.py)...
2024-05-07 15:25:53,367 INFO -----------------------------------------------------------
2024-05-07 15:25:53,367 INFO # Welcome to gazpar2mqtt #
2024-05-07 15:25:53,367 INFO -----------------------------------------------------------
2024-05-07 15:25:53,367 INFO Program version : 0.4.0
2024-05-07 15:25:53,367 INFO Database version : 0.2.0
2024-05-07 15:25:53,367 INFO Influxdb version : 0.1.0
2024-05-07 15:25:53,367 INFO Please note that the the tool is under development, various functions may disappear or be modified.
2024-05-07 15:25:53,367 INFO -----------------------------------------------------------
2024-05-07 15:25:53,367 INFO # Program parameters #
2024-05-07 15:25:53,367 INFO -----------------------------------------------------------
2024-05-07 15:25:53,367 INFO GRDF config : username = ******@****. **, password =******

```

Et cela en boucle tant que le docker tourne.

---

<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:** [Mai 7, 2024, 1:51 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/29 "2024-05-07T13:51:18Z")

</div>

Jamais vu ça …curieux… je ne sais même pas ou commencer 🙄

---

<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:** [Mai 7, 2024, 2:43 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/30 "2024-05-07T14:43:43Z")

</div>

Je te propose d’utiliser télécharger l’image 0.5.0 (crée aujourd’hui) et re-essayer.

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 7, 2024, 3:06 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/31 "2024-05-07T15:06:09Z")

</div>

Je viens de supprimer toutes mes images docker correspondantes et réinstaller. Ca marche. Merci beaucoup. Par contre, je ne sais pas quelle image est installée.  
Petite question, dans energie de Home assistant, il faut mettre quelle sensor dans Configurer la consommation de gaz?  
Merci.

---

<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:** [Mai 7, 2024, 3:27 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/32 "2024-05-07T15:27:46Z")

</div>

> [@alain128](#):
>
> Ca marche

Sentiments mélangés …heureux que ça marche mais bien moins heureux parceque je ne le comprends pas…à oublier 🙂

Pour les maj je suis encore en mode d’apprendre. 0.5.0 est l’image ‹&nbsp;latest&nbsp;› mais si on a déjà une autre ‹&nbsp;latest&nbsp;› local et on a ‹&nbsp;latest&nbsp;› dans docker-compose, le maj ne fonctionne pas, donc mieux d’utiliser le numero… je m’en ocuppe

Pour HA stats  
[Output fr FR · vingerha/gazpar\_2\_mqtt Wiki (github.com)](https://github.com/vingerha/gazpar_2_mqtt/wiki/Output-fr-FR#4-statistiques-%C3%A0-long-terme)

---

<div class="post-metadata">

**Author:** ![Sylv\_01](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/s/a9a28c/32.png) [@Sylv\_01](https://forum.hacf.fr/u/Sylv_01)\
**Post date:** [Mai 7, 2024, 4:43 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/33 "2024-05-07T16:43:14Z")

</div>

Bonsoir, je suis intéressé également pour installer cet add-on, mais sur mon compte GRDF je n’ai plus de remontées du gazpar depuis fin avril, est ce pareil chez vous ? Ce n’est pas la peine que j’essaie l’add-on tant que le soucis n’est pas résolu chez GRDF…

---

<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:** [Mai 7, 2024, 4:45 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/34 "2024-05-07T16:45:13Z")

</div>

Voir ici pour GRrrrrrrrDF

[GRDF/gazpar de nouveau sans captcha: gazpar\_2\_mqtt - Entraide Home Assistant - Home Assistant Communauté Francophone (hacf.fr)](https://forum.hacf.fr/t/grdf-gazpar-de-nouveau-sans-captcha-gazpar-2-mqtt/40291/32)

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 7, 2024, 10:27 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/35 "2024-05-07T22:27:54Z")

</div>

Je n’y comprends rien: il y a tant de capteurs.  
Il faut mettre quoi pour pouvoir suivre sa consommation journalière?  
La plupart de mes capteurs ne passent pas et j’ai:  
Dernière réinitialisation manquante  
Les entités suivantes ont la classe d’état ‹&nbsp;measurement&nbsp;› mais ‹&nbsp;last\_reset&nbsp;› est manquant

Merci.

---

<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:** [Mai 8, 2024, 5:15 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/36 "2024-05-08T05:15:54Z")

</div>

> [@alain128](#):
>
> Il faut mettre quoi

C’est dans la doc si-dessus… long term statistics pour dashboard Energie

---

<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:** [Mai 8, 2024, 5:22 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/37 "2024-05-08T05:22:34Z")

</div>

> [@Sylv\_01](#):
>
> Ce n’est pas la peine que j’essaie l’add-on

Oui et non…oui: pour l’installation et voir des données antérieur … j’attend que grdf va ressoudre ça prochainement…mais bon, je me rappelle qqc d’Enedis qui a pris app 2 mois.

---

<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:** [Mai 8, 2024, 8:01 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/38 "2024-05-08T08:01:22Z")

</div>

> [@alain128](#):
>
> Et cela en boucle

Avec l’aide de chercheur / philippe : trouvé…je vais relancer une maj qui va aussi adresser le nom des sensors (doubleeurs maintenant) et les device\_class erreurs…dans la journée j’espère

---

<div class="post-metadata">

**Author:** ![alain128](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@alain128](https://forum.hacf.fr/u/alain128)\
**Post date:** [Mai 8, 2024, 8:39 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/39 "2024-05-08T08:39:32Z")

</div>

J’ai essayé les trois lignes  
HASS\_LTS: «&nbsp;True&nbsp;»  
HASS\_LTS\_TOKEN: 98724kjhawelkj…etc.  
HASS\_LTS\_HOST: [http://192.168.x.y:8123](http://192.168.x.y:8123)

avec et sans «&nbsp;&nbsp;» pour le Token avec l’adresse locale avec l’adresse https de mon serveur et à chaque fois j’ai:

INFO Connection to WebSocket Home Assistant ws://192.168.1.76:8123/api/websocket  
gazpar\_2\_mqtt | 2024-05-08 10:33:39,648 ERROR Connection to remote host was lost.  
gazpar\_2\_mqtt | 2024-05-08 10:33:39,648 CRITICAL Connection to Websocket Home Assistant failed  
gazpar\_2\_mqtt | 2024-05-08 10:33:39,648 WARNING =\> WARNING, the WebSocket will be banned after multiple unsuccesful login attempts.

---

<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:** [Mai 8, 2024, 8:56 UTC](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828/40 "2024-05-08T08:56:01Z")

</div>

> [@alain128](#):
>
> 98724kjhawelkj…etc.

J’attend que t’as utilisé ton propre Long Term Access token?

[Page précédente](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828.md?page=1)

[Page suivante](https://forum.hacf.fr/t/grdf-gazpar-2-mqtt/40828.md?page=3)
