Access (electricity) data in a influx database

Hello,
I have the data of the individual electricity meters in an Influx database (outside from my HA).
Can I access this data in HA to visualize the energy flows?
Thank you.

This is possible. See: https://www.home-assistant.io/integrations/influxdb/#sensor

Please make sure you take note of the information in the “Important” box or you will end up writing all your states to your InfluxDB database.

configuration.yaml

influxdb:
  exclude:             # this is important!
    entity_globs: "*"  

sensors.yaml

- platform: influxdb
  queries:
    - name: < your sensor name here >
      where: < your query here >
      measurement: < your measurement here >
1 Like

Thanks for the hint, I’ll give it a try.