Filter integration option to ignore value, keep previous

Filter integration: Filter - Home Assistant

My issue:
Energy integration requires a total_increasing for ‘total increasing’ values.
Sometimes the solar is unavailable and delivers a 0 in the data

Using the filter integration on it enables me to filter it out.
But it seems like none of the options enable to ignore the 0 value

Outlier enables them to be dropped, but replaces it with the median, Same with Time Simle Moving Average.
Low Pass filter smoothes the values out if they are too random.
But all of these above options ‘destroy’ the total_increasing as the median is always lower than the last value.

Range (upper / lower bound) replaces with a static value

Issue filed in github closed as feature request ( Filter integration missing option? 'ignore value, keep previous' · Issue #59648 · home-assistant/core · GitHub )

Feature request
The option i seem to need is to ignore the value out of bounds and keep the previous value.
Solution would be to set an option in the ‘Range’, ‘Outlier’ or ‘Low Pass’ filter to ignore values outside of the filter and keep previous value.

Seconding this. I’ve been looking for a workaround for this issue, and have not been able to find one.

1 Like

100% this. I’ve been looking for a workaround for this issue, and have not been able to find one.

This seems like it would be the most important type of filter no? And it should be a fairly simple one to add at that.

1 Like