Keine Einheiten in INFLUXDB

Habe influxdb nach Simons Anleitung installiert bekomme aber
bei Measurements & Tags nichts angezeigt.
Siehe Bild.

Diese Fehlermeldung bekomme ich:
Logger: homeassistant.components.influxdb
Source: components/influxdb/init.py:487
Integration: InfluxDB (documentation, issues)
First occurred: 15:14:54 (3 occurrences)
Last logged: 15:16:54

InfluxDB database is not accessible due to ‘404: {“error”:“database not found: "home_assistant"”}’. Please check that the database, username and password are correct and that the specified user has the correct permissions set. Retrying in 60 seconds.

Hallo,

irgendetwas scheint in deiner Konfiguration nicht zu stimmen. Stimmt der Name deiner Datenbank, der Username und das Passwort? Leider kenne ich deine Umgebung und deine Konfiguration nicht.

Wie hast du die InfluxDB eingerichtet? Nutzt du das Addon oder hast du eine separate Installation, die du über die configuration.yaml integrieren möchtest?

Bei mir läuft eine separate Installation von InfluxDB v2.7. Meine Konfiguration in der configuration.yaml sieht so aus:

influxdb:
  api_version: 2
  ssl: false
  host: INFLUX-IP
  port: INFLUX-PORT
  token: INFLUX-API-TOKEN
  organization: ORGANISATION-ID
  bucket: BUCKET-NAME
  tags:
    source: HA
  tags_attributes:
    - friendly_name
    - device_class
  default_measurement: units
  include:
    domains:
      - sensor

Das funktionniert allerdings nur mit separater InfluxDB in Version 2. Version 1 funktioniert anders und muss dementsprechend anders konfiguriert werden. Und die Konfiguration des Addons läuft auch nochmal komplett anders.

1 „Gefällt mir“

Ich habe das Addon installiert.
Benutzername und Passwort sind korrekt.
Name der Datenbank ist auch gleich.

influxdb:
  username: xxx
  password: xxx
  tags:
    source: homeassistant
  tags_attributes:
    - friendly_name
  default_measurement: state
  exclude:
    entities:
      - zone.home
    domains:
      - persistent_notification
      - person
  include:
    domains:
      - sensor
      - binary_sensor
      - sun
      - light
      - cover
    entities:
      - weather.home

HA läuft auf einem mini-PC.

Im Screenshot fragst du home-assistant.xxx ab. In der Konfiguration hast du source: homeassistant hinterlegt.

Ändere deine Query mal auf homeassistant.xxx oder anders herum deine Konfiguration auf source: homeassistant

Das Minus habe ich schon herausgenommen.

Irgendwo hast du noch home_assistant hinterlegt. Hab leider gerade keine Addon-Installation im Zugriff um das auszuprobieren.

error”:“database not found: “home_assistant””

Lässt sich das irgendwo finden?
In Influxdb steht nichts mehr davon.

Habe es jetzt einfach in “home_assistant” umbenannt
und jetzt geht es.