Enedisgateway2mqtt

cool :wink: :+1: :+1:

active les 3 switch
et laisse le tranquille

et reboot éclectiquement home assistant

Il y a bien eu une collecte d’informations dans la nuit.je viens de mettre les 3 switchs sur On et reboot Home assistant mais EnedisGateway ne veut pas demarrer

Re,
ca me le fait aussi , mais t’inquiete ca va se faire tout seul.

Tu as reboot comment ?

Hello

j’ai tout appliqué en long en large , nouveau token sur la nouvelle passerelle
résultat :

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Enedisgateway2mqtt Dev
 use Enedis Gateway API to send data in your MQTT Broker (latest-dev channel)
-----------------------------------------------------------
 Add-on version: 0.8.0-dev
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
 Home Assistant Core: 2022.11.4
 Home Assistant Supervisor: 2022.11.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/enedisgateway2mqtt_dev/config.yaml'
TZ='Europe/Paris'
/etc/cont-init.d/01-custom_script.sh: executing
[11:43:36] INFO: Execute /config/enedisgateway2mqtt-dev.sh if existing
[11:43:36] INFO: ... no script found
/etc/cont-init.d/99-run.sh: executing
[11:43:36] INFO: Using config file found in /config/enedisgateway2mqtt_dev/config.yaml
Config file is a valid yaml
creating symlink
[11:43:36] INFO: Using database file found in /config/enedisgateway2mqtt_dev/enedisgateway.db
 
