Minmax sensor ignore outliers

It would be good if the minmax sensor would omit the outlier values from the mean calculation.

Two ideas:
Given the sensor values: {90,89,92,91,5}

  1. Ignore the top and bottom 10% and use only {90,92,91}

  2. Given a threshold set to eg. 10
    Ignore the values which are outside the threshold measured from the mean value {90,89,92,91}

Use an outlier filter sensor.

Thanks, but I’m not sure it solves my use-case.
With Filter I can ignore the outliners in one specific sensor data.

My use-case is that, I have 5 different sensors and I would like to create an average/mean. But some sensors are inaccurate so in that case it is better for me to exclude the inaccurate sensor’s data from the calculation.

Set up a filter sensor for each of the five sensors. Add the five filtered sensors to the min/max sensor.