Optimizing InfluxDB Data Points for Thermostat Battery Monitoring

Hey everyone, I’m currently working on setting up a system to monitor the battery levels of my thermostats using InfluxDB and Grafana. I’ve created a template sensor for each thermostat to track the battery percentage, but I’ve encountered a couple of issues that I’m hoping to resolve.

First, the recorded values in Grafana sometimes don’t match the actual battery levels. For example, I’ve noticed instances where the value is only half of what it should be. This inconsistency is a bit concerning and I’m not sure what’s causing it.

Second, I’ve noticed that there are very few data points being recorded—sometimes just one every 24 hours. This makes it hard to get a clear picture of how the battery levels are changing over time. I’d love to find a way to increase the frequency of these measurements to get more granular data.

I’ve included a screenshot of what my current Grafana setup looks like, and as you can see, there are days where there’s no data at all for the selected time range.

Has anyone else experienced similar issues with sensor data in InfluxDB? I’d be grateful for any advice or solutions you might have, whether it’s about adjusting the sensor configuration, tweaking the data collection interval, or troubleshooting potential connection issues.

Looking forward to hearing from you all!

Best regards,
Sebastian