[11:43:36] INFO: Starting the app
 
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
2022-11-24 11:44:15.736 -  WARNING : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▲ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:15.736 -  WARNING :  MIGRATION DE L'ANCIENNE BASE DE DONNÉES VERS LA NOUVELLE STRUCTURE.
2022-11-24 11:44:15.736 -  WARNING : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▲ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:15.737 -  WARNING :  Migration des "consumption_daily"
2022-11-24 11:44:15.767 -  WARNING :   - 2022 => 18.85kW
2022-11-24 11:44:15.795 -  WARNING :  Migration des "consumption_detail"
2022-11-24 11:44:15.833 -  WARNING :   - 2022-01 => 0.15kW
2022-11-24 11:44:15.889 -  WARNING :   - 2022-02 => 347.3kW
2022-11-24 11:44:15.977 -  WARNING :   - 2022-03 => 386.99kW
2022-11-24 11:44:16.126 -  WARNING :   - 2022-04 => 393.43kW
2022-11-24 11:44:16.243 -  WARNING :   - 2022-05 => 334.18kW
2022-11-24 11:44:16.340 -  WARNING :   - 2022-06 => 226.75kW
2022-11-24 11:44:16.461 -  WARNING :   - 2022-07 => 242.79kW
2022-11-24 11:44:16.557 -  WARNING :   - 2022-08 => 252.74kW
2022-11-24 11:44:16.650 -  WARNING :   - 2022-09 => 218.93kW
2022-11-24 11:44:16.767 -  WARNING :   - 2022-10 => 267.5kW
2022-11-24 11:44:16.889 -  WARNING :   - 2022-11 => 283.67kW
2022-11-24 11:44:17.253 -  WARNING :  Migration des "production_daily"
2022-11-24 11:44:17.254 -  WARNING :  Migration des "production_detail"
2022-11-24 11:44:17.257 -     INFO :  Configure Databases
2022-11-24 11:44:19.091 -     INFO :   => day
2022-11-24 11:44:19.094 -     INFO :   => call_number
2022-11-24 11:44:19.095 -     INFO :   => max_call
2022-11-24 11:44:19.097 -     INFO :   => version
2022-11-24 11:44:19.099 -     INFO :   => lock
2022-11-24 11:44:19.101 -     INFO :   => lastUpdate
2022-11-24 11:44:19.101 -     INFO :   Success
2022-11-24 11:44:19.393 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.393 -     INFO : ▌│█║▌║▌║  __  __         _____  _              _          _               _  ____          _           ║▌║▌║█│▌
2022-11-24 11:44:19.393 -     INFO : ▌│█║▌║▌║ |  \/  | _   _ | ____|| |  ___   ___ | |_  _ __ (_)  ___   __ _ | ||  _ \   __ _ | |_   __ _  ║▌║▌║█│▌
2022-11-24 11:44:19.393 -     INFO : ▌│█║▌║▌║ | |\/| || | | ||  _|  | | / _ \ / __|| __|| '__|| | / __| / _` || || | | | / _` || __| / _` | ║▌║▌║█│▌
2022-11-24 11:44:19.393 -     INFO : ▌│█║▌║▌║ | |  | || |_| || |___ | ||  __/| (__ | |_ | |   | || (__ | (_| || || |_| || (_| || |_ | (_| | ║▌║▌║█│▌
2022-11-24 11:44:19.394 -     INFO : ▌│█║▌║▌║ |_|  |_| \__, ||_____||_| \___| \___| \__||_|   |_| \___| \__,_||_||____/  \__,_| \__| \__,_| ║▌║▌║█│▌
2022-11-24 11:44:19.394 -     INFO : ▌│█║▌║▌║          |___/                                                                                ║▌║▌║█│▌
2022-11-24 11:44:19.394 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.394 -     INFO : ▌│█║▌║▌║                                      VERSION : 0.8.0-dev                                      ║▌║▌║█│▌
2022-11-24 11:44:19.394 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.394 -     INFO :  Display configuration :
2022-11-24 11:44:19.394 -     INFO :    cycle: 14400
2022-11-24 11:44:19.394 -     INFO :    debug: True
2022-11-24 11:44:19.394 -     INFO :    home_assistant:
2022-11-24 11:44:19.394 -     INFO :      card_myenedis: True
2022-11-24 11:44:19.394 -     INFO :      discovery_prefix: homeassistant
2022-11-24 11:44:19.394 -     INFO :      enable: True
2022-11-24 11:44:19.395 -     INFO :    mqtt:
2022-11-24 11:44:19.395 -     INFO :      client_id: myelectricaldata
2022-11-24 11:44:19.395 -     INFO :      enable: True
2022-11-24 11:44:19.395 -     INFO :      hostname: core-mosquitto
2022-11-24 11:44:19.395 -     INFO :      password: ** hidden **
2022-11-24 11:44:19.395 -     INFO :      port: 1883
2022-11-24 11:44:19.395 -     INFO :      prefix: myelectricaldata
2022-11-24 11:44:19.395 -     INFO :      qos: 0
2022-11-24 11:44:19.395 -     INFO :      retain: True
2022-11-24 11:44:19.395 -     INFO :      username: Hassio
2022-11-24 11:44:19.395 -     INFO :    myelectricaldata:
2022-11-24 11:44:19.395 -     INFO :      ** hidden **:
2022-11-24 11:44:19.396 -     INFO :        token: ** hidden **
2022-11-24 11:44:19.396 -     INFO :        name: Maison
2022-11-24 11:44:19.396 -     INFO :        cache: True
2022-11-24 11:44:19.396 -     INFO :        consumption: True
2022-11-24 11:44:19.396 -     INFO :        consumption_detail: True
2022-11-24 11:44:19.396 -     INFO :        consumption_price_base: 0.174
2022-11-24 11:44:19.396 -     INFO :        consumption_price_hc: 0
2022-11-24 11:44:19.396 -     INFO :        consumption_price_hp: 0
2022-11-24 11:44:19.396 -     INFO :        enable: False
2022-11-24 11:44:19.396 -     INFO :        offpeak_hours_0: 
2022-11-24 11:44:19.396 -     INFO :        offpeak_hours_1: 
2022-11-24 11:44:19.396 -     INFO :        offpeak_hours_2: 
2022-11-24 11:44:19.397 -     INFO :        offpeak_hours_3: 
2022-11-24 11:44:19.397 -     INFO :        offpeak_hours_4: 
2022-11-24 11:44:19.397 -     INFO :        offpeak_hours_5: 
2022-11-24 11:44:19.397 -     INFO :        offpeak_hours_6: 
2022-11-24 11:44:19.397 -     INFO :        plan: BASE
2022-11-24 11:44:19.397 -     INFO :        production: False
2022-11-24 11:44:19.397 -     INFO :        production_detail: False
2022-11-24 11:44:19.397 -     INFO :        production_price: 0
2022-11-24 11:44:19.397 -     INFO :        refresh_addresse: True
2022-11-24 11:44:19.397 -     INFO :        refresh_contract: True
2022-11-24 11:44:19.397 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.397 -     INFO :  Check config.yaml :
2022-11-24 11:44:19.397 -     INFO :   => Config valid
2022-11-24 11:44:19.402 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.402 -     INFO :  LOADING CONFIGURATION...
2022-11-24 11:44:19.402 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.403 -     INFO :  ** hidden **
2022-11-24 11:44:19.407 -     INFO :    => Success
2022-11-24 11:44:19.407 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:19.407 -     INFO :  Connect to MQTT broker core-mosquitto:1883
2022-11-24 11:44:19.410 -     INFO :   => Connection success
 * Serving Flask app 'main'
 * Debug mode: off
2022-11-24 11:44:19.537 -     INFO : WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.30.33.8:5000
2022-11-24 11:44:19.537 -     INFO : Press CTRL+C to quit
2022-11-24 11:44:19.538 -     INFO :  * Restarting with stat
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
2022-11-24 11:44:20.674 -     INFO :  Configure Databases
2022-11-24 11:44:20.699 -     INFO :   => day
2022-11-24 11:44:20.702 -     INFO :   => call_number
2022-11-24 11:44:20.704 -     INFO :   => max_call
2022-11-24 11:44:20.705 -     INFO :   => version
2022-11-24 11:44:20.708 -     INFO :   => lock
2022-11-24 11:44:20.709 -     INFO :   => lastUpdate
2022-11-24 11:44:20.709 -     INFO :   Success
2022-11-24 11:44:20.966 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.966 -     INFO : ▌│█║▌║▌║  __  __         _____  _              _          _               _  ____          _           ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║ |  \/  | _   _ | ____|| |  ___   ___ | |_  _ __ (_)  ___   __ _ | ||  _ \   __ _ | |_   __ _  ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║ | |\/| || | | ||  _|  | | / _ \ / __|| __|| '__|| | / __| / _` || || | | | / _` || __| / _` | ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║ | |  | || |_| || |___ | ||  __/| (__ | |_ | |   | || (__ | (_| || || |_| || (_| || |_ | (_| | ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║ |_|  |_| \__, ||_____||_| \___| \___| \__||_|   |_| \___| \__,_||_||____/  \__,_| \__| \__,_| ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║          |___/                                                                                ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.967 -     INFO : ▌│█║▌║▌║                                      VERSION : 0.8.0-dev                                      ║▌║▌║█│▌
2022-11-24 11:44:20.967 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.967 -     INFO :  Display configuration :
2022-11-24 11:44:20.967 -     INFO :    cycle: 14400
2022-11-24 11:44:20.967 -     INFO :    debug: True
2022-11-24 11:44:20.968 -     INFO :    home_assistant:
2022-11-24 11:44:20.968 -     INFO :      card_myenedis: True
2022-11-24 11:44:20.968 -     INFO :      discovery_prefix: homeassistant
2022-11-24 11:44:20.968 -     INFO :      enable: True
2022-11-24 11:44:20.968 -     INFO :    mqtt:
2022-11-24 11:44:20.968 -     INFO :      client_id: myelectricaldata
2022-11-24 11:44:20.968 -     INFO :      enable: True
2022-11-24 11:44:20.968 -     INFO :      hostname: core-mosquitto
2022-11-24 11:44:20.968 -     INFO :      password: ** hidden **
2022-11-24 11:44:20.968 -     INFO :      port: 1883
2022-11-24 11:44:20.968 -     INFO :      prefix: myelectricaldata
2022-11-24 11:44:20.968 -     INFO :      qos: 0
2022-11-24 11:44:20.969 -     INFO :      retain: True
2022-11-24 11:44:20.969 -     INFO :      username: ** hidden **
2022-11-24 11:44:20.969 -     INFO :    myelectricaldata:
2022-11-24 11:44:20.969 -     INFO :      ** hidden **:
2022-11-24 11:44:20.969 -     INFO :        token: ** hidden **
2022-11-24 11:44:20.969 -     INFO :        name: Maison
2022-11-24 11:44:20.969 -     INFO :        cache: True
2022-11-24 11:44:20.969 -     INFO :        consumption: True
2022-11-24 11:44:20.969 -     INFO :        consumption_detail: True
2022-11-24 11:44:20.969 -     INFO :        consumption_price_base: 0.174
2022-11-24 11:44:20.969 -     INFO :        consumption_price_hc: 0
2022-11-24 11:44:20.969 -     INFO :        consumption_price_hp: 0
2022-11-24 11:44:20.970 -     INFO :        enable: False
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_0: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_1: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_2: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_3: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_4: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_5: 
2022-11-24 11:44:20.970 -     INFO :        offpeak_hours_6: 
2022-11-24 11:44:20.970 -     INFO :        plan: BASE
2022-11-24 11:44:20.970 -     INFO :        production: False
2022-11-24 11:44:20.970 -     INFO :        production_detail: False
2022-11-24 11:44:20.970 -     INFO :        production_price: 0
2022-11-24 11:44:20.971 -     INFO :        refresh_addresse: True
2022-11-24 11:44:20.971 -     INFO :        refresh_contract: True
2022-11-24 11:44:20.971 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.971 -     INFO :  Check config.yaml :
2022-11-24 11:44:20.971 -     INFO :   => Config valid
2022-11-24 11:44:20.976 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.976 -     INFO :  LOADING CONFIGURATION...
2022-11-24 11:44:20.977 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.977 -     INFO :  ** hidden **
2022-11-24 11:44:20.981 -     INFO :    => Success
2022-11-24 11:44:20.982 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-11-24 11:44:20.982 -     INFO :  Connect to MQTT broker core-mosquitto:1883
2022-11-24 11:44:20.984 -     INFO :   => Connection success

Aucun sensor de crée !
et aucune info de Enedis ne remontent.

Alors que la fin du journal

2022-11-24 11:24:26.837 -     INFO :  Connect to MQTT broker core-mosquitto:1883
2022-11-24 11:24:26.839 -     INFO :   => Connection success

Tu as probablement déployé la version où j’ai oublier de réactiver le job d’import au boot du conteneur :smiley:
Je viens de changer le fonctionnement pour ne plus push ce genre de merde ^^

Je vais pas tarder à push la 0.8.2-dev avec quelques fix.

EDIT 0.8.2-dev en ligne

1 « J'aime »

Hello

installe de la 0.8.2 :+1:
ca fonctionne
mais une sacrée différence entre gateway enedis et myelectradata

J’ai fait parreil mais chez moi tout est bon, je suis en BASE

moi aussi
en base
a 0.1740 €

Selon les instructions de migration par @M4dm4rtig4n plus haute

tu peux me mettre ton config.yaml
que je compare avec le mien au cas ou j’aurais une erreur

Vire tes info perso dessus

merci

EDIT

c’est bon , j’ai tout viré est reparti de zéro

J’ai une remontée erreur

@Felix62

tu as bien stoppé gateway Enedis ?

J’ai les 2 module mais l’autre est inactif
image

ok

voici la copie de ma config

cycle: 14400
debug: false
home_assistant:
  card_myenedis: true
  discovery_prefix: homeassistant
  enable: true
influxdb:
  bucket: myelectricaldata
  enable: false
  host: influxdb
  org: myelectricaldata
  port: 8086
  token: XXXXXXXXXXX
mqtt:
  client_id: myelectricaldata
  enable: true
  hostname: core-mosquitto
  password: EdfeXXXXXX
  port: 1883
  prefix: myelectricaldata
  qos: 0
  retain: true
  username: XXXX
myelectricaldata:
  212XXXXX42249:
    name: Maison
    cache: true
    consumption: true
    consumption_detail: true
    consumption_price_base: 0.1740
    enable: true
    plan: BASE
    token: NNuI3xiMCbyhB-bvjXXXXXXXX6ZnF6IYAmyZw-c=
    refresh_addresse: true
    refresh_contract: true

p.i…je n;ai jamais stoppé Enedisgateway2mqtt…ça marche bien à côte de myelectricaldata :slight_smile:

possible , mais je préfère la joué sécurité !!

Et pourquoi faire un doublon ??

Merci c’est bon j’ai les infos qui remonte dans le sensor !

1 « J'aime »

doublon: en tant que l’autre ne marche pas 100%…

Je viens d’installer le plugin mais pas de data dans influxdb pourtant pas d’erreurs dans les logs, ca met du temps a arriver ?