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

**URL:** <https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313>\
**Category:** Apps\
**Tags:** app, unofficial, wifi, homey-pro\
**Created:** [November 25, 2019, 5:31pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313 "2019-11-25T17:31:12Z")\
**Posts on this page:** 20\
**Page:** 133

<div class="post-metadata">

**Author:** ![Ganescha](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ganescha/32/123104_2.png) [@Ganescha](https://community.homey.app/u/Ganescha)\
**Post date:** [November 2, 2025, 7:32am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2723 "2025-11-02T07:32:26Z")

</div>

I got it working now! Now the siren sounds when my door sensor is activated. This is great! I’m happy and extremely satisfied with my accomplishment 😁

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [November 2, 2025, 7:46am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2724 "2025-11-02T07:46:35Z")

</div>

These small wins are always nice!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 2, 2025, 2:48pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2725 "2025-11-02T14:48:39Z")

</div>

Nice to hear you succeeded.  
So, you’d better lower your expectations on things “just popping up” with Homey, usually they don’t 😬😉  
It’s not Home Assistant 😜

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [November 2, 2025, 3:44pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2726 "2025-11-02T15:44:24Z")

</div>

Well, in general things do just pop up. And as Paul Hibbert says:”It just woooorks, dunnit?”

Tuya on Homey is a different breed.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 2, 2025, 3:53pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2727 "2025-11-02T15:53:43Z")

</div>

I was referring to devices, Rudi. They don’t pop up just like that…  
In general we have to install each and everyone one when not using 3rd party hubs. At least with the apps I’m using 😁

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [November 2, 2025, 4:21pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2728 "2025-11-02T16:21:56Z")

</div>

And that was what Ganesha was doing, right? Add the siren and then after hitting add device in Homey and choosing a device from the Tuya app if it is supported, it should just pop up. At least in my case they do

---

<div class="post-metadata">

**Author:** ![Ganescha](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ganescha/32/123104_2.png) [@Ganescha](https://community.homey.app/u/Ganescha)\
**Post date:** [November 2, 2025, 6:29pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2729 "2025-11-02T18:29:33Z")

</div>

Thats funny, I got the Homey after buying a HA because I thought the Homey was more straight forward and more “click and play” 😃

I did see the post about the Tuya API and Athom not working together anymore a little bit too late. In fact I Google first if the Homey supported Tuya and got a yes, then I bought the Homey. Got a little bit misled and it’s my own fault of course. The Homey is a wonderful machine nonetheless, I’m glad that I got it working, BUT I hope Athom/Homey could solve the problem with Tuya in the near future because I think people will go for the HA alternative more and more as it becomes more user friendly. And all the guides that’s do exist for the HA is enormous. But I’m not giving up on Homey just yet, to expensive device to let it go… I just need to get the disconnected thing sorted as well 😎

---

<div class="post-metadata">

**Author:** ![luca\_reina](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luca_reina/32/78928_2.png) [@luca\_reina](https://community.homey.app/u/luca_reina)\
**Post date:** [November 2, 2025, 6:49pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2730 "2025-11-02T18:49:18Z")

</div>

Maybe this time it’s really happening! 😄 Doekse’s message is from just a couple of hours ago!  
Here’s the link: [https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/1079](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/1079)

 ![Screenshot 2025-11-02 alle 19.44.06](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e54a51783ea548d5a8715facb2209d8660ef47f6.png)

 ![Screenshot 2025-11-02 alle 19.44.34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/20418b84918da66c2628ea54fc3cdfba7c9586c5.png)

---

<div class="post-metadata">

**Author:** ![Einar\_Vaagland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/einar_vaagland/32/121283_2.png) [@Einar\_Vaagland](https://community.homey.app/u/Einar_Vaagland)\
**Post date:** [November 3, 2025, 11:25pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2731 "2025-11-03T23:25:56Z")

</div>

#### **While waiting for the official Tuya app to start working again in Homey, I decided to try Tuya Cloud and see if I could make AI integrate more devices, and it worked!**

I’ve added almost every Tuya device Homey ignores, like temperature sensors, soil sensors, a universal remote and the movement detector from a camera, in just a few minutes!

You’ll need to:

- Download **Cursor** or another AI coding app.

- Downloading the **Tuya Cloud github repository**.

- Install **Homey CLI**.

- Add your devices in the **Tuya mobile app**.

- Create a **Tuya cloud project** using the credentials from the Tuya mobile app: [Tuya Smart Developer Center](http://platform.tuya.com/cloud)

- Find your devices in the project’s **Devices** , select one and click **Debug Device**.

- Copy **Device information** , **Standard Instruction Set** and **Standard Status Set,** and ask Cursor to add a new device.

- Open a terminal window in the folder of the downloaded repository, and run **homey app install** to upload it to **Homey**.

- Open **Homey** , configure the **Tuya Cloud app** with api key and password from the project in the Tuya web app.

- Add a **New device** , choose **Tuya Cloud** , choose the category of devices, and your device should appear.

AI made it so easy anyone could make this work. Some devices like Fingerbot shows as offline in the web app, so I am unable to operate it. Next I’ll try to make my camera capture an image and display it.

I’ve just started looking into this, but ideally new device ids and settings should be collected in a public list. Maybe someone knows the Tuya Cloud code well enough to modify it so we can just drop in a yaml file for each device?

I was unable to upload all links and images, you’ll find them here:

> **[GitHub - EinarVaagland/Homey-Tuya-Cloud-add-devices-using-AI: How to add new...](https://github.com/EinarVaagland/Homey-Tuya-Cloud-add-devices-using-AI/tree/main)**
>
> main

Tuya cloud:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/2915742c6186c28e721a56393883cbdd48f03477.png)

---

<div class="post-metadata">

**Author:** ![Ganescha](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ganescha/32/123104_2.png) [@Ganescha](https://community.homey.app/u/Ganescha)\
**Post date:** [November 4, 2025, 9:19pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2732 "2025-11-04T21:19:46Z")

</div>

Whats the point of doing this? I mean the original way that’s is explained in 1 post works like a charm. Sure I have to use a virtual device but that doesn’t Mather, it works just as same. can you explain the benefits of doing your way, cause I don’t get it?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 4, 2025, 10:40pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2733 "2025-11-04T22:40:17Z")

</div>

> [@Einar\_Vaagland](#):
>
> in just a few minutes!

I appreciate your enthusiasm and solutions. But please keep things realistic, the average TC app user isn’t a coder, and AI makes stuff up. This will take hours if not days for non-coders;  
I mean who even knows what “Install Homey CLI” means for example?  
(meaning: you assume everyone knows)

So, can I make a suggestion to some other ways to add the new device support, which the app users can use through (app store) app updates?

1. Why not transfer the app to yourself, and add the easy stuff for all app users? Jurgen Heine is open to transfer.

2. Or at least create pull requests: afaik Jurgen is still so kind to merge valid PR’s and publish it as app updates.

Thanks,  
Peet

> [@Einar\_Vaagland](#):
>
> waiting for the official Tuya app to start working again in Homey

I’m afraid it can be a long wait, but, who knows, soon™ is quite a flexible ETA 😉

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [November 5, 2025, 6:12am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2734 "2025-11-05T06:12:30Z")

</div>

> [@Ganescha](#):
>
> Whats the point of doing this? I mean the original way that’s is explained in 1 post works like a charm. Sure I have to use a virtual device but that doesn’t Mather, it works just as same. can you explain the benefits of doing your way, cause I don’t get it?

I think the benefit here is that you actually add new devices to your own version of the app. It’s a little bit like how you can add devices to the Tuya Zigbee app

> [@Peter\_Kawa](#):
>
> Why not transfer the app to yourself, and add the easy stuff for all app users? Jurgen Heine is open to transfer.

Is he open to transfer? If someone would take over ownership of this app that would be great! So far this is still the best way to include Tuya devices in Homey

---

<div class="post-metadata">

**Author:** ![Ganescha](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ganescha/32/123104_2.png) [@Ganescha](https://community.homey.app/u/Ganescha)\
**Post date:** [November 5, 2025, 8:28am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2735 "2025-11-05T08:28:40Z")

</div>

Absolutely, but like Peter said, doesn’t feel so user friendly and that what’s Homey is about I think. But yes, good for people maybe that has the knowledge.

---

<div class="post-metadata">

**Author:** ![Rudi\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudi_hendrix/32/31931_2.png) [@Rudi\_Hendrix](https://community.homey.app/u/Rudi_Hendrix)\
**Post date:** [November 5, 2025, 8:48am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2736 "2025-11-05T08:48:58Z")

</div>

Best option is of course if a Athom official app gets created for all Tuya devices.

Second best is a maintained working Tuya community app. Like this Tuya Cloud app. However, the current one isn’t maintained anymore. The RAW commands and tap-to-run solutions will most likely work, but also entail quite some steps involved.

If Jürgen Heine is not willing to handover the current app or no one wants to take over the app development, perhaps @Einar_Vaagland can share his development version of the app. The only thing people need to do then is to install that version of the app. That is something that is already explained in step by step guides here on the community. And that way people will have the Tuya Cloud app with all current functionality and the added devices that Einar has time to add.

---

<div class="post-metadata">

**Author:** ![Einar\_Vaagland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/einar_vaagland/32/121283_2.png) [@Einar\_Vaagland](https://community.homey.app/u/Einar_Vaagland)\
**Post date:** [November 5, 2025, 10:59pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2738 "2025-11-05T22:59:47Z")

</div>

I guess I could set up a web server for users to submit their [Tuya Developer Platform](https://eu.platform.tuya.com/cloud/basic?id=p1704762917976twxwkf&toptab=related&region=EU&deviceTab=all) definitions, and have the AI upload new versions. 🤔

But ideally we should create an online device library of yaml files, and download the ones we need for our devices.

I haven’t had time to look at Jürgen Heine’s code yet, but this would be a flexible solution without the need for constant updates.

But most devices work with [Zigbee2MQTT](https://www.zigbee2mqtt.io/), so maybe a conversion of their drivers is a simpler way forward, I’ve had success with the AI creating drivers for it.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/c/dc681c7c0d465c58f2dfa4b5a895d2c5190ae4a5.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 6, 2025, 12:08am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2739 "2025-11-06T00:08:00Z")

</div>

> [@Rudi\_Hendrix](#):
>
> Is he open to transfer?

Yea I’m sure Jurgen is liking to transfer the app to “new blood”, Rudi.  
Quote:

> [@Jurgen\_Heine](#):
>
> because I think it’s important that devices stay supported, and if an other developer wants to take over the app, this can be arranged.

.

> [@Rudi\_Hendrix](#):
>
> Best option is of course if a Athom official app gets created for all Tuya devices.

I don’t think many would disagree on that, Rudi. However, this “promise” below, doesn’t give me much hope to a “quick”, (like a few months), release. But, I was wrong on that before 😬🤭

> [@\[APP\] Tuya - Connect any Tuya device with Homey (by Tuya Inc. / Athom)](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/1079):
>
> It’s on the roadmap, we’ll likely look into this before the end of the year. Quite a few projects are ongoing with our development agencies, and they’re working their way through them. A new app will most likely be created since we don’t want to break the current app for users where it is still working. Keep you posted!

And Athom founders saying it’s all crap and don’t recommend Tuya to anyone, does not help here. As posted before:  
[https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2508](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2508)

---

<div class="post-metadata">

**Author:** ![Doekse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doekse/32/109415_2.png) [@Doekse](https://community.homey.app/u/Doekse)\
**Post date:** [November 6, 2025, 9:41am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2740 "2025-11-06T09:41:49Z")

</div>

> [@Peter\_Kawa](#):
>
> However, this “promise” below, doesn’t give me much hope to a “quick”, (like a few months), release. But, I was wrong on that before

My best guess is sometime in Q1 at the latest, but it could end up being a Christmas present. It all depends on how the other projects move along 😉

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [November 6, 2025, 11:48am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2741 "2025-11-06T11:48:17Z")

</div>

I did reverse engineer the login from the Tuya Home Assistant integration some time ago. However I don’'t know how to continue with it, since the Tuya API appearantly uses some kind of extra signing system.

Here is the code if someone needs it. This is only for login, since I couldn’'t get anything else to work.

```auto
import axios from 'axios';
import readline from 'readline';
import qrcode from 'qrcode-terminal';
import mqtt from 'mqtt';
import crypto from 'crypto';
import { v4 as uuidv4 } from 'uuid';

const TUYA_CLIENT_ID = 'HA_3y9q4ak7g4ephrvke';
const TUYA_SCHEMA = 'haauthorize';
const LOGIN_API_URL = 'https://apigw.iotbing.com';
let API_BASE_URL = '';

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

async function getQRCode(userCode) {
  const url = `${LOGIN_API_URL}/v1.0/m/life/home-assistant/qrcode/tokens?clientid=${TUYA_CLIENT_ID}&usercode=${userCode}&schema=${TUYA_SCHEMA}`;
  const response = await axios.post(url);
  return response.data.result;
}

async function pollLoginResult(token, userCode) {
  const url = `${LOGIN_API_URL}/v1.0/m/life/home-assistant/qrcode/tokens/${token}?clientid=${TUYA_CLIENT_ID}&usercode=${userCode}`;
  for (let i = 0; i < 30; i++) {
    const res = await axios.get(url);
    if (res.data.success) {
      return res.data.result;
    }
    await new Promise(resolve => setTimeout(resolve, 1000));
  }
  throw new Error('Login timed out');
}
  

async function main() {
  rl.question('Enter your Tuya user code: ', async (userCode) => {
    try {
      const qr = await getQRCode(userCode);
      console.log(qr);
      console.log('Scan this QR code with the Tuya app:');
      const qrtoken = qr.qrcode;
      const finalqr = 'tuyaSmart--qrLogin?token=' + qr.qrcode;
      qrcode.generate(finalqr, { small: true });

      await new Promise(resolve => {
        rl.question('\nPress Enter after scanning the QR code...', () => resolve());
      });
      console.log(qr);
      const loginResult = await pollLoginResult(qrtoken, userCode);
      console.log(loginResult);
      API_BASE_URL = loginResult.endpoint;

    } catch (error) {
      console.error('Error:', error.message);
    } finally {
      rl.close();
    }
  });
}

main();

```

---

<div class="post-metadata">

**Author:** ![Amarpreet\_Singh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/amarpreet_singh/32/121047_2.png) [@Amarpreet\_Singh](https://community.homey.app/u/Amarpreet_Singh)\
**Post date:** [November 7, 2025, 4:17am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2742 "2025-11-07T04:17:54Z")

</div>

Hello everyone…. I am not sure where to sign up for the API and secret code. Does anyone have the link for where I can sign up?

Thanks so much!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 7, 2025, 5:41am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/2743 "2025-11-07T05:41:27Z")

</div>

Have you read the first post of this thread?

[Previous page](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313.md?page=132)

[Next page](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313.md?page=134)
