I assume that the InfluxDB is already running.
Create a bucket and create an API token:
- load data, buckets, create bucket.
- API Tokens, Generate API Tokens, Custom API token. A ReadOnly token for the new bucket is sufficient here.
Create database connection in Home Assistant.
We store the InfluxDB-Config in a separate .yaml file. This keeps the configuration.yaml somewhat clearer.
We add the following to configuration.yaml:
influxdb: !include influxdb.yaml