MyElectricalData .. besoin d'un coup de main pour la config InfuDB

.
j’y ai cru , mais ca avance …

2023-07-06 17:41:00.937 -     INFO :  Connect to InfluxDB 192.168.0.55:8086
2023-07-06 17:41:00.949 -     INFO :   => Connection success
2023-07-06 17:41:00.949 -     INFO :   => Méthode d'importation : SYNCHRONOUS
2023-07-06 17:41:00.949 -     INFO :   => Aucune durée de rétention de données détectée.
2023-07-06 17:41:01.101 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:01.103 -     INFO :  DÉMARRAGE DU JOB D'IMPORTATION DANS 10S
2023-07-06 17:41:01.103 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:01.104 -     INFO :   => 10s
2023-07-06 17:41:02.105 -     INFO :   => 9s
2023-07-06 17:41:03.106 -     INFO :   => 8s
2023-07-06 17:41:04.108 -     INFO :   => 7s
2023-07-06 17:41:05.109 -     INFO :   => 6s
2023-07-06 17:41:06.111 -     INFO :   => 5s
2023-07-06 17:41:07.112 -     INFO :   => 4s
2023-07-06 17:41:08.114 -     INFO :   => 3s
2023-07-06 17:41:09.115 -     INFO :   => 2s
2023-07-06 17:41:10.117 -     INFO :   => 1s
2023-07-06 17:41:11.126 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.126 -     INFO :  IMPORT TEMPO DÉSACTIVÉ
2023-07-06 17:41:11.127 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.127 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.127 -     INFO :  RÉCUPÉRATION DES DONNÉES ECOWATT :
2023-07-06 17:41:11.127 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.141 -     INFO :   => Toutes les données sont déjà en cache
2023-07-06 17:41:11.142 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.142 -     INFO : ▌│█║▌║▌║                              Point de livraison : 04262                              ║▌║▌║█│▌
2023-07-06 17:41:11.142 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.142 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.142 -     INFO :  [04XXXXXXXX262] STATUT DE LA PASSERELLE :
2023-07-06 17:41:11.142 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.289 -     INFO :  status: True
2023-07-06 17:41:11.289 -     INFO :  information: None
2023-07-06 17:41:11.289 -     INFO :  nb_client: XXXX
2023-07-06 17:41:11.290 -     INFO :  waiting_estimation: 0.0s
2023-07-06 17:41:11.290 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.290 -     INFO :  [04XXXXXXX62] CHECK ACCOUNT STATUS :
2023-07-06 17:41:11.291 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.422 -     INFO :  valid: True
2023-07-06 17:41:11.422 -     INFO :  information: 
2023-07-06 17:41:11.422 -     INFO :  consent_expiration_date: 2026-07-06T16:07:45
2023-07-06 17:41:11.423 -     INFO :  call_number: 19
2023-07-06 17:41:11.423 -     INFO :  quota_reached: False
2023-07-06 17:41:11.423 -     INFO :  quota_limit: 500
2023-07-06 17:41:11.423 -     INFO :  quota_reset_at: 2023-07-06T23:59:59.999999
2023-07-06 17:41:11.424 -     INFO :  last_call: 2023-06-23T14:45:23.971230
2023-07-06 17:41:11.424 -     INFO :  ban: False
2023-07-06 17:41:11.454 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.455 -     INFO :  [0417XXXXXXXX62] RÉCUPÉRATION DU CONTRAT :
2023-07-06 17:41:11.455 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:11.465 -     INFO :   => Refresh Cache
2023-07-06 17:41:12.433 -     INFO :  segment: C5
2023-07-06 17:41:12.433 -     INFO :  subscribed_power: 6 kVA
2023-07-06 17:41:12.433 -     INFO :  last_activation_date: 2003-12-08+01:00
2023-07-06 17:41:12.433 -     INFO :  distribution_tariff: BTINFMU4
2023-07-06 17:41:12.433 -     INFO :  offpeak_hours: HC (23H30-7H30)
2023-07-06 17:41:12.433 -     INFO :  contract_status: SERVC
2023-07-06 17:41:12.433 -     INFO :  last_distribution_tariff_change_date: 2022-04-29+02:00
2023-07-06 17:41:12.434 -     INFO :  usage_point_id: 04XXXXXX262
2023-07-06 17:41:12.434 -     INFO :  usage_point_status: com
2023-07-06 17:41:12.434 -     INFO :  meter_type: AMM
2023-07-06 17:41:12.439 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:12.439 -     INFO :  [041XXXXXXXX62] RÉCUPÉRATION DES COORDONNÉES :
2023-07-06 17:41:12.439 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:12.442 -     INFO :   => Refresh Cache
2023-07-06 17:41:13.262 -     INFO :  street: 7XXXXXXXXXXU
2023-07-06 17:41:13.262 -     INFO :  locality: None
2023-07-06 17:41:13.262 -     INFO :  postal_code: XXXX
2023-07-06 17:41:13.262 -     INFO :  insee_code: 0XXXXX
2023-07-06 17:41:13.262 -     INFO :  city: XXXXXXXXXXX
2023-07-06 17:41:13.262 -     INFO :  country: France
2023-07-06 17:41:13.262 -     INFO :  geo_points: {}
2023-07-06 17:41:13.262 -     INFO :  usage_point_id: 04XXXXXXX262
2023-07-06 17:41:13.263 -     INFO :  usage_point_status: com
2023-07-06 17:41:13.263 -     INFO :  meter_type: AMM
2023-07-06 17:41:13.267 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:13.267 -     INFO :  [04XXXXXXX62] RÉCUPÉRATION DE LA CONSOMMATION JOURNALIÈRE :
2023-07-06 17:41:13.267 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:41:13.274 -     INFO :  Récupération des données : 2021-01-01 => 2023-07-08
2023-07-06 17:41:14.857 -     INFO :   => Chargement des données depuis MyElectricalData 2021-01-01 => 2023-07-08

