# Enedisgateway2mqtt

**URL:** <https://forum.hacf.fr/t/enedisgateway2mqtt/6679>\
**Category:** Intégration\
**Created:** [Octobre 15, 2021, 10:31 UTC](https://forum.hacf.fr/t/enedisgateway2mqtt/6679 "2021-10-15T22:31:51Z")\
**Posts on this page:** 1\
**Showing post:** 351

<div class="post-metadata">

**Author:** ![Felix62](https://forum.hacf.fr/user_avatar/forum.hacf.fr/felix62/32/7858_2.png) [@Felix62](https://forum.hacf.fr/u/Felix62)\
**Post date:** [Août 19, 2022, 8:43 UTC](https://forum.hacf.fr/t/enedisgateway2mqtt/6679/351 "2022-08-19T20:43:08Z")

</div>

Voici ma config si sa peux aider 🙂  
Conseil: supprimer dans le dossier le fichier config ==\> démarrer le module puis retour config.yaml pour le modifier

Remplacer !secret xxxxx =\> par votre réponse, surtout si il y a des ’ respecté bien  
PS: Gaspar2mqtt est excellent également mais doit être configuré manuellement

```auto
cycle: 3600
debug: true
enedis_gateway:
  !secret pdl:
    addresses: true
    consumption: true
    consumption_detail: true
    consumption_price_base: 0.149
    consumption_price_hc: 0
    consumption_price_hp: 0
    offpeak_hours: null
    plan: BASE
    production: false
    production_detail: false
    refresh_addresses: false
    refresh_contract: false
    token: !secret enedis_token
    
# PDL_2:
# token: PDL_2_TOKEN
# plan: HP/HC
# consumption: true
# consumption_detail: true
# consumption_price_hc: 0.1781
# consumption_price_hp: 0.1337
# consumption_price_base: 0.1781
# production: false
# production_detail: false
# addresses: true
    
home_assistant:
  card_myenedis: true
  discovery: true
  discovery_prefix: homeassistant
mqtt:
  client_id: enedis_gateway
  host: 192.168.1.55
  password: '!secret mqtt_pwd'
  port: 1883
  prefix: enedis_gateway
  qos: 0
  retain: true
  username: 'felix'
wipe_cache: false

```

---

_[View the full topic](https://forum.hacf.fr/t/enedisgateway2mqtt/6679)._
