Flow sensor to Water consumed

Hello,

I have a flow sensor that measure in m3/h every time I water the garden.
I would like to use that info to create a sesnor that will give me how much water has been used to be added to the energy dashboard.

I was thinking:

  1. create a template that will provide me the measurment in L/s
  2. make it a cumulative sensor to be passed to the energy dashboard

Anyone that could help me to achive this?

Thx!

Template sensor helper (Settings / Helpers / Create / Template) with a state template of:

{{ states('sensor.YOUR_FLOW_SENSOR')|float(0) / 3.6 }}

Set the unit to “L/s”. There is a volume_flow_rate device class, but that doesn’t include litres per second as a valid unit.

1 mÂł/h == 1000 L/h == 1000 / 3600 L/s

Then, to integrate flow to volume, feed either sensor into this:

The first sensor works fine and I can see the right L/s.

The integral returns odds results, definitively wrong.

I’m not an expert on that one. Can you post how you have configured it? Hopefully a Riemann expert can comment.

This is the sesnor config

Actually, using Left Reimann sum is providing me with the correct value!

Thx!

1 Like

I implemented the same thing. But I have issues when I try to integrate it to the energy dashboard. the integral entity do not appear to be selected. I assume that the reason is that the template sensor is set with “volume flow rate” device class instead of water. I tryed to change the device class of the integral entity but couldn´t do it.