heu …ma base infludb electricaldata est toujours vide … je dois attendre demain ?
.
il me met dans les log plein de :

2023-07-06 17:47:54.713 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:47:54.713 -     INFO :  [NONE] CHECK DE L'ÉTAT DE LA PASSERELLE.
2023-07-06 17:47:54.713 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 17:47:54.832 -     INFO :  status: True
2023-07-06 17:47:54.832 -     INFO :  information: None
2023-07-06 17:47:54.832 -     INFO :  nb_client: 2273
2023-07-06 17:47:54.832 -     INFO :  waiting_estimation: 0.0s
[06/Jul/2023:17:47:54 +0200] 200 192.168.0.31, 172.30.32.1(172.30.32.2) GET /gateway_status/ HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36)
[06/Jul/2023:17:47:54 +0200] 200 192.168.0.31, 172.30.32.1(172.30.32.2) GET /static/img/success.png HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36)
[06/Jul/2023:17:47:59 +0200] 200 192.168.0.31, 172.30.32.1(172.30.32.2) GET /lock_status HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36)
[06/Jul/2023:17:48:04 +0200] 200 192.168.0.31, 172.30.32.1(172.30.32.2) GET /lock_status HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36)
[06/Jul/2023:17:48:07 +0200] 200 192.168.0.31, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; 

ah , la il cause …
.

