hassio-addons / addon-influxdb

InfluxDB - Home Assistant Community Add-ons
https://addons.community
MIT License
154 stars 48 forks source link

using labels to decide what entities to include? #343

Closed strelniece closed 2 months ago

strelniece commented 2 months ago

A question/suggestion.

But are there any thoughts about using labels as filters for what entities to include?

Just feels so easy to just, for example, add the label influxdb to an entity and not having to hassle with include, exclude combos to get it right.

tjorim commented 2 months ago

Not related to this add-on. The influxdb integration pushes the data.

strelniece commented 1 month ago

Sorry for late reply, but just want to check I managed to explain properly. But I think it would make it much easier to filter out what entities to write to influxDB if lables could be used in include/exclude.

So if I add the label "to_influxDB" to the entities I want to write to influxDB, and write the config like:

influxdb:
  include:
    domains:
      - alarm_control_panel
      - light
     label:
     - to_influxdb

Yes, I have no clue how the lablels are handed in the background by HASS, so maybe it's no possible to use labels in include/exclude, but it would be very handy.

tjorim commented 1 month ago

That is the config you wrote in Home Assistant, it's not config for this add-on. Integration documentation (and the supported options) can be found here: https://www.home-assistant.io/integrations/influxdb/