Water meter rieman sum, wrong readings?

hi,
i have an watermeter from this project GitHub - jomjol/AI-on-the-edge-device: Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world and have readings from the watermeter with “m3” as my water gauge… ok so far.

i wanted to create an rieman sum, but it seems it shows wrong results?
after one toilet flush it shows 9.305 m3h. shouldn´t it be more like “0.09305” m3h? (9 liters)?

#watermeter  m3
  - platform: integration
    source: sensor.watermeter_value
    name: watermeter_value_sum
    unit_prefix: 
    round: 3
    method: left

m3h not m3

Why?

What use is the integral of your water consumption?

hi @tom_l

i want to use the utilitymeter and copied from my energy riemans… but i might be wrong. the watermeter_value is still the sum, so i will use it directly in my utility_meter?

You had to convert power sensors to energy sensor with a Riemann sum integral approximation because you had no energy sensors.

In this sistualtion it would be equivalent to you only having a flow rate (m3/h) that you wanted to convert to a total volume with the Riemann sum. However your sensor is not a flow rate. It is a volume total already. So yes just feed your water sensor to a utility meter directly with whatever cycle you want (hourly, daily, etc…).

thanx, i did it

but how i get rid of the old measurements from utilitymeter…?

with the wrong rieman i had switched unit_prefix, then i got sometimes (had taken 1h or so…) an repair to delete old values… but now? tried to comment out the utility_meter and rebooted, but it came back