InfluxDB Configuration error, expected dictionary value

I’ve configured the addon following the steps given in the InfluxDB readme. When trying to configure the component in Hass I keep getting the following errors:

Invalid config for [influxdb]: expected a dictionary for dictionary value @ data['influxdb']['include']. Got [OrderedDict([('entities', ['binary_sensor.koelsignaal', 'binary_sensor.compressor', 'binary_sensor.verdamperventilator', 'sensor.ontdooiing', 'binary_sensor.celdeur', 'binary_sensor.algemene_koelstoring'])])]. (See /config/configuration.yaml, line 54). Please check the docs at https://home-assistant.io/integrations/influxdb/

I don’t see anything wrong in my config, this is my config:

 influxdb:
   host: a0d7b954-influxdb
   port: 8086
   database: pfio_mon
   username: xxx
   password: xxx
   max_retries: 3
   include:
       entities:
         - binary_sensor.koelsignaal
         - binary_sensor.compressor
         - binary_sensor.verdamperventilator
         - sensor.ontdooiing
         - binary_sensor.celdeur
         - binary_sensor.algemene_koelstoring
   default_measurement: state
   tags: 
     source: hass

I can’t reproduce your isse. I installed the influx db addon on my test machine, copied your configuration 1:1, restarted, but I don’t see this error.

The only thing I could imagine would be wrong indentation. Try like this

influxdb:
  host: a0d7b954-influxdb
  port: 8086
  database: pfio_mon
  username: xxx
  password: xxx
  max_retries: 3
  include:
    entities:
      - binary_sensor.koelsignaal
      - binary_sensor.compressor
      - binary_sensor.verdamperventilator
      - sensor.ontdooiing
      - binary_sensor.celdeur
      - binary_sensor.algemene_koelstoring
  default_measurement: state
  tags: 
    source: hass
1 Like

After trying numerous different combinations and indentations, this one did the trick. I don’t really see whats the real difference, but thank you very much!