[RELEASE] Tuya Zigbee Valve driver (w/ healthStatus)

What is your hub - C-8 or C-7?
It seems that the device does not stay connected. Does the process finish normally when you pair it (without deleting)?

It's a C8, seems to pair normally. BTW, I've got an identical second unit and get the same results.

...and also, I am able to pair it with a Zemismart M1 hub and it works as expected from the Smartlife app. (Tried controlling it through the matter gateway but it didn't work, but that's a problem for another day).

1 Like

Delete the device from your C-8 hub (use the red REMOVE device button), then pair it again as a new device, using this pairing method. Make sure you follow all the steps.

Then, please post a screenshot of the logs that were recorded during the pairing process.
Also a screenshot of the State variables for this device.

As soon as the device pairs, go to the valve web page in HE and click on the Ping() button. Will the device respond?
If yes - will the device respond to Ping commands again after one or two minutes?
This test will show whether the device looses the connection shortly after joining the Zigbee network.

1 Like

I followed the instructions and have attached the screenshots. I tried a couple of commands after taking the screenshots and they didn't work as before.

After taking the screenshot of the state variables, I noticed the device profile was again UNKNOWN, so I manually changed it as you suggested before, Now the device seems to be working. Open, close seem to work. Ping returns a round trip of 351 ms.

Not sure I know what changed as I tried removing and pairing several times before, but I won't argue with success. Thank you for your help.




1 Like

Can you please expand on this and advise what hardware and software I would need to do this? My desired detection area is a tree about 50 from the nearest structure, and I want to detect squirrels. If the cam is wireless, there is a nearby play structure I could probably get permission from the neighbor to mount a cam onto

First off, a huge thank you to @kkossev for all your work on this and other drivers.

Similar to @Arktronic, I have 3 of the NEO Zigbee Sprinkler Timer (Amazon.com) and found that they seem to mostly work for On/Off if I manually apply the TS0601_VALVE_ONOFF device profile. They work fairly reliably right after I pair or repair them, but after some random amount of time, they lose contact with my C-7 hub.

I tried adding a Ping on a periodic timer(10 minutes) and this seems to keep the devices online longer, but I can't validate for sure since the time until they drop seems very random.

It seems that the drop is often associated with an error like at dev:1392025-03-19 03:43:18.246 here:

Device Info reports as:

Application	      4A
Manufacturer	  _TZE204_rzrrjkz2
Model	          TS0601
Tuya Version.     1.0.10

State Variables for this device that is currently offline are:


This device was offline earlier today, I re-paired it. My C-7 said that it had found a previously paired device, and then almost immediately it went back offline

State Variables for another device that seems to be staying online a bit better are:

I've been admittedly a bit haphazard in my troubleshooting so far. I'm happy to run through a prescribed sequence if it will help figure out how to keep these devices connected and functional.

A few extra data points in case they make more sense to you, some errors from a device that I had to repair earlier today:

This may not have any bearing on your issue but do you have any Tuya based repeaters close to the valve?

In my experience Tuya devices use chip antennas which in general (according to internet sources) have somewhat lower performance versus a pcb etched antenna.

Similarly Aqara devices have issues with certain repeaters (Iris to name one) They work for awhile then drop off the network.

In my network Tuya devices seem to like other Tuya devices. (Zigbee Neighbor Map app)

The cheap Tuya USB repeaters are decent repeaters (signal strength wise). I plug them into a cheap USB UPS so they stay on during power outages so my security sensors continue to work. Plus you can never have too many Zigbee routers.

Greetings - does anyone have this actually working right now? I've tried 5 different devices (battery powered type), 4 of which match the descriptors in the driver code but they all connect, initialize, trade some messages and then just start timing out. I've updated the hub 3 times since starting to try to get these working (running 2.4.1.153 on this hub right now.) I've tried pairing, re-pairing, letting it sit, etc. All but the one device is automatically recognized as the type that it says - the last one is apparently a model not currently identified in the code. None of this is meant to discredit the great work done on this, just trying to figure out why none of the ones I've tried work.

So after finally posting this message last night after 2 days of trying various devices and tricks, it's working. As far as I can tell, nothing is really different but there are some things that may have had an impact that I'll list below.

  1. I tried various methods of factory resetting the devices. None of them came with instructions on how to do this and I couldn't find instructions online. Google Gemini search recommended things but they weren't actually mentioned on the pages that they said the information was from. The interesting thing is, these methods ultimately worked, just not on the devices they were supposed to apply to. I basically aggregated them and started trying them all on each device. 2 of them that have worked so far involved pressing and releasing the button 5 times and then holding for 5 seconds and holding for 5 seconds and then releasing before another single push and release. The kicker here is that they behaved no differently. Various acts would cause the ring light to blink as if it was ready to go and nothing was different in the situations where it finally worked as opposed to others. So there's no obvious indication that this made a difference.
  2. I had modified the driver to try some things. I don't know if this made a difference but just before it finally worked, even though I had written over my changes with the original again many attempts prior, I tried deleting it and creating a new instance of the driver. I then rebooted the hub afterwards.
  3. I tried rebuilding the Zigbee network from the Zigbee Details Settings page. But this was at least a couple of attempts prior.
  4. I actually could not get it to work at all when it was close to the hub. I have it about 12 feet away where it sits right now. This may just be coincidence but I tried 2 different units about 15 times total about 1-3 feet from the hub (varying distances) and it never found it. This was prior to building the list of and trying out the various newly found factory reset methods, though but I don't ultimately know if that is what made the difference per the lack of indication of difference in the first point.

But again, much appreciation and kudos to the author. I never really doubted that the driver worked but I couldn't figure out why it didn't seem to work for me. And I'm technically still not sure. But, for the record, the driver does apparently work under 2.4.1.153 (haven't updated to 2.4.1.154 yet - what's with the daily updates?) It may just take some finessing to get the hub and the device to realize that.

Glad you got it working.

Hub updates are happening often right now since 2.4.1 was just released earlier this week and it has a LOT of changes and new things compared to 2.4.0 -- 2.4.1. was in a long beta, but now that it's released to the masses, some lingering (yet undiscovered) bugs are steadily getting squashed by staff.

The updates will steadily slow down, but I appreciate that the staff responds to bug reports as quickly as possible.

Krassimir (kkossev) will be out-of-pocket around the community here for a while with his own work stuff (IIRC), so although he's normally very active here, he's sparse lately.

1 Like

Hello, anyone out there have any luck with this sprinkler, I tried downloading the Tuya driver and it is not working

@kkossev ?

Can you clarify what is not working?

  1. Is the device pairing to Hubitat?
  2. If it paired, which driver was selected?
  3. How did you change drivers to the @kkossev's Tuya driver?
  4. Did you click "Configure" after changing drivers?
  5. Did you try to re-pair the device AFTER changing drivers?
  6. Finally, can you post a fingerprint?
2 Likes

Also, is that device zigbee or wifi? Can't tell from that pic, and with Tuya, that's not always an obvious answer.

3 Likes

Great point! Given the number of Tuya devices that are available in both options, I hope you don't mind that I emphasized the question.

2 Likes

Yes, zigbee 3, I can see the valve change status when I push the valve button but nothing happens when press the on or off button in the c8 app…..the valve does nothing

Answering aaiyar's questions above would be the next helpful step.

1 Like

It is zigbee 3

Sorry to see you're having issues.
Please have look at this LINK.
Thanks.

2 Likes