InfluxDB problems setting up

Hello,

I am receiving this error while trying to use InfluxDB on Hassio (using the Add-on Store):

Invalid config
The following integrations and platforms could not be set up:

influxdb
Please check your config.

This is in my config:

influxdb:
#   host: a0d7b954-influxdb
  host: localhost
  port: 8086
  database: homeassistant
  username: USERNAME
  password: PASSWORD
  max_retries: 3
  default_measurement: state

Can someone help me with setting it up properly?

If you used the addon:

host: a0d7b954-influxdb

Well, if everything was that easy… Thanks, the error is gone now!
The installation guide says:

You should now see the data flowing into InfluxDB by visiting the web-interface and using the Data Explorer.

However, everything is empty. Do you know how to get the data?

Make sure you relly aren’t getting any data by reading this post: How to check InfluxDB is collecting HA data

If you really have no data, watch frenk’s video two posts below that ^ one and make sure you have not missed anything.

Thanks. It is working now!