Sensor range filter modification to replace out of bounds with last known value

Hello. I have following issue with ZigBee aqara sensors:
I

From time to time temperature drops to -100° for a short period of time. Battery is still around 100%

Dropping below 100° instantly toggles climate and heating for those short bursts.
Range filter would be a good workaround for that, but it states:
All values greater then the upper bound are replaced by the upper bound and all values lower than the lower bound are replaced by the lower bound.

So if I would setup range filter and add 15° as lower bound it will still trigger climate control on those short -100° bursts.
Are there any filter or workaround to skip such -100° readings keeping last known value?
I cannot get any of other filters, as they explanation are quite difficult understand :-/