Influxdb tag measurements with area?

I have HA configured to send a bunch of sensor data to influxdb. This is working fairly well, but the data is hard to work with because it isn’t tagged by entity area. I tried to add it with tags_attributes like this:

influxdb:
  ...
  measurement_attr: entity_id
  tags_attributes:
    - area
  include:
    entity_globs:
      - "sensor.lumi_*_pressure"
      - "sensor.lumi_*_temperature"

But this doesn’t work - I suspect because there’s no area attribute in the underlying event to load into a tag.

There’s an old thread on this at [1] but it looks like no solution was ever found. Is there a way to accomplish this?

Ross

[1] - InfluxDB Grafana and tags_attributes

3 Likes

I ended up not bothering with the area as ultimately I wasn’t that interested in historical data by area but by device type. It would be interesting to get a solution though.

2 Likes