My battery levels in my Ikea Tradfri Zigbee remotes bounce around a lot. That’s fine, I understand they’re polling the voltage levels. So I’d like to report on the 24 hour average of the voltage level.
As you can see from the image some devices really bounce all over the place. So when I try to report on low battery levels I’m always getting false positives like this:
(by the way I built that sensor list using the auto-entities card which is pretty cool)
So my question is:
how can I make ALL of my batteries report their 24 or 48 hour average? I suspect I could probably template each one of them and create a jinja2 calc off each individual device, but I have >20 battery powered devices. So is there a way I can dynamically calculate the average of a range of sensor batteries?