Add possibility to exclude all or include some attributes only for InfluxDB integration

InfluxDB integration has “include” and “exclude” options for entities, but only “ignore_attributes” option for attributes. It doesn’t allow neither to exclude all of the attributes from reporting to InfluxDB nor to include only the important attributes to reporting the same way as with entities.

It is inconsistent behaviour unlike, for example, “history” or “recorder” integration.

Please, add “include_attributes” and “ignore_attributes:all” options.
It is very critical especially for influxdb integration since configuration can have hundreds of string attributes:

  1. there is no standard way to collect the list of all existed attributes,
  2. the list of attributes is not fixed even for fixed list of entities,
  3. attributes report huge amount of data what increases influx database very rapidly.

This would be hugely appreciated!

As spiritus stated, the attributes make up a huge part of the date stored in influxdb but there is not much use in collecting them. However, there are so minor cases where it is useful like battery voltages.

Alternatively, is there a way to completely turn off sending attributes values to influx? I wouldn’t mind creating a template sensor for the few attributes I am actually interested in.

Or a an alternative to enhance templating to create complex ‘sensors’ with attributes. In which case the templating filters the data to be stored in the statistics.