I use quite a few Ghome WiFi smart plugs and am having issues with the ST to SmartLife (Tuya) integration. Control using ST routines used to work flawlessly but somewhere in the past year something changed. Now, the ST routines are only successful about 10% of the time, if at all. While they often fire and register in the history of the device, I’ll typically see the device turn on, then off, almost immediately when it should stay on. When it does work, I’ve seen 10-15 second delays between the command and action. Manual control is similarly inconsistent, usually not working at all. Below are screenshots with explanations.
The device Grow Light is a Ghome WiFi outlet with two routines. Night Secure locks doors and turns off a bunch of devices when triggered by an Alexa command (shown below). Grow Light On/Off turns the light on at sunset (for testing only) and off at 9pm as shown in the second picture.
The Alexa routine shown here triggers an ST virtual device called Night Secure by turning it on whenever someone says “Alexa, Good Night.” Once Alexa turns on Night Secure an ST routine is executed as shown, which locks doors and turns a bunch of devices off, one of which is the Grow Light.
On the left is the ST history for Grow Light, which and shows the routine was activated at sunset and turned the Grow Light on at 6:43 but immediately turned it off. However, the SmartLife run log shown to the right doesn’t even show the “on” command being received from ST.
There is an Edge Driver that you can use with your Tuya devices. It is local so it is reliable. The driver is a little ruff around the edges and the developer doesn’t appear to be making update.
The following is a link to the driver and comments about:
Read the comments by Powerful-Gap to get a feel for the driver. I have been using for about a month and it works pretty good even if it is ugly.
Thanks for the advice and reply. Do I need to uninstall the Tuya device and then reinstall using ST once the driver is installed? I’m a bit rough on edge driver installation and usage so would appreciate a bit of help. Also, once the device is using the edge driver will integration with SmartLife still work or be an issue? Thanks in advance.
Just install the Tuya-Edge driver in ST, run find nearby and a blank device will pop-up and you have the fill in the required information. Then for the next device you run find nearby again and again.
You can continue to run the devices in the Smart Life or Tuya Apps as you have in the past. You can also continue to use the official cloud to cloud integration but you will end up with doubles in ST.
The hardest part is getting the local key. You can search this forum or us AI such as Gemini on how to get the keys. If you happen to run Home Assistant getting the keys is super easy.
I installed the driver and now have a new device “Tuya Manual Setup” in my app. However, when I scan for new devices nothing shows up. Opening the Settins for the Tuya Manual Setup device shows all the expected items such as polling, etc. It also shows Local Key, Host, and Device ID but I’m not sure what should be entered here; the information for my GHome outlet? If so, how would I enter other GHome devices? Sorry for being so dumb, just confused as to how to pair the GHome device with this driver. Thanks!
Thanks for the link, this is an excellent article. It should help finding the information I need once I can figure out how to get my device to use the new driver!
Local Key - you need to retrieve it with TinyTuya using the info. @Andreas_Roedl provided. Or if you use Home Assistant with the Tuya Local Key integration.
Host - this is your local IP address which you should be able to get from your router app.
Device ID - you can get it from the SmartLife/Tuya app in the Device information section or from TinyTuya.
Thanks Paul. I was able to retrieve the necessary information and successfully use the driver for one of my devices. However, there are problems with the driver as you originally suggested there may be.
First, it won’t accept certain characters that are in my key, such as a diacritical mark (ex. “p:s3NVqZ6p_E0np`”, last character of the key). Second, once I entered the information into the first instance of the “Tuya Manual Setup” device I couldn’t create a second instance by scanning nearby. In fact, nothing I tried resulted in a second instance being created.
While I’d would truly love to use an edge driver and execute locally, I’m losing faith it is practical without my actually writing this myself, and I just don’t have the time to come up to speed on writing edge drivers. So, I reached out to Tuya and have heard back with AI generated response. I doubt that will go anywhere, but who knows.
Thanks again for all the help and advice. Truly appreciated!
I did have any problems with the keys, I just copied and pasted them into the Edge Driver settings. My keys had all kinds of non alfa-numeric characters.
I created about 15 devices with out any problems. I just did a test and it appears you need complete the setup of one device before you can create another one.
Once again, thank you! I will try removing the driver and reinstalling to see if that helps. Regarding the key, I too can enter all kinds of crazy characters and the Save button still indicates it will work and save the setting. However, the moment I enter the character `, the Save button grays out and I can’t hit enter to save it. I have posted this on the Redit thread but suspect there won’t be any response.