home-assistant.github.io/source/_components/influxdb.markdown
2015-12-23 17:17:15 -07:00

1.1 KiB

layout title description date sidebar comments sharing footer logo ha_category
component InfluxDB Record events in InfluxDB. 2015-12-06 13:08 true false true true influxdb.png History

The influxdb component makes it possible to transfer all state changes to an external InfluxDB database. For more details, see the blog post on InfluxDB.

To use the influxdb component in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
influxdb:
  host: DB_HOST_IP_ADDRESS
  port: 20000
  database: DB_TO_STORE_EVENTS
  username: MY_USERNAME
  password: MY_PASSWORD

Configuration variables:

  • host (Required): IP address of your database host, eg. http://192.168.1.10.
  • port (Optional): Port to use. Defaults to 8086.
  • database (Optional): Name of the database to use. Defaults to home_assistant. The database must already exist.
  • username (Optional): The username of the database user.
  • password (Optional): The password for the database user account.