Sonoff SWV measure liters

I have a Sonoff SWV water valve which hooks into HA via Zigbee2MQTT. Turning a valve on and off is the easy bit. Can’t seem to work out how I can close the valve after X number of liters have passed through it. The Sonoff only seems to return a flowcontrol value.

Note that I don’t own one of these, so the below advise is only based on the Z2M docs for this device.

You should have an irrigation_capacity setting for that device, measured in litres. Set that to 1 for testing purposes and turn on the SWV. It should* dispense around 1L before turning off.

*Note that this will depend on how accurately the SWV measures the flow. You may have to play around with the values a bit to get the desired amount of water, since there seem to be no calibration options for this device.

Thanks @ShadowFist - Using that link I can see that “irrigation_capacity” is available as part of ‘cyclic_quantitative_irrigation’ (which you have to enable/config) and that I can set it via the Z2M config page. Will indeed have a bit of a play with that and see what info it reports back to HA so I can use it for further automation.

1 Like