Tuya irrigation driver Alexa and HomeKit device integration

I am using the custom Tuya driver for irrigation valves. Specifically a Sonoff Zigbee SWV.

@kkossev Tuya Zigbee Valve driver

I have been able to set up the device and test it in my hub fine. Awesome driver including the ability to set auto shut off timer and read back battery status.

My issues are two fold. After updating the Alexa app in Hubitat hub to add the device, Alexa cannot discover it. Alexa can see all of my other switches and lights.

My second issue is that I can see the device in HomeKit and operate it manually from HomeKit but it is not available as a device for an Automation routine. All of my other lights and switches are available for automations, but not the water valve.

Any help on either of these two issues is greatly appreciated.

@kkossev

Thank you

I have disabled the Alexa skill and relinked it to my Hubitat hub. No help
I have disabled and reconnected my SWV Zigbee device with no effect including ensuring it is part of the authorized devices in the Alexa skill app.

The same is true of HomeKit integration for this device. I can actually see the device in home kit and control it (on/off) however it is not an available device for use in a HomeKit Automation.

If I use a generic zigbee device type the on/off control works and the device is available for automation in both Alexa and HomeKit however I them lose the ability to set the maximum on time duration safety setting for the valve and all of the other wonderful data the Tuya driver provides.

Any help with this driver and my issues are greatly appreciated!

Thank you for the info. Most probably, the valves must also expose and update a Switch capability - I will look at this ASAP and will publish you an update for testing.

Thank you very much for taking a look at it. I was able to use the built in Mirror app and have a virtual switch working for the automation. Having this be the actual valve switch itself will be much more reliable and I get to use the cool water spigot indicator too :smile:

@mikemassey1968
Please update the driver manually to version '1.6.0'
https://raw.githubusercontent.com/kkossev/Hubitat/development/Drivers/Tuya%20Zigbee%20Valve/Tuya%20Zigbee%20Valve.groovy

I have tested this version with Apple Home, to work reliably the Sonoff valve must be exported as a Switch. I can turn the vale on/off using Apple Home Automations this way :

image

Will it work with Alexa integration now?

1 Like

This works perfectly in HomeKit and also Alexa now. The device is available to view and control manually in both applications and also available for automation routines now.

Thank you for the awesome code! And for support of it!!

2 Likes

Sorry I misspoke yesterday. Alexa is working 100% however the HomeKit still only works manually. I cannot use the valve in automation. I enabled the mirror app and a virtual switch to get my HomeKit automation to work.

Not sure why HomeKit has this limitation? There is a workaround so that is good enough. Thank you again.

Did you export it as a switch to HomeKit (not as a valve) ?
See the screenshot above. Once you click on the 'Export as Switch' hyperlink in the HomeKit app in Hubitat, you will see the valve in the 'Switches' group from now on.

1 Like

That fixed it! Now I can’t see the cool valve icon so I may switch it back LOL. That was all that was needed sorry I missed that in your previous message.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.