2023-07-06 18:07:43.551 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.551 -     INFO :  [041XXXXXXXX62] EXPORTATION DES DONNÉES "CONSUMPTION" DANS INFLUXDB
2023-07-06 18:07:43.551 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.568 -     INFO :   - 2023-07
Traceback (most recent call last):
  File "/app/models/jobs.py", line 228, in job_import_data
    ExportInfluxDB(self.influxdb_config, self.usage_point_config).daily()
  File "/app/models/export_influxdb.py", line 42, in daily
    app.INFLUXDB.write(
  File "/app/models/influxdb.py", line 176, in write
    self.write_api.write(bucket=self.bucket, org=self.org, record=record)
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 378, in write
    results = list(map(write_payload, payloads.items()))
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 376, in write_payload
    return self._post_write(_async_req, bucket, org, final_string, payload[0])
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/client/write_api.py", line 509, in _post_write
    return self._write_service.post_write(org=org, bucket=bucket, body=body, precision=precision,
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 60, in post_write
    (data) = self.post_write_with_http_info(org, bucket, body, **kwargs)  # noqa: E501
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/service/write_service.py", line 90, in post_write_with_http_info
    return self.api_client.call_api(
2023-07-06 18:07:43.573 -    ERROR : ═══════════════════════════════════════════════•°• :ERREUR: •°•════════════════════════════════════════════════
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 343, in call_api
    return self.__call_api(resource_path, method,
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 173, in __call_api
    response_data = self.request(
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/api_client.py", line 388, in request
    return self.rest_client.POST(url,
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 311, in POST
    return self.request("POST", url,
  File "/usr/local/lib/python3.9/site-packages/influxdb_client/_sync/rest.py", line 261, in request
    raise ApiException(http_resp=r)
influxdb_client.rest.ApiException: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Www-Authenticate': 'Basic realm="Hass.io InfluxDB"', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:07:43 GMT', 'Content-Length': '33'})
HTTP response body: {"error":"authorization failed"}
2023-07-06 18:07:43.574 -    ERROR : 
2023-07-06 18:07:43.574 -    ERROR :  Erreur lors de l'exportation des données dans InfluxDB
2023-07-06 18:07:43.574 -    ERROR :  (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Www-Authenticate': 'Basic realm="Hass.io InfluxDB"', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '3d70e29f-1c17-11ee-80ab-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:07:43 GMT', 'Content-Length': '33'})
HTTP response body: {"error":"authorization failed"}
2023-07-06 18:07:43.574 -    ERROR : 
2023-07-06 18:07:43.574 -    ERROR : ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
2023-07-06 18:07:43.574 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 18:07:43.574 -     INFO : ▌│█║▌║▌║       ___                                 _     _____  _         _       _      _  _  _       ║▌║▌║█│▌
2023-07-06 18:07:43.574 -     INFO : ▌│█║▌║▌║      |_ _| _ __ ___   _ __    ___   _ __ | |_  |  ___|(_) _ __  (_) ___ | |__  | || || |      ║▌║▌║█│▌
2023-07-06 18:07:43.574 -     INFO : ▌│█║▌║▌║       | | | '_ ` _ \ | '_ \  / _ \ | '__|| __| | |_   | || '_ \ | |/ __|| '_ \ | || || |      ║▌║▌║█│▌
2023-07-06 18:07:43.575 -     INFO : ▌│█║▌║▌║       | | | | | | | || |_) || (_) || |   | |_  |  _|  | || | | || |\__ \| | | ||_||_||_|      ║▌║▌║█│▌
2023-07-06 18:07:43.575 -     INFO : ▌│█║▌║▌║      |___||_| |_| |_|| .__/  \___/ |_|    \__| |_|    |_||_| |_||_||___/|_| |_|(_)(_)(_)      ║▌║▌║█│▌
2023-07-06 18:07:43.575 -     INFO : ▌│█║▌║▌║                      |_|                                                                      ║▌║▌║█│▌
2023-07-06 18:07:43.575 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

.
.

influxdb_client.rest.ApiException: (401)
Reason: Unauthorized

je viens de re re re re revérifier il y a toutes les autorisations
.
image
.
qu’est ce qu’il veux de plus ?

j’ai ca aussi :

HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': '15afb8f8-1c18-11ee-80de-0242ac1e2104', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Error': 'database not found: "myelectricaldata"', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': '15afb8f8-1c18-11ee-80de-0242ac1e2104', 'Date': 'Thu, 06 Jul 2023 16:13:46 GMT', 'Content-Length': '53'})
HTTP response body: {"error":"database not found: \"myelectricaldata\""}
2023-07-06 18:13:46.464 -    ERROR : 
2023-07-06 18:13:46.464 -    ERROR : 

.
bon , déjà ca c’est fait :
.


2023-07-06 21:19:09.798 -     INFO :  Connect to MQTT broker core-mosquitto:1883
2023-07-06 21:19:09.801 -     INFO :   => Connection success
2023-07-06 21:19:09.802 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 21:19:09.802 -     INFO :  Connect to InfluxDB 192.168.0.55:8086
2023-07-06 21:19:09.820 -     INFO :   => Connection success
2023-07-06 21:19:09.820 -     INFO :   => Méthode d'importation : SYNCHRONOUS
2023-07-06 21:19:09.821 -     INFO :   => Aucune durée de rétention de données détectée.

.
.
sauf que maintenant, il reste figé dans les journaux … et l’add on reste a l’arrêt, et n’a plus le bouton redémarrer , ni arrêt . Si je clique sur démarrer il se passe rien !! ni l’add on , ni les journaux …
.
.

.
.
.
pour tout faire repartir 1 fois je dois désinstaller et réinstaller , … je clique sur démarrer ca suis sont cour et ca se fige au même endroit …

---------------------------------------------------------------------------------------------------------------------------
SUITE …

mon problème de myelectricaldata « figé » s’est résolut en redémarrant toute l’installation ,… pas que home assistant … et c’est reparti …curieux …
.
mon problème restant se résumerait à un problème d’ « erreur 401 » … error:« authorization failed »
C’est pas gagné :face_with_raised_eyebrow:

---------------------------------------------------------------------------------------------------------------------------
.

SUITE …
alors de mieux en mieux , j’ai changé

donc :

 #method: synchronous
  method: asynchronous

.
j’ai plus d’erreur !! . . . . flushed

.

2023-07-07 01:00:00 1
2023-07-07 02:00:00 1
2023-07-07 03:00:00 1
2023-07-07 04:00:00 1
2023-07-07 05:00:00 1
2023-07-07 06:00:00 1
2023-07-07 07:00:00 1
2023-07-07 08:00:00 1
2023-07-07 09:00:00 1
2023-07-07 10:00:00 1
2023-07-07 11:00:00 1
2023-07-07 12:00:00 1
2023-07-07 13:00:00 1
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 -     INFO :  EXPORT TERMINÉ
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 -     INFO :  EXPORTATION INFLUXDB
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.510 -     INFO :  [041XXXXXXXXXXX2] EXPORTATION DES DONNÉES "CONSUMPTION" DANS INFLUXDB
2023-07-06 22:18:02.510 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.526 -     INFO :   - 2023-07
2023-07-06 22:18:02.537 -     INFO :   - 2023-06
2023-07-06 22:18:02.546 -     INFO :   - 2023-05
2023-07-06 22:18:02.553 -     INFO :   - 2023-04
2023-07-06 22:18:02.560 -     INFO :   - 2023-03
2023-07-06 22:18:02.585 -     INFO :   - 2023-02
2023-07-06 22:18:02.591 -     INFO :   - 2023-01
2023-07-06 22:18:02.607 -     INFO :   - 2022-12
2023-07-06 22:18:02.623 -     INFO :   - 2022-11
2023-07-06 22:18:02.636 -     INFO :   - 2022-10
2023-07-06 22:18:02.648 -     INFO :   - 2022-09
2023-07-06 22:18:02.654 -     INFO :   - 2022-08
2023-07-06 22:18:02.665 -     INFO :   - 2022-07
2023-07-06 22:18:02.673 -     INFO :   - 2022-06
2023-07-06 22:18:02.677 -     INFO :   - 2022-05
2023-07-06 22:18:02.685 -     INFO :   - 2022-04
2023-07-06 22:18:02.693 -     INFO :   - 2022-03
2023-07-06 22:18:02.700 -     INFO :   - 2022-02
2023-07-06 22:18:02.706 -     INFO :   - 2022-01
2023-07-06 22:18:02.712 -     INFO :   - 2021-12
2023-07-06 22:18:02.718 -     INFO :   - 2021-11
2023-07-06 22:18:02.724 -     INFO :   - 2021-10
2023-07-06 22:18:02.730 -     INFO :   - 2021-09
2023-07-06 22:18:02.736 -     INFO :   - 2021-08
2023-07-06 22:18:02.742 -     INFO :   - 2021-07
2023-07-06 22:18:02.748 -     INFO :   - 2021-06
2023-07-06 22:18:02.754 -     INFO :   - 2021-05
2023-07-06 22:18:02.760 -     INFO :   - 2021-04
2023-07-06 22:18:02.766 -     INFO :   - 2021-03
2023-07-06 22:18:02.773 -     INFO :   - 2021-02
2023-07-06 22:18:02.780 -     INFO :   - 2021-01
2023-07-06 22:18:02.787 -     INFO :   - 2020-12
2023-07-06 22:18:02.794 -     INFO :   - 2020-11
2023-07-06 22:18:02.801 -     INFO :   - 2020-10
2023-07-06 22:18:02.807 -     INFO :   - 2020-09
2023-07-06 22:18:02.813 -     INFO :   - 2020-08
2023-07-06 22:18:02.824 -     INFO :   - 2020-07
2023-07-06 22:18:02.830 -     INFO :   - 2020-06
2023-07-06 22:18:02.837 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:02.838 -     INFO :  [041XXXXXXXXX62] EXPORTATION DES DONNÉES "CONSUMPTION_DETAIL" DANS INFLUXDB
2023-07-06 22:18:02.838 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:03.901 -     INFO :   - 2021-06
2023-07-06 22:18:03.907 -     INFO :   - 2021-07
2023-07-06 22:18:04.215 -     INFO :   - 2021-08
2023-07-06 22:18:04.423 -     INFO :   - 2021-09
2023-07-06 22:18:04.619 -     INFO :   - 2021-10
2023-07-06 22:18:04.943 -     INFO :   - 2021-11
2023-07-06 22:18:05.418 -     INFO :   - 2021-12
2023-07-06 22:18:05.855 -     INFO :   - 2022-01
2023-07-06 22:18:06.405 -     INFO :   - 2022-02
2023-07-06 22:18:06.819 -     INFO :   - 2022-03
2023-07-06 22:18:07.249 -     INFO :   - 2022-04
2023-07-06 22:18:07.651 -     INFO :   - 2022-05
2023-07-06 22:18:08.111 -     INFO :   - 2022-06
2023-07-06 22:18:08.548 -     INFO :   - 2022-07
2023-07-06 22:18:09.223 -     INFO :   - 2022-08
2023-07-06 22:18:09.698 -     INFO :   - 2022-09
2023-07-06 22:18:10.213 -     INFO :   - 2022-10
2023-07-06 22:18:10.642 -     INFO :   - 2022-11
2023-07-06 22:18:11.039 -     INFO :   - 2022-12
2023-07-06 22:18:11.486 -     INFO :   - 2023-01
2023-07-06 22:18:12.062 -     INFO :   - 2023-02
2023-07-06 22:18:12.485 -     INFO :   - 2023-03
2023-07-06 22:18:12.916 -     INFO :   - 2023-04
2023-07-06 22:18:13.333 -     INFO :   - 2023-05
2023-07-06 22:18:13.779 -     INFO :   - 2023-06
2023-07-06 22:18:14.217 -     INFO :   - 2023-07
2023-07-06 22:18:14.404 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.404 -     INFO :  EXPORT TERMINÉ
2023-07-06 22:18:14.404 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.404 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║       ___                                 _     _____  _         _       _      _  _  _       ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║      |_ _| _ __ ___   _ __    ___   _ __ | |_  |  ___|(_) _ __  (_) ___ | |__  | || || |      ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║       | | | '_ ` _ \ | '_ \  / _ \ | '__|| __| | |_   | || '_ \ | |/ __|| '_ \ | || || |      ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║       | | | | | | | || |_) || (_) || |   | |_  |  _|  | || | | || |\__ \| | | ||_||_||_|      ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║      |___||_| |_| |_|| .__/  \___/ |_|    \__| |_|    |_||_| |_||_||___/|_| |_|(_)(_)(_)      ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ▌│█║▌║▌║                      |_|                                                                      ║▌║▌║█│▌
2023-07-06 22:18:14.405 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

C’EST COOL !!!… : smiley

.
mais ma base de données influxdb myelectricaldata.autogen reste désespéramment vide …je sais pas où il les a mises ses données !!!
face_with_spiral_eyes

Cool! Bon là j’ai atteint 100% de mes compétences sur le sujet car je n’utilise pas influxdb… dsl.
Et tu as revérifié un peu plus tard ?
Maintenant que tout est ok, poste dans la discussion générale de Myelectricaldata

Ok … merci encore du coup main … je posterais ici ce que je trouve …
Mais comment fais tu pour garder tes monitorings sur des longues periodes … 1 mois … 1 ans ?
Ce qui est mon but … en fait

Hello,
Tu as déjà bq d’infos dans les attributs de ton sensor:


En ce qui me concerne cela me suffit…(trop de détails tuent les détails ^^=

Oui, les sensors me suffisent , c’est que les données sont effacée au bout de quelques temps , ( j’ai dû mettre 7 jours.). je voudrais les garder sur plusieurs années ( certaines , pas toutes) pour pouvoir faire des comparaisons … genre moyenne sur la semaine …
J’ai lu quelque par que si on voulait garder les infos longtemps, il fallait installer une base de donnée en parallèle qui elle serait pleine comme un œuf pour éviter d’alourdir la Bdd de home assistant , ce qui le ralentira de plus en plus …

suite …

ca avance , le problème venait de mon /config/configuration.yaml

il y avait

 username: !secret influxdb_user
password: !secret influxdb_password

.
je sais plus pour quelle install c’ etait …
J’ai commenté et modifié le user et mdp :

influxdb:
  host: a0d7b954-influxdb
  port: 8086
  database: electricaldata
  username: electricaldata
  password: 1234
 # username: !secret influxdb_user
 # password: !secret influxdb_password
  max_retries: 3
  default_measurement: state

et bingo !!

Alors j’ai bien une structure dans influx db , mais vide …


.
.

your query or command is syntactically correct but returned no results !!??
.
.
comment cà no results ??
.
dans le tuto de McFly
.
Installer InfluxDB dans Home Assistant et booster votre base de donnée

Une fois redémarré, allez sur InfluxDB, puis sur Explore, s’il y a des sensors dans votre Home 
Assistant, vous devriez voir apparaître plusieurs unités de mesure après avoir cliqué sur votre base de données
 créée auparavant. Si vous n’avez pas de sensor créés, reportez vous à l’article suivant.

Pfuiiiiff , bon ben , c’est dit , quand faut y allait !! sob

Bonjour à tous,
si cela continue je vais pété une durite je ne parviens pas à configurer correctement mon fichier MED.yaml ci dessous une copie

cycle: 14400
debug: false
home_assistant:
  card_myenedis: true
  discovery_prefix: homeassistant
  enable: true
influxdb:
  bucket: myelectricaldata/autogen
  enable: true
  hostname: a0d7b954-influxdb
  method: synchronous
  org: "-"
  port: 8086
  token: myelectricaldata:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  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:
  client_id: myelectricaldata
  enable: true
  hostname: core-mosquitto
  port: 1883
  username: mqtt
  password: xxxxxxxxxxxxxxxxxxxxxx
  prefix: myelectricaldata
  retain: true
  qos: 0
myelectricaldata:
  "43xxxxxxxxxxxxx660":
    activation_date_daily: ""
    activation_date_detail: ""
    cache: true
    consumption: true
    consumption_detail: true
    consumption_detail_max_date: 2021-01-01
    consumption_max_date: 2021-01-01
    consumption_price_base: "0.1415"
    consumption_price_hc: "0.0984"
    consumption_price_hp: "0.1315"
    enable: true
    name: Maison
    offpeak_hours_0: 01H00-07H30;12H30-14H00
    offpeak_hours_1: 01H00-07H30;12H30-14H00
    offpeak_hours_2: 01H00-07H30;12H30-14H00
    offpeak_hours_3: 01H00-07H30;12H30-14H00
    offpeak_hours_4: 01H00-07H30;12H30-14H00
    offpeak_hours_5: 01H00-07H30;12H30-14H00
    offpeak_hours_6: 01H00-07H30;12H30-14H00
    plan: HC/HP
    production: false
    production_detail: false
    production_detail_max_date: ""
    production_max_date: ""
    production_price: 0
    refresh_addresse: true
    refresh_contract: true
    token: EXAwBj9xxxxxxxxxxxxxxxxxxxxxxxxxx76-JE=

pouvez vous me donner un coup de main
je suis demandeur mais si vous avez besoin de plus de renseignements n’hésitez pas je suis à votre écoute
en vous remerciant d’avance

bonjour, je peux essayer de t’aider , en attendand les autres … je suis loint d’etre un expert !!
deja sur le mien j’utilise pas influxdb , … il est sur false …ca limit les erreurs …

cycle: 14400
debug: true
home_assistant:
  discovery_prefix: homeassistant
  enable: true



influxdb:
#  bucket: myelectricaldata/autogen
  bucket: homeassistant/autogen
  enable: false
  hostname: 192.168.X.XX
  #method: synchronous
  method: asynchronous
  org: "-"
  port: 8086
  token: didier:8XXX
#  token: myelectricaldata:1234
  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:
  client_id: myelectricaldata
  enable: true
  hostname: core-mosquitto
  password: mqtt2
  port: 1883
  prefix: myelectricaldata
  qos: 0
  retain: true
  username: mqtt

myelectricaldata:
  041XXXXXXX62:
    activation_date_daily: true
    activation_date_detail: true
    cache: true
    consumption: true
    consumption_detail: true
    consumption_detail_max_date: '2021-01-01'
    consumption_max_date: '2021-01-01'
    consumption_price_base: '0.2276'
    consumption_price_hc: '0.1828'
    consumption_price_hp: '0.2460'
    enable: true
    name: maison
    offpeak_hours_0: 23H30-7H30
    offpeak_hours_1: 23H30-7H30
    offpeak_hours_2: 23H30-7H30
    offpeak_hours_3: 23H30-7H30
    offpeak_hours_4: 23H30-7H30
    offpeak_hours_5: 23H30-7H30
    offpeak_hours_6: 23H30-7H30
    plan: HC/HP
    production: false
    production_detail: false
    production_detail_max_date: ''
    production_max_date: ''
    production_price: 0
    refresh_addresse: true
    refresh_contract: true
    token: iLTWQ0ryQYfcBXXXXXXXXXXVzkKHS7mZUxThLf1BU=

salut Didier
ok je viens de le passer en fasle

encore le message

[14:29:52] FATAL: Config file has an invalid yaml format. Please check the file in /config/myelectricaldata/config.yaml. Errors list above. You can check yaml validity with the online tool yamllint.com

je suis perdu depuis que tout est passé sur cette nouvelle application je n’y arrive pas et cela me temps beaucoup de temps comme d’autres personnes

Tu dois avoir une erreur dans tes espaces , … pour verifier mes fichiers, j utilise :
https://www.yamllint.com/

moi aussi mais toujours une erreur

[14:34:28] FATAL: The app has crashed. Are you sure you entered the correct config options?

tes prix sont avec des " au lieu de ’ et tes heures met les en simple pour commencer …

   consumption_price_base: "0.1415"
    consumption_price_hc: "0.0984"
    consumption_price_hp: "0.1315"

justement

    consumption_price_base: '0.2276'
    consumption_price_hc: '0.1828'

et tes heures met les en simple pour commencer …

 23H30-7H30

j’ai un doute sur le " : "

  offpeak_hours_0: 01H00-07H30;12H30-14H00
    offpeak_hours_1: 01H00-07H30;12H30-14H00
    offpeak_hours_2: 01H00-07H30;12H30-14H00
    offpeak_hours_3: 01H00-07H30;12H30-14H00
    offpeak_hours_4: 01H00-07H30;12H30-14H00
    offpeak_hours_5: 01H00-07H30;12H30-14H00
    offpeak_hours_6: 01H00-07H30;12H30-14H00

voilà comment ils sont mis

autand pour moi j’étais remo,nter trop haut dans le post …

[14:42:30] FATAL: The app has crashed. Are you sure you entered the correct config options?

toujours ce message

heu , c’est plus la même erreur là !! ??

a force de voir des erreurs elle y ressemble

voilà ce qui se dit quand je lance MED

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.9.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.1  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.10.5
 Home Assistant Supervisor: 2023.10.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/myelectricaldata/config.yaml'
TZ='Europe/Paris'
mqtt_autodiscover='true'
verbose='true'
/etc/cont-init.d/01-custom_script.sh: executing
[14:46:15] INFO: Execute /config/addons_autoscripts/enedisgateway2mqtt.sh if existing
[14:46:15] INFO: ... no script found
/etc/cont-init.d/32-nginx_ingress.sh: executing
/etc/cont-init.d/91-mqtt_autodiscover.sh: executing
/etc/cont-init.d/00-global_var.sh: executing
CONFIG_LOCATION='/config/myelectricaldata/config.yaml'
TZ='Europe/Paris'
mqtt_autodiscover='true'
verbose='true'
/etc/cont-init.d/01-custom_script.sh: executing
[14:46:15] INFO: Execute /config/addons_autoscripts/enedisgateway2mqtt.sh if existing
[14:46:15] INFO: ... no script found
/etc/cont-init.d/32-nginx_ingress.sh: executing
/etc/cont-init.d/91-mqtt_autodiscover.sh: executing
[14:46:16] INFO: mqtt_autodiscover is defined in options, attempting autodiscovery...
[14:46:16] INFO: ... MQTT service found, fetching server detail (you can enter those manually in your config file) ...
MQTT_HOST=core-mosquitto
MQTT_PORT=1883
MQTT_SSL=false
MQTT_USERNAME=addons
MQTT_PASSWORD=reiphu5gohkiezi9iechekah8eatohth2oow0xo4aen7Ohquoowei6theete0joY
/etc/cont-init.d/99-run.sh: executing
creating symlink
[14:46:18] INFO: Using database file found in /config/myelectricaldata
[14:46:18] INFO: Using config file found in /config/myelectricaldata/config.yaml
/config/myelectricaldata/config.yaml
  1:13      error    wrong new line character: expected \n  (new-lines)
  63:56     error    no new line character at the end of file  (new-line-at-end-of-file)

[14:46:19] FATAL: Config file has an invalid yaml format. Please check the file in /config/myelectricaldata/config.yaml. Errors list above. You can check yaml validity with the online tool yamllint.com

je suis perdu