How can I track water softener schedule (using ESPHome and Ultrasonic)

I’m not sure but here are some ideas.

I think you need to start layering up the right filters in working towards a “pulse counter”. I would visualise the data a lot while doing this (like you’ve done). I like Grafana for this kind of thing.

I would start adding a series of chained copy sensors.

I would start with a moving median filter of window size 3 or 5 to clean up the noise.

Then I’d see what a delta sensor or filter looks chained onto that.

I’m not quite sure where to take it after that step yet.

Possibly a throttle filter or something to try to discretise it further. You basically want to process it to look like a very square stepped signal.

1 Like