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
Describe the problem you have/What new integration you would like
Currently a delta filter can either check if the value is different by a certain percentage or by a certain value. Not both. An 'or' filter can be created to combine both. However, no 'and' filter exists, meaning that you cannot check if the value changes by (for example) at least 10% and also by an absolute change of 20. I would like such a check.
An example of this implementation would look like:
Please describe your use case for this integration and alternatives you've tried:
I would use this for power plugs. If the current power usage is for example 5W, then I want to update immediately if the value is at least 5W different from the previous value, otherwise throttle_average over 60 seconds. However, if the current power usage is around 1000W, a 5W difference is too small to warrant an immediate update, so I would like to check if the new value is at least 10% different from the previous value.
Currently I use this:
sensor:
- platform: bl0940uart_id: uart_busupdate_interval: 0.5spower:
name: "${device_name} Power"unit_of_measurement: Wid: powericon: mdi:gaugefilters:
- throttle_average: 5s
- or:
- throttle_average: 60s
- or: #I would like to use AND instead, or the aforementioned implementation of the delta filter
- delta: 20.0
- delta: 10%
Other than using globals and creating lambda filters for every separate sensor, there is no easy solution.
Additional context
The text was updated successfully, but these errors were encountered:
Describe the problem you have/What new integration you would like
Currently a delta filter can either check if the value is different by a certain percentage or by a certain value. Not both. An 'or' filter can be created to combine both. However, no 'and' filter exists, meaning that you cannot check if the value changes by (for example) at least 10% and also by an absolute change of 20. I would like such a check.
An example of this implementation would look like:
Please describe your use case for this integration and alternatives you've tried:
I would use this for power plugs. If the current power usage is for example 5W, then I want to update immediately if the value is at least 5W different from the previous value, otherwise throttle_average over 60 seconds. However, if the current power usage is around 1000W, a 5W difference is too small to warrant an immediate update, so I would like to check if the new value is at least 10% different from the previous value.
Currently I use this:
Other than using globals and creating lambda filters for every separate sensor, there is no easy solution.
Additional context
The text was updated successfully, but these errors were encountered: