Tuya Smart WiFi Water Valve, Flow Rate And Water Meter

I’ve recently came across this: https://www.aliexpress.com/item/1005007329583670.html?spm=a2g0o.productlist.main.83.7d106e65DoXRcf&algo_pvid=4287c963-2e6a-4db2-9ab2-60a7d71388d0&algo_exp_id=4287c963-2e6a-4db2-9ab2-60a7d71388d0-41&pdp_npi=4%40dis!BGN!471.43!330.00!!!257.16!180.01!%402103854617208679063414842e8490!12000040290011451!sea!BG!0!AB&curPageLogUid=AOgMLsaVbr1J&utparam-url=scene%3Asearch|query_from%3A

Has anyone used it in HA? Is there a way to “esp-ize” it (i.e. not use the tuya cloud & integration)?

Considering the price… any alternatives?

Hi, nice nickname!
You may want to delete the first question mark and everything after that in that link. Nobody really wants to hit a tracking or affiliate code, so you would have a much better chance of someone actually looking at the thing you are asking about.
As is, personally, I won’t click that.

There is this zigbee version that I see that may be what most are looking for in one:

https://www.aliexpress.com/item/1005007308058989.html

I haven’t placed any “affiliate” links, or whatever. Just copied the link from the browser and pasted it in the question. Sheeesh… paranoia ?

Personally I was looking for a way to both read the water usage and be able to close/open the mains.

You may not see all the BOTS and weirdness that shows up here in the forums, but there’s a lot.
Yes, paranoia tends to keep us all safe.
You don’t have to add an affiliate link to pass one on that you have gathered in your search. Often the spm= thing is a affiliate link. (But not always)

As per your question I have no idea because I don’t know what that is.

I just bought the one that as a pressure sensor along with a temperature and flow meter. This one costs more than the first one, but it can test for leaks. It has that function, “built-in” on the VALVE CONTROLLER page of the SMART LIFE app. On the SMART LIFE app, it looks like a TUYA device and has some instancies like, toggle valve open/close, water temperature, water flow Gal/h, water meter total Gal count, water pressure PSI.
I have added it to HOME ASSISTANT via TUYA integration, but it only has 3 entities,
toggle on/off, total open time and weather postponing timer. It would be nice to have a dedicated integration that pulls every reading and sensor data from the VALVE. It is nicely built, looks durable. Above all it as potential for some awesome automations, leak alarms, and water usage reports. Does anyone has any development to integrate this kind of device?

  1. Create account in Tuya IoT Platform , create Cloud Project, link to SmartLife account and read all devices from SmartLife. Find water valve in the device list and copy id. Copy also client id and client secret from the Project details page.

  2. Install Tuya Sensors Integration from Hacs in HA, Add Integration (Settings → Devices use client id, client secret and device id). After successful setup you will see 9 entities under Tuya Sensors.
    Placeholder for the image. Sorry, new user can post only 1 embedded image. Is it leading to success or failure? :smiley:

  3. Use templates.yaml to do extra calculations on the top of tuya values if required:
    For example I calculate pressure in bar on the top of original PSI, but looks like original value is not PSI but something device specific, after deducting 1 at the end value looks as expected:

sensor:
    - name: "water_valve_water_pressure_bar"
      unit_of_measurement: 'bar'
      state: "{{ ((states('sensor.water_valve_water_pressure') | float(0) * 0.00689476) - 1.0 ) | round(1) }}"

Placeholder for the image. Sorry, new user can post only 1 embedded image. Is it leading to success or failure? :smiley:

1 Like