SONOFF Smart Water Valve water consumption tracking

Hi, i have recently bought a SONOFF Smart Water Valve and i have connected it throught Zigbee2MQTT to my server. Some entities are discovered like the switch that turns it on and off and the flow rate senor which outputs data in m^3/h. I would like to create an entity which tracks the total water consumed since the last on state of the valve and an automation to turn it off after an X amount of liters have been through. I tried using an utility meter helper, however the results where in m^3/h and not m^3 or liters. Any ideas?

1 Like