Bonjour à tous,
Voila 2 mois que je tente de faire fonctionner " MyElectricalData" .
Et malgré la mise à jour, je suis bloquée.
Je ne suis pas experte et je progresse toujours à taton, mais le je suis embêtée, et je me permet de poster pour tenter de comprendre.
Donc au démarrage du module j’obtiens ceci:
Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
Add-on: MyElectricalData
Use Enedis Gateway API to send data in your MQTT Broker (latest channel)
-----------------------------------------------------------
Add-on version: 0.8.11-beta1
You are running the latest version of this add-on.
System: Home Assistant OS 9.4 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2022.12.8
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/enedisgateway2mqtt.conf'
TZ='Europe/Paris'
mqtt_autodiscover='true'
verbose='true'
/etc/cont-init.d/01-custom_script.sh: executing
[20:02:31] INFO: Execute /config/enedisgateway2mqtt.sh if existing
[20:02:32] INFO: ... no script found
/etc/cont-init.d/91-mqtt_autodiscover.sh: executing
[20:02:33] INFO: mqtt_autodiscover is defined in options, attempting autodiscovery...
[20:02:34] INFO: ... MQTT service found, fetching server detail (you can enter those manually in your config file) ...
/etc/cont-init.d/91-mqtt_autodiscover.sh: exiting 2
/etc/cont-init.d/99-run.sh: executing
creating symlink
[20:02:38] INFO: Using database file found in /config/enedisgateway2mqtt
[20:02:38] FATAL: Config file not found. The addon will create a new one, then stop. Please customize the file in /config/enedisgateway2mqtt/enedisgateway2mqtt.conf before restarting.
[20:02:38] INFO: Starting the app
au bout de 15s/30s en ré actualisant j’obtiens ceci:
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1472, in _execute_ddl
ret = self._execute_context(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1943, in _execute_context
self._handle_dbapi_exception(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
util.raise_(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 208, in raise_
raise exception
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1900, in _execute_context
self.dialect.do_execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table config already exists
[SQL:
CREATE TABLE config (
"key" TEXT NOT NULL,
value TEXT NOT NULL,
PRIMARY KEY ("key")
)
]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
2022-12-23 20:06:45.975 - INFO : Configure Databases
2022-12-23 20:06:46.206 - INFO : => day
2022-12-23 20:06:46.224 - INFO : => call_number
2022-12-23 20:06:46.234 - INFO : => max_call
2022-12-23 20:06:46.246 - INFO : => version
2022-12-23 20:06:46.259 - INFO : => lock
2022-12-23 20:06:46.270 - INFO : => lastUpdate
2022-12-23 20:06:46.271 - INFO : Success
2022-12-23 20:06:48.956 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:48.957 - INFO : RUN IN PRODUCTION MODE
2022-12-23 20:06:48.957 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:49.023 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:49.024 - INFO : ▌│█║▌║▌║ __ __ _____ _ _ _ _ ____ _ ║▌║▌║█│▌
2022-12-23 20:06:49.025 - INFO : ▌│█║▌║▌║ | \/ | _ _ | ____|| | ___ ___ | |_ _ __ (_) ___ __ _ | || _ \ __ _ | |_ __ _ ║▌║▌║█│▌
2022-12-23 20:06:49.025 - INFO : ▌│█║▌║▌║ | |\/| || | | || _| | | / _ \ / __|| __|| '__|| | / __| / _` || || | | | / _` || __| / _` | ║▌║▌║█│▌
2022-12-23 20:06:49.030 - INFO : ▌│█║▌║▌║ | | | || |_| || |___ | || __/| (__ | |_ | | | || (__ | (_| || || |_| || (_| || |_ | (_| | ║▌║▌║█│▌
2022-12-23 20:06:49.030 - INFO : ▌│█║▌║▌║ |_| |_| \__, ||_____||_| \___| \___| \__||_| |_| \___| \__,_||_||____/ \__,_| \__| \__,_| ║▌║▌║█│▌
2022-12-23 20:06:49.047 - INFO : ▌│█║▌║▌║ |___/ ║▌║▌║█│▌
2022-12-23 20:06:49.048 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:49.049 - INFO : ▌│█║▌║▌║ VERSION : 0.8.10 ║▌║▌║█│▌
2022-12-23 20:06:49.049 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:49.050 - INFO : Display configuration :
2022-12-23 20:06:49.050 - INFO : cycle: 14400
2022-12-23 20:06:49.050 - INFO : debug: False
2022-12-23 20:06:49.051 - INFO : home_assistant:
2022-12-23 20:06:49.051 - INFO : card_myenedis: True
2022-12-23 20:06:49.052 - INFO : discovery_prefix: homeassistant
2022-12-23 20:06:49.052 - INFO : enable: False
2022-12-23 20:06:49.053 - INFO : influxdb:
2022-12-23 20:06:49.053 - INFO : asynchronous: false
2022-12-23 20:06:49.053 - INFO : bucket: myelectricaldata
2022-12-23 20:06:49.054 - INFO : enable: False
2022-12-23 20:06:49.054 - INFO : host: influxdb
2022-12-23 20:06:49.054 - INFO : org: myelectricaldata
2022-12-23 20:06:49.055 - INFO : port: 8086
2022-12-23 20:06:49.055 - INFO : token: ** hidden **
2022-12-23 20:06:49.055 - INFO : mqtt:
2022-12-23 20:06:49.056 - INFO : client_id: myelectricaldata
2022-12-23 20:06:49.056 - INFO : enable: False
2022-12-23 20:06:49.057 - INFO : host: X.X.X.X
2022-12-23 20:06:49.057 - INFO : password: ** hidden **
2022-12-23 20:06:49.057 - INFO : port: 1883
2022-12-23 20:06:49.058 - INFO : prefix: myelectricaldata
2022-12-23 20:06:49.059 - INFO : qos: 0
2022-12-23 20:06:49.059 - INFO : retain: True
2022-12-23 20:06:49.060 - INFO : username:
2022-12-23 20:06:49.060 - INFO : myelectricaldata:
2022-12-23 20:06:49.060 - INFO : pdl:
2022-12-23 20:06:49.061 - INFO : cache: True
2022-12-23 20:06:49.061 - INFO : consumption: True
2022-12-23 20:06:49.061 - INFO : consumption_detail: True
2022-12-23 20:06:49.062 - INFO : consumption_detail_max_date:
2022-12-23 20:06:49.062 - INFO : consumption_max_date:
2022-12-23 20:06:49.062 - INFO : consumption_price_base: 0
2022-12-23 20:06:49.063 - INFO : consumption_price_hc: 0
2022-12-23 20:06:49.063 - INFO : consumption_price_hp: 0
2022-12-23 20:06:49.064 - INFO : enable: True
2022-12-23 20:06:49.064 - INFO : offpeak_hours_0:
2022-12-23 20:06:49.064 - INFO : offpeak_hours_1:
2022-12-23 20:06:49.065 - INFO : offpeak_hours_2:
2022-12-23 20:06:49.065 - INFO : offpeak_hours_3:
2022-12-23 20:06:49.066 - INFO : offpeak_hours_4:
2022-12-23 20:06:49.066 - INFO : offpeak_hours_5:
2022-12-23 20:06:49.066 - INFO : offpeak_hours_6:
2022-12-23 20:06:49.067 - INFO : plan: BASE
2022-12-23 20:06:49.067 - INFO : production: False
2022-12-23 20:06:49.067 - INFO : production_detail: False
2022-12-23 20:06:49.068 - INFO : production_detail_max_date:
2022-12-23 20:06:49.068 - INFO : production_max_date:
2022-12-23 20:06:49.069 - INFO : production_price: 0
2022-12-23 20:06:49.069 - INFO : token: ** hidden **
2022-12-23 20:06:49.069 - INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2022-12-23 20:06:49.070 - INFO : Check config.yaml :
2022-12-23 20:06:49.070 - CRITICAL : Some mandatory parameters are missing:
2022-12-23 20:06:49.071 - CRITICAL : - PDL must be 14 characters (pdl => 3)
2022-12-23 20:06:49.071 - CRITICAL :
2022-12-23 20:06:49.072 - CRITICAL : You can get list of parameters here :
2022-12-23 20:06:49.072 - CRITICAL : => https://github.com/m4dm4rtig4n/enedisgateway2mqtt#configuration-file
Donc la j’ai repris mon fichier je ne sais combien de fois.
J’ai donc dans : /config/enedisgateway2mqtt/enedisgateway2mqtt.yaml, ceci
cycle: 14400 # 4H
debug: false
home_assistant:
card_myenedis: true
discovery_prefix: homeassistant
enable: true
influxdb:
enable: true
hostname: a0d7b954-influxdb
port: 8086
token: E4tVe41pui7VHmCoPtizuVCmzMCPb4QX25UhpW5ILka803GnYdVMxC
org: "-"
bucket: myelectricaldata/autogen
# ATTENTION, L'activation de l'importation asynchrone va réduire fortement le temps d'importation dans InfluxDB
# mais va augmenter la consommation mémoire & CPU et donc à activer uniquement sur un hardware robuste.
method: synchronous # Mode disponible : synchronous / asynchronous / batching
# batching_options permet uniquement de configurer la methode `batching`.
# Pour plus d'information : https://github.com/influxdata/influxdb-client-python#batching
# batching_options:
# batch_size: 1000
# flush_interval: 1000
# jitter_interval: 0
# retry_interval: 5000
# max_retry_time: 180_000
# max_retries: 5
# max_retry_delay: 125_000
# exponential_base: 2
mqtt:
enable: true
hostname: core-mosquitto
port: 1883
username: mqtt
password: mqtt
prefix: myelectricaldata
client_id: myelectricaldata # DOIT ETRE UNIQUE SUR LA TOTALITE DES CLIENTS CONNECTE AU SERVEUR MQTT
retain: true
qos: 0
myelectricaldata:
5************8:
name: Domicile
enable: 'true'
token: E*********************************C
cache: true
refresh_addresse: true
refresh_contract: true
Du coups… je ne vois pas ou est le problème…. Le PDL et le token sont bon. J’ai fait une erreur qq parts ?
D’avance merci pour votre aide et patience !
Ma configuration
[center] ## System Information
version | core-2022.12.8 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.7 |
os_name | Linux |
os_version | 5.15.76-v8 |
arch | aarch64 |
timezone | Europe/Paris |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4796 |
Installed Version | 1.28.3 |
Stage | running |
Available Repositories | 1199 |
Downloaded Repositories | 15 |
AccuWeather
can_reach_server | ok |
---|---|
remaining_requests | 43 |
Aqara Gateway
telnet_logged |
– | –
mqtt_connected |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 9.4 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2022.11.2 |
agent_version | 1.4.1 |
docker_version | 20.10.19 |
disk_total | 109.3 GB |
disk_used | 29.5 GB |
healthy | true |
supported | true |
board | rpi4-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Terminal & SSH (9.6.1), Samba share (10.0.0), File editor (5.4.2), Duck DNS (1.15.0), Dnsmasq (1.5.1), eWeLink Smart Home (1.3.3), Z-Wave JS (0.1.74), Spotify Connect (0.12.2), Mosquitto broker (6.1.3), Zigbee2MQTT (1.28.4-1), Hotspot wifi pour RPI (dev), MyElectricalData (0.8.11-beta1) |
Dashboards
dashboards | 1 |
---|---|
resources | 12 |
views | 13 |
mode | storage |
Recorder
oldest_recorder_run | 14 décembre 2022 à 19:01 |
---|---|
current_recorder_run | 23 décembre 2022 à 18:56 |
estimated_db_size | 444.27 MiB |
database_engine | sqlite |
database_version | 3.38.5 |
Spotify
api_endpoint_reachable | ok |
---|
Xiaomi Miot Auto
component_version | 0.7.1 |
---|---|
can_reach_server | ok |
can_reach_spec | ok |
logged_accounts | 1 |
total_devices | 7 |