Water flow sensor with zigbee

I want to send the water flow details to hassio. I saw that we can put this on the pipe: https://www.aliexpress.com/item/32810569662.html?spm=a2g0o.detail.1000023.1.6130440eVmDOnE

but which module do I have to build to connect this walve? Is not possible to conect directly to Rasberry. So I have to send thorough zigbee the data.

Find a way to connect that to a Zigbee solution will be much harder than connecting that sensor to a Raspberry or an ESP.

Take a look at this discussion: Using ESPhome to build a water flow rate meter - #25 by saboaua

And this (in spanish, but with subtitles)

Also se related discussion here: