JTech
March 23, 2023, 10:58pm
1
I’ve recently setup a influxDB on my NAS. I’m sending data from HA to influx, but I’m not getting the filtering to work, it includes the entire domain sensor, is there something Iäm missing in how to apply the entity_glob:
This is my config-section:
influxdb:
api_version: 2
host: <myIP>
port: 8086
ssl: false
token: !secret influxdb_token
organization: <myORG>
bucket: homeassistant_bucket
default_measurement: units
tags:
source: HA
tags_attributes:
- friendly_name
include:
domains:
- sensor
entity_globs:
- sensor.*temp*
- sensor.*phase*
- sensor.*import*
- sensor.*export*
- sensor.motorvarmare*
ignore_attributes:
- age_coverage_ratio
- icon
- state_class
- device_class
tom_l
March 24, 2023, 1:58am
2
because that’s what you told it to do:
https://www.home-assistant.io/integrations/influxdb/#configure-filter
I agree that the explanation is poorly written. replace “Otherwise” with “Or”.
JTech
March 24, 2023, 8:18pm
3
I thought the filters acted row by row and filtered further, but now I realize that it takes all the sensors, so my entity_globs does nothing.
Now I’m testing by only using the entity_globs part. It seems to be working. But currently not on home network so cant verify in influx yet.
Is there a way to limit all the influx meta-data like users etc etc?
tom_l
March 24, 2023, 8:22pm
4
You can disable the InfluxDB internal database (recommended by InfluxDB ).
To do so, in the Influxdb addon configuration add this:
envvars:
- name: INFLUXDB_MONITOR_STORE_ENABLED
value: "false"
JTech
March 26, 2023, 6:19pm
5
Aha, I run it in docker on my NAS but I will add this there!