Pas de données dans Influx db

Bonjour,
je n’arrive pas à récupérer mes données dans Influxdb. J’ai essayé de lire les tutos mais je n’arrive pas à trouver mon erreur.
Ma configuration de l’addon:

certfile: fullchain.pem
envvars: []
keyfile: privkey.pem
reporting: true
ssl: false

Mon config.yaml

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

http:
  base_url: papaou.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  
influxdb:
  host: a0d7b954_influxdb
  port: 8086
  database: Test
  username: !secret influxdb_user
  password: !secret influxdb_password
  max_retries: 3
  default_measurement: state

Le log de home assistant avec les erreurs qu’il annonce

Logger: homeassistant.components.influxdb
Source: components/influxdb/__init__.py:490
Integration: InfluxDB (documentation, issues)
First occurred: 18 mars 2023 à 18:50:15 (1299 occurrences)
Last logged: 17:49:06

Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954_influxdb', port=8086): Max retries exceeded with url: /write?db=Test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a1956f0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954_influxdb', port=8086): Max retries exceeded with url: /write?db=Test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89a442e0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954_influxdb', port=8086): Max retries exceeded with url: /write?db=Test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89adc4c0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954_influxdb', port=8086): Max retries exceeded with url: /write?db=Test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88080970>: Failed to establish a new connection: [Errno -2] Name does not resolve'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
Cannot connect to InfluxDB due to 'HTTPConnectionPool(host='a0d7b954_influxdb', port=8086): Max retries exceeded with url: /write?db=Test (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a177b50>: Failed to establish a new connection: [Errno -2] Name does not resolve'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.

je ne sais pas comment vérifier s’il y concordance dans les adresses ip de HA et d’influxdb.
Il me semble que 3 sensors on été récupérés mais je n’ai pas de valeurs:


Merci pour votre aide.
Bon dimance

Ma configuration

## System Information

version | core-2023.3.4
-- | --
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.10.10
os_name | Linux
os_version | 5.15.84-v8
arch | aarch64
timezone | Europe/Paris
config_dir | /config

<details><summary>Home Assistant Community Store</summary>

GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
GitHub API Calls Remaining | 5000
Installed Version | 1.31.0
Stage | running
Available Repositories | 1247
Downloaded Repositories | 3

</details>

<details><summary>Home Assistant Cloud</summary>

logged_in | false
-- | --
can_reach_cert_server | ok
can_reach_cloud_auth | ok
can_reach_cloud | ok

</details>

<details><summary>Home Assistant Supervisor</summary>

host_os | Home Assistant OS 9.5
-- | --
update_channel | stable
supervisor_version | supervisor-2023.03.1
agent_version | 1.4.1
docker_version | 20.10.22
disk_total | 116.5 GB
disk_used | 4.6 GB
healthy | true
supported | true
board | rpi4-64
supervisor_api | ok
version_api | ok
installed_addons | File editor (5.5.0), Terminal & SSH (9.6.1), Samba share (10.0.0), Mosquitto broker (6.1.3), Duck DNS (1.15.0), InfluxDB (4.5.0), Grafana (8.2.0)

</details>

<details><summary>Dashboards</summary>

dashboards | 2
-- | --
resources | 0
views | 2
mode | storage

</details>

<details><summary>Recorder</summary>

oldest_recorder_run | 14 mars 2023 à 16:01
-- | --
current_recorder_run | 18 mars 2023 à 18:48
estimated_db_size | 95.90 MiB
database_engine | sqlite
database_version | 3.38.5

</details>

Bonjour @papaou

Dans cette ligne, remplace le « _ » par un tiret « - ».
host: a0d7b954_influxdb

Pense aussi dès le départ à exclure les valeurs que tu ne souhaites pas stocker :wink:

  exclude:
    entity_globs:
      - sensor.*battery_level*
      - sensor.mpu6050*
      - sensor.freebox*
      - sensor.anniversary*
      - sensor.esp*_wifi
      - sensor.consumption*
      - sensor.lightlevel*
      - sensor.pollens_risks*
      - sensor.ultrasonic_sensor
      - sensor.water_wc_bas_41_temperature
      - sensor.water_wc_haut_42_temperature
      - sensor.yahoofinance_stf_p

Bob

Merci @Bob pour ton retour. Je crois que je n’y comprendrais jamais rien à HA :sob: dans la barre d’adresse j’avais bien un _.

Oui je sais bien, c’est juste que j’ai comparé ton code au mien et comme j’ai regardé aujourd’hui ce tuto, c’était tout frais dans ma tête :slight_smile:

1 « J'aime »

Et ça fonctionne maintenant @papaou ?
Bob

Oui merci ça marche. Excuse moi. Les données arrivent. Un grand merci.

1 « J'aime »