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

Homeassistant + Influxdb: is it possible to select a different Retention policy for a couple of sensors?

$
0
0

Hi to all,
I have many sensors that write into Influxdb; it uses a default retention policy of 1 week.

I have a couple of sensors (gas and water counters) that I want they use another infinite retention policy, called “infinite”.

Is it possible on configuration of HomeAssistant select different retention policy OR can someone help me to “copy” them from “one_week” retention to “infinite” retention?

At the moment I have these CQs:

CREATE CONTINUOUS QUERY cq_water ON homeassistant BEGIN SELECT value INTO homeassistant.infinite."l" FROM homeassistant.one_week."l" GROUP BY time(1h), entity_id fill(previous) END

CREATE CONTINUOUS QUERY cq_gas ON homeassistant BEGIN SELECT value INTO homeassistant.infinite."m3" FROM homeassistant.one_week."m3" GROUP BY time(1h), entity_id fill(previous) END

But infinite.l and infinite.m3 are empties (but not the one_week, I can show data in Grafana also). Thank you!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106759

Trending Articles



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