Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95365

Problem with remote InfluxDB sensor

$
0
0

@mjarva wrote:

Hello,

I have InfluxDB Add-on, and few InluxDB sensors, which work correctly.

I also have InfluxDB running on another machine, and would like to create sensors querying remote InfluxDB
Database has 180 day retention policy, and DB is shown as “ruuvi.180d” in Chronograf.
When adding this to my configuration:

sensors:
  - platform: influxdb
    host: 192.168.0.14
    username: ruuviuser
    password: password
    queries:
      -  name: query_test
         unit_of_measurement: V
         value_template: '{{ value | round(1) }}'
         group_function: mean
         where: '"name" = ''tag1'''
         measurement: '"ruuvi_measurements"'
         field: batteryVoltage
         database: ruuvi

Query itself is ok, but when adding it to HA configuration, I get this error to log:

“Database host is not accessible due to ‘retention policy not found: autogen’, please check your entries in the configuration file and that the database exists and is READ/WRITE”

Is it possible to use InluxDB sensor using database which does not use autogen policy?
Tried to use “ruuvi.180d” as database name in HA config, did not help.

-Mikko

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>