You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Option to Rate-Limit (Throttle) Battery+ Updates #3042
Is your feature request related to a problem? Please describe.
I have several devices which update very rapidly (every few seconds) which is much faster than I require. These devices (mainly Temp Humidity meters) include rapidly updating battery sensors, which in turn leads to a rapidly updating Battery+ sensor. I would prefer to reduce the high frequency of updates, as for me, its unnecessary, consumes a (small) amount of resources and adds to the Home Assistant database size.
Describe the solution you'd like
I would like to see an option in HA Battery Notes to allow the updates for the Battery Notes Battery+ sensor to be rate-limited (throttled), i.e. only update every 1 minutes, 5 minutes, 20 minutes, 1 hour etc.
Describe alternatives you've considered
For rapidly (faster than is useful) sensors, if I do not want to retain history, I can exclude the sensor from the Recorder, which reduces the database overhead.
In instances where I want to retain history (which is usually the case for battery level), I can exclude the source sensor from Recorder, and create a Filter Sensor, with a throttled update rate, which will keep its history.
For HA Battery Notes this option does not really work, if I create a rate-limited/throttled version of a battery sensor, this is not a device sensor, so will not be picked up as the source for the Battery+ sensor.
Additional context
Minor functionality in the grand scheme of things, I know, but I do think it would be very useful.
It's surprising that the device sends battery so frequently, most only report occasionally, maybe it's worth taking up with the integration owner for the device?
I'm not sure I want to introduce this complexity to save a few recorder entries, I'll move this to the ideas discussion and if I get inspiration on how to do it easily, and that wouldn't confuse the majority of users I'll see what I can.
Repository owner locked and limited conversation to collaborators on Feb 6, 2025
Activity
andrew-codechimp commentedon Feb 6, 2025
It's surprising that the device sends battery so frequently, most only report occasionally, maybe it's worth taking up with the integration owner for the device?
Sort of related to this idea
I'm not sure I want to introduce this complexity to save a few recorder entries, I'll move this to the ideas discussion and if I get inspiration on how to do it easily, and that wouldn't confuse the majority of users I'll see what I can.