I have sensor which reports tank volume (so the value can increase or decrease). I would like to create consumption sensor for it. That means I would like utility meter to add only deltas which are negative. For example if I have readings: 100l, 70l, 120l, 110l - consumption should be 30l + 10l = 40l
How can I achieve this?
Or with other words is there any way to achieve this directly with utility meter or I need to have additional sensor for negative delta?