[APP][Pro] Tuya Cloud - This app allows you to connect Homey to the Tuya cloud

Yesterday I’ve fired the following prompt at Copilot:

“There’s a GitHub page for a Tuya Cloud app for Homey: GitHub - jurgenheine/com.tuya.cloud: Connect homey to the Tuya cloud . This is for the following Homey app: Tuya cloud | Homey The app’s functionality is discussed here: [APP][Pro] Tuya Cloud - This app allows you to connect Homey to the Tuya cloud
If I have such an app in a folder on my PC, I know how to install it on my Homey so I have my own version of the app. I do this with Node.js.
I also have the Tuya app installed on my phone and I have a Tuya Developer account.
I’d like to be able to open this app in Visual Studio Code, create a new version of it, and then install that new version on my Homey. To learn it, it would be nice to make a small adjustment that doesn’t significantly change the functionality, but rather, for example, changes a label somewhere, making it visible. Later, I could then adjust how the colors of a lamp can be adjusted. That’s currently not possible for an Action Battletron Ball lamp. And even later, I could learn how to add new devices already in the Tuya app to this Homey app.
Can you help me with that?”

If for some weird reason I have some time left, I will look into this. If I first start with just adjusting the label, I can learn a little bit how this works.

I would like though, to install the personal development version parallel to the version from Jürgen Heine. So, I can test my own version before breaking current automations. What is the easiest way for that?

Thanks so much Robert! I will try that…

Just change the app ID in .homeycompose/app.json
You can use like com.tuya.rudi

Gemini knows about this trick btw, I just checked :grimacing:

Oh, altering the name might be handy, but your CLI installed version of the app should be marked as “Development”

I think many Tuya fans will be very happy, Abe!
Any news on collaboration with Johan Bendz on the Tuya Zigbee app?
I know Dylan forked and published it as Universal Tuya Zigbee (test version) app, but I’m under the impression he’s relying on AI a tad too much.

Thanks! I’ll try that. With the Tuya Zigbee app, I think my own development version overwrote the community version.

I am relying too much on these devices to overwrite it. For example my morning coffee is automatically started with this

Just want to say that after I set up the Tuya Cloud for my Siren I just added 4 smart plugs for my Christmas lights that uses Tuya yesterday and they all showed up in Homey with all functions running. That is just perfect!! :star_struck:

No problem, Rudi.

I am having a problem. I installed “MOES Tuya WiFi Smart Garage Door Controller” (from AliExpress), added to the Tuya app - and it works as expected. I have set up a flow in Homey that turns on the garage lights when the garage door is opened. This worked fine the first couple of days. Now, most of the times it does not work. When I look at the timeline in Homey for the Garage door device, it seems like not all messages is delivered from Tuya to Homey. I have noticed that it seems to work if I restart the Tuya cloud app in Homey, and then open the garage door right after.

Any suggestions or similar experiences?

I have prepared everything. Only thing I need to still run is “homey app install”, but I will do that tomorrow morning. In case I then don’t have another Tuya Cloud app NEXT to my current Tuya Cloud app, I am not really screwed…. just a bit

Cool. Oh, I want to add this: by first starting with homey app run -r it only runs on Homey without being installed, and you can view the possible errors in your console.

When it affects or breaks your current installed Tuya Cloud app, it should be fixable by installing it again from the app store, or by restoring a backup.

Thanks! You mean possible build errors? What I want to prevent of course is the need to re-add all Tuya WiFi devices and having to rewrite all flows that use the Tuya WiFi devices.

While I was thinking of this I got to wonder what the exact problem is I am trying to solve here :slight_smile: The Tuya WiFi devices I have are all working. The only minor thing that could be improved is the color picker for some of the color lights. So, if I use the Tuya app or the remote that comes with some of the Action lights, I can set the color to for example green. For a few of the lights, if I use Homey to set the color to green, it turns red or something completely different. I believe that all lights that have this “issue” are lights that I only want to switch on and off and dim. That is all working.

And another exception is with 3 LSC Battletron balls. They have some capabilities that I am not using anyway. For example: the top half of the ball can have a different color than the bottom half.

So, for now I am going to wait a bit until I have need to create my own version of the app

1 Like

I would like to see support for a tuya/smartlife ev charger.
Thx.

1 Like

Who are you asking?

I have a dehumidifier that i have set up manually with raw commands and using Device Capabilities app. Do you know a way to request a full status update on the device?

AFAIK you can’t; Homey waits for changed values to arrive.
Possibly restarting the Homey Tuya Cloud app makes it refresh all values?

Hi! If I understood correctly, development stopped but @Jurgen_Heine is still accepting PR’s? I created a small one to add support for (another variant of) the Tuya Star Projector.

1 Like

Hi, I downloaded the app from GitHub - jurgenheine/com.tuya.cloud: Connect homey to the Tuya cloud and used ChatGPT to integrate a garage door controller into it. It needed some adjustments to get it to work, but now it works like a charm!

Tips:

  • Find the correct driver for your device: garage door opener, switch, light, etc in the homey app.

  • Find the informatjon for your unit in Tuya Cloud→ Project Management → Devices → Debug Device (needs to be set to DP mode).

  • Paste the Standard Instruction Set and Standard Status Set as pictures and the driver files for your device (you will find it in the downloaded files from GitHub) into ChatGPT, and it will update the driver

  • Paste the files back to the driver map inside the downloaded app from Github.

  • Use Homey CLI for installation.

Use chatgpt to fix any bugs in the app. You may alse need chatgpt to update the files basedevice.js inside the driver map.

1 Like

Ok, so if anyone wants to extend the possibilities with updating the status and syncing the device, I have used some code from another forum post. Se this: Tuya Cloud platform and homey scripting - #8 by Antohagg

I have bought a Tuya wifi radiator thermostat. It added easily to both Tuya and Homey, but while in Tuya I have full functionality, in Homey it only shows me the ambient temperature from the device and nothing more. So no data of the set temperature and no action available for the device at all.
Anyone encountered this and maybe has a suggestion?

Did you use the new Tuya app?

1 Like