mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-08 12:08:58 +00:00
2.5 KiB
2.5 KiB
layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release |
---|---|---|---|---|---|---|---|---|---|---|
page | InfluxDB | Record events in InfluxDB. | 2015-12-06 13:08 | true | false | true | true | influxdb.png | History | 0.9 |
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.
The default InfluxDB configuration doesn't enforce authentication. If you have installed InfluxDB on the same host where Home Assistant is running and haven't made any configuration changes, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
influxdb:
You will still need to create a database named home_assistant
via InfluxDB's web interface or command line. For instructions how to create a database check the InfluxDB documentation relevant to the version you have installed.
Configuration variables:
- host (Optional): IP address of your database host, eg. 192.168.1.10. Defaults to
localhost
. - port (Optional): Port to use. Defaults to 8086.
- username (Optional): The username of the database user.
- password (Optional): The password for the database user account.
- database (Optional): Name of the database to use. Defaults to
home_assistant
. The database must already exist. - ssl (Optional): Use https instead of http to connect. Defaults to false.
- verify_ssl (Optional): Verify SSL certificate for https request. Defaults to false.
- default_measurement (Optional): Measurement name to use when an entity doesn't have a unit. Defaults to entity id.
- blacklist (Optional): List of entities not logged to InfluxDB.
- whitelist (Optional): List of the entities (only) that will be logged to InfluxDB. If not set, all entities will be logged. Values set by the blacklist option will prevail.
- tags (Optional): Tags to mark the data.
{% linkable_title Examples %}
{% linkable_title Full configuration %}
influxdb:
host: 192.168.1.190
port: 20000
database: DB_TO_STORE_EVENTS
username: MY_USERNAME
password: MY_PASSWORD
ssl: true
verify_ssl: true
default_measurement: state
blacklist:
- entity.id1
- entity.id2
whitelist:
- entity.id3
- entity.id4
tags:
instance: prod
source: hass