Splenssy/Tuya USB Smart Plug Local/Cloud Integration?

Let me just sum it up for your quick, with my latest stuff.... please hold.

I made some of my own mods to the cloud driver, I think there have been some further updates to the main code since and I have not updated mine. I think it would work either way. First thing to try would probably just be the main user created cloud driver.

Original: [BETA] Tuya Cloud Driver (Limited device support)
My Mod: TuyaOpenCloudAPI fixes for setting level on RGB light strip · GitHub

Your device will have to be linked to the Tuya or Smart Life app, a white label branded app I do not think will work but you can easily switch the device over to the other apps.

That driver will create a child device for each device on your account.
If your device acts like a normal switch it may work out of the box.

From there, the dev has some child drivers you can swap the child device to and get some local control while still using the cloud as backup. Found here: hubitat-public/Tuya/Local at main · bradsjm/hubitat-public · GitHub You need the driver and library.

The switch one may possibly work for your device. If the "DPS" codes are different, it may take some poking and modifications.

I made some modifications to the RGB local driver to support my LED strip DPS values and I also made it cache the heartbeat to reduce the load on the hub.
Driver: TuyaLocalRgbLight.groovy · GitHub
Library: TuyaLocalRgbLight.groovy · GitHub

2 Likes