Add Option to Rate-Limit (Throttle) Battery+ Updates #3045
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Hi. Thanks for this, and understood in terms of the approach. I see the plan in relation to the Battery Low Threshold idea. Not sure if that will help this request as well? i.e. is the plan to drop "spiky" results or just not have them affect the Battery Low event. Anyway, hopefully inspriation may strike. Is there an option to allow the Battery state to be taken from the most recent Short Term Statistics entry (5 minute intervals I think) instead of the actual state? Thanks |
Beta Was this translation helpful? Give feedback.
-
Checklist
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.
Beta Was this translation helpful? Give feedback.
All reactions