I have homeassistent running as dockerimage with version tag 2021.12.8 running an influxdb v2 (influxdb:2.1.1) in another docker container. Both itself work fine with many components, grafana, telegraf etc.
I cannot get homeassistent to even accept the configuration. It does not even try to connect.
I have commented out all config params that are optional (but would be necessary for the real connection). Of course I have already tried all combinations.
The error message I get is:
Invalid config for [influxdb]: some but not all values in the same group of inclusion ‘v2_authentication’ @ data[‘influxdb’][<v2_authentication>]. Got None. (See /config/configuration.yaml, line 17).
Here is my config. Line 17 is the first line of this snippet from configuration.yaml.
If i remove the whole influxdb: section, everything works fine
influxdb:
api_version: 2
# host: 192.168.1.10
# ssl: false
# port: 8086
token: ## token here ##
organisation: ## organisation token here here ##
bucket: homeassistant
# domains: []
I’ve run into a similar problem, but have no solution I’m afraid. In my case I’m able to run InfluxDB locally in Home Assistant itself, but when I try to connect to an external InfluxDB (v2) I get the same error.
My current configuration attempt is:
influxdb:
# Disabled (but working) local config:
# host: [Home Assistant node's own IP]
# port: 8086
# database: homeassistant
# username: homeassistant
# password: [password]
# Non-working external configuration
api_version: 2
ssl: false
host: [IP address of the server on my LAN]
port: [port]
token: [token]
organisation: [16-character code]
bucket: homeassistant
precision: s
max_retries: 3
default_measurement: state
tags:
source: HA
It’s the config of the v2 api that is not working.
In want too run influxdb v2 as i have many other metrics there and do not want an extra influxdb v1 on my small home pc.
influxdb v1 would work of course. With influxdb v2 I can connect grafana via v2 and even v1 api (InfluxQL) but for the influxdb intake there seems to be no v1 api
After hours of researching this problem, and already having seen this post, it suddenly hit me: @koying is not a grammar Nazi, he actually points out the problem ! Thank you so much Chris
I have installed influxdb 2_2.7.4 on an old Windows Surface 3 running Linux Mint. I have also installed mariadb on the same machine and this is running very well. The difference is that mariadb uses the Surface 250Gb SSD and influxdb uses a USB 1Tb SSD.
I have installed grafana on the HA x64 box running HAOS using the HA add-on capability.
I cannot get grafana to talk to influxdb.
I can login to influxdb from both the Surface running influxdb and a Windows machine on the same network.
I know that the HA influxdb configuration (below) is correct because I can inspect the influxdb data from a remote machine successfully by logging in as above.
I know I am doing something incorrectly, but I am neither skilled or experienced enough to know what I need to change. So all help is greatly appreciated.