Hi,
I would like to use InfluxDB integration only to populate the sensors using data from the database.
My configuration:
influxdb:
exclude:
entity_globs: "*"
sensor:
- platform: influxdb
api_version: 2
ssl: true
host: xx
port: xx
token: xx
organization: xx
bucket: xx
queries_flux:
- name: Temperature
query: >
filter(fn: (r) =>
r._measurement == "xx" and
r.station_id == "xx" and
r._field == "temperature")
|> last()
|> keep(columns: ["_value"])
unit_of_measurement: °C
value_template: "{{ value | round(2) }}"
However, I can see in the logs that the integration is constantly trying to connect to local InfluxDB instance to write data, even though all entites are excluded. Moreover, I am using read only token.
Is it possible to disable the write functionality of the integration and use only the queries to populate sensors states?