Clamping Persisted Values?

It’s not really an OH2 issue. But it does exhibit in OH…

Measuring devices can be inaccurate. And sometimes they’ll deliver absolutely crap values. e.g.

2017-12-23 20:02:11.126 [vent.ItemStateChangedEvent] - ZW_Boiler_Return changed from 22 to 22.06
2017-12-23 20:08:32.767 [vent.ItemStateChangedEvent] - ZW_Boiler_Return changed from 22.06 to 167794.22
2017-12-23 20:09:31.398 [vent.ItemStateChangedEvent] - ZW_Boiler_Return changed from 167794.22 to 22.06
2017-12-23 20:34:53.504 [vent.ItemStateChangedEvent] - ZW_Boiler_Return changed from 22.06 to 22.12

A clearly wrong value read from a ZW device (Fibaro Universal Sensor with temperature probes attached). So I’d like to filter these automatically. Either by delta over time, or values clearly outside the possible values.

Is there anywhere in OH2 that can currently do this ? I’ve not seen anything possible in the binding or the persistence plugins. Can rules affect read values before they’re persisted? Or can rules read and update persisted values?