i just installed influxdb and grafana. so far so good, but how do i tell home assistant which entities to send to influxdb, and how do i tell influxdb where to store it’s database? there are entities that i don’t want to store long-term because that would make no sense, and i want the database to be stored on my NAS so that i can access it from my other devices.
Look at the exclusion and inclusion part. How have you installed it?
The integration as suggested by @fleskefjes works perfectly for me. My actual configuration is below. It is important to note that I am running influxdb on a separate server.
influxdb:
api_version: 2
ssl: false
host: 192.168.86.XX
port: 8086
token: !secret influxdb_api_token
organization: !secret influxdb_organizationid
bucket: homeassistant
precision: s
max_retries: 3
tags:
source: HA
tags_attributes:
- friendly_name
default_measurement: units
exclude:
entities:
- zone.home
domains:
- persistent_notification
- person
include:
domains:
- sensor
My issue is that I cannot configure grafana correctly within HA.
I can connect to influxdb using the host URL and port used in the influxdb configuration. I can use the influxdb web page to inspect the values stored, and plot graphs of the stored values. I use a simple UID and password as prompted in the UI to login.
I’ve tried using the same UID and password in the grafana setup.
All these settings are defaulted, except for the HTTP Method, which I read somewhere should be GET. I get the same result when I set it to POST.
When I click on Save & Test I gat the following error:
InfluxDB returned error: error reading influxDB
Anyone have sugegstions?