Recently, I found an Edge Driver for Tuya Wi-Fi devices by Halwin12 on r/SmartThings. I haven’t seen any posts about it here yet. Has anyone here tested this driver?
I tried using it with a Smart Plug with Energy Monitoring, but I couldn’t get the measurements to work—only the On/Off toggle is working. I tried setting the DPS IDs manually (I got them from the Tuya API), but nothing worked. Turning on “Auto profile from DPS” didn’t change anything either.
I haven’t tested it with lighting because I currently have it connected to SmartThings via Philips Hue integration (HA+Tuya Local–>diyHue–>SmartThings)
The basic settings like Local Key, Host IP, Device ID, and Protocol Version are pretty obvious and easy to get from the Tuya IoT Platform developer site. The “Profile override” setting just forces a specific device profile if it was incorrectly recognized automatically. However, I couldn’t find any documentation for this driver, so I don’t know what format I should use or what exact values I should put into “Status DPS IDs” and “Manual DPS IDs”.
Yes, I can change the individual DPs. The “Primary DP” controls the On/Off state and reads whether the plug is on or off. In my case, it’s either 1 or 0 (I suspect 0 is a mode where the driver tries to automatically match the DP).
For my specific plug model, the DP IDs are:
DP 1 (switch_on) – On/Off control
DP 3 (add_ele) – Total energy consumption (kWh)
DP 4 (cur_current) – Current (mA)
DP 5 (cur_power) – Power (W)
DP 6 (cur_voltage) – Voltage (V)
Unfortunately, entering them manually into the driver settings doesn’t change anything; the measurements still show as NaN.
Yes, the basic communication definitely works. I can successfully switch the plug on and off when the Primary DP is set to 1, and also when it’s set to 0. However, if I change it to something else (like 5), the on/off control stops working. So changing these options definitely alters how the driver communicates with the device.
I tied it last week. I paired 6 devices. 2 devices (light and outlet) worked as expected, 2 devices (light and power strip) worked partially, and a couple didn’t work at all.
The light that worked partially knocked the device offline in the SmartLife app when I tried to use it in SmartThings.
I already had all these devices working in Home Assistant via Tuya Local and linked to ST via Matter Bridge. And since I had no real need for the integration I deleted it. It didn’t seem ready for prime time.
It looks like this driver is still a bit half-baked. I actually have my plugs connected to SmartThings the same way—using the Tuya Local integration in Home Assistant and bridging them over via the HA-Matter-Hub to get power and energy usage measurement. I was curious if I could bypass HA entirely and link them directly to SmartThings locally.
I agree with you; this driver definitely needs a lot of work and some proper documentation before it’s ready for full release.