Issues with Tuya integration

Greetings,

I have the Tuya Cloud Driver by @jonathanb installed. It works for one of my smart outlets, but doesn't work for my light switch. It can read the status of the switch if I change it physically or through the smart life app, but I cannot change the device status from Hubitat.


Here are my logs. The first two lines are when I changed it from Hubitat. The next four lines are turning it on from the Smart Life App, then the top four are turning it off again from the Smart Life app. Any changes sent from Hubitat are not reflected in the Smart Life app and the lights are not turned on/off.

If anyone has a moment to help me troubleshoot this I would appreciate it. I'm quite new to this.

Thanks!

Shouldn't be too hard to figure out however what I need is the driver data section for the switch device. It will have a "functions" and "statusSet" line along with "category" that will be needed to for me to figure it out.

I don't know if any of that info is sensitive but I've seen enough people get reprimanded for sharing API keys or passwords accidentally. Let me know if you needed any of that data that I covered.

I really appreciate you taking the time to help with this!

Not a problem, I don't see any obvious problems so I have added some additional logging to the driver to see if that helps isolate the issue. Try the development driver with more logging at:

https://raw.githubusercontent.com/bradsjm/hubitat-drivers/development/Tuya/TuyaOpenCloudAPI.groovy

Hi Jonathan, it's working with the development driver, but not the other.
These logs are for turning the switch on, which is successful.


Thisis the log for an off command, which is also successful.

Is there any harm in me just using this driver?

No problem, I'll be promoting this version to the main branch anyway shortly.