I have been trying to Get stable Reading for My Ground tank Water Level Measurement.But ultrasonic sensor output sometimes swings…more than 10% of its value.
i want to eliminate such scenario by taking Median value of last 10 inputs ( inputs might be same i.e 53,53,53,53,53,53,53…53).
Can someone help me with code for openhab rules which might help me ?
I have been using Grafana & rrd4j for storing persistence value.
is any workaround available ? for median value from ESP Sensor Value (Tasmota Firmware).