# \[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:** 88

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 21, 2023, 8:34pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1790 "2023-11-21T20:34:46Z")

</div>

Got it working. So here is what I did.

- First i rechecked en relinked the project in Tuya cloud to my smart-life app. suspecting maybe the link was off or broken. Didn’t fix anything.
- The thing that got me rechecking the config though was wat you and I saw as a difference - the useraccount. Somehow something with the useraccount affected what I was getting. And it HAD to be something unrelated to the api link/secret.

So - I checked the tuya cloud app config and sure enough - apparently the API key /secret was correctly filled - but my username was not (password was filled and valid though).  
Refilled my username and now the messages come rolling in.

So when someone has this specific behaviour:

- Using the Tuya Cloud app, you can link and control your devices
- But you do not see the RAW messages appear with peters flow. recheck if you actually have the correct user/password data. This is separate from the API key/secret - because that part is obviously working.

Thanks @Peter_Kawa !

---

<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 22, 2023, 4:52am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1791 "2023-11-22T04:52:24Z")

</div>

Marcus, it’s all explained in post #1  
(hint: tap-to-run / RAW commands)

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [November 22, 2023, 7:24am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1792 "2023-11-22T07:24:39Z")

</div>

I just read your article on that Peter. To my understanding that’s to control devices but how can I make these flows if they don’t show up in the first place? Can you explain why one floor heating is appearing and the other two not? It must have something to do with using Tuya Cloud because I had the same problem on Homebridge when using Tuya Cloud plugin instead of Tuya Web. I’ve read post #1 several times and it still not clear to me how I can make all the devices show up in Homey. Or perhaps it’s just not possible for some?

---

<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 23, 2023, 2:09am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1793 "2023-11-23T02:09:10Z")

</div>

Sorry, the app is not actively maintained.  
So it’s sort of impossible, without help of an external developer, to find out why only one thermostat can be added.  
I just pointed you to the workaround, _ **you don’t need to add the other thermostats to the app** _:  
with RAW commands, you can receive any Tuya device update, and you can send commands to any Tuya device.

In the several posts above yours, you’ll see Vincent grabbing the thermostat values.

---

<div class="post-metadata">

**Author:** ![Jepke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jepke/32/80488_2.png) [@Jepke](https://community.homey.app/u/Jepke)\
**Post date:** [November 23, 2023, 8:00pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1794 "2023-11-23T20:00:41Z")

</div>

> <https://github.com/jurgenheine/com.tuya.cloud/blob/d78f5869cd416a6f813e4547ee3f39464a94aad0/drivers/tuyabasedriver.js#L72>

Thermostats should have `wk` as category, if not they currently dont work with the tuya cloud app. It is possible that your missing thermostats have a different category. You can check this through the tuya developer website, device info page.

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [November 23, 2023, 9:52pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1795 "2023-11-23T21:52:02Z")

</div>

I made this flow, perhaps it’s faulty but it doesn’t return anything to my timeline when I switch devices in the Smartlife app.

 ![IMG_2170](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cb77aac16b8c7f5344ee78833db422c62f1adf0a.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 24, 2023, 3:53am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1796 "2023-11-24T03:53:18Z")

</div>

Sounds familiar, like this

> [@\[App\]\[Pro\] Tuya Cloud](https://community.homey.app/t/app-pro-tuya-cloud/21313/1787):
>
> @Peter_kawa Thanks ! much obliged – I’ll post my config – in the exact same flow that you provided for getting it to work- so I can show where we’re stuck See – my dashboard for [https://eu.iot.tuya.com/cloud](https://eu.iot.tuya.com/cloud) If I compare my info (above) with your layout (below) – nothing stands out. One thing I notice is that my source is listed as the account starts with gg- followed by a longer number – provided in the registration by Tuya – where I noticed the first letter of your ‘source’ is ‘pe…

---

<div class="post-metadata">

**Author:** ![Howchuen\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/howchuen_lee/32/80378_2.png) [@Howchuen\_Lee](https://community.homey.app/u/Howchuen_Lee)\
**Post date:** [November 24, 2023, 7:12am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1797 "2023-11-24T07:12:55Z")

</div>

Hi Vincent and @Peter_Kawa,

I’ve looked through everything that had been posted about getting raw commands, and I have checked my username AND password for my Tuya Smart app as well as in the Tuya Cloud App config. I am still not getting any RAW messages with the flow created by @Peter_Kawa.

Any ideas?

Thanks in advance guys.

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 24, 2023, 7:15am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1798 "2023-11-24T07:15:19Z")

</div>

@Howchuen_Lee ;

- did you also follow the steps in crosschecking debug logs within Tuya Cloud - do you see the devices there ?
- do you have other devices connected on your Homey through your Tuya cloud account that do work ?
- Is the project correctly linked to your smart-life or tuya app ?

and maybe - just to make sure - post your flow.

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 24, 2023, 7:19am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1799 "2023-11-24T07:19:21Z")

</div>

That icon for your inbound message seems off to me. You are using a tag to identify Tuya Cloud messages. You should use the Tuya cloud app itself for checking inbound messages.

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [November 24, 2023, 7:55am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1800 "2023-11-24T07:55:13Z")

</div>

That’s the way it’s displayed in the iOS app. Don’t know why. This is from the web app

 ![IMG_2171](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bd9f84cf405aaaf128c9d18176279e10b0f90b02.jpeg)

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [November 24, 2023, 7:57am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1801 "2023-11-24T07:57:40Z")

</div>

I checked and double checked. User and password are the same in iot cloud, smartlife app and tuya cloud app on homey. Debug logs are enabled in iot cloud and visible in the device log page. Still no messages

---

<div class="post-metadata">

**Author:** ![Howchuen\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/howchuen_lee/32/80378_2.png) [@Howchuen\_Lee](https://community.homey.app/u/Howchuen_Lee)\
**Post date:** [November 24, 2023, 8:26am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1802 "2023-11-24T08:26:10Z")

</div>

Hi Vincent,

Thanks for the speedy reply.

I did check the device logs within Tuya Cloud and the devices are there and functioning.

None of my Tuya devices are able to be integrated directly into Homey, but I have been able to control all my Tuya devices using Tap to Run scenes from the Tuya Cloud.

The project is linked to my Tuya Smart App.

 ![Screenshot 2023-11-24 at 16.18.38](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/470b6feb6a5d7bfcfc81eef5c6b02c53594221c0.png)  
this is the flow that I’m using which is actually the flow that Peter\_Kawa has uploaded in previous posts.

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 24, 2023, 8:37am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1803 "2023-11-24T08:37:48Z")

</div>

So - I guess the api link is working then - otherwise it would not allow you to control the the scenes.  
Then it’s back to the user again. The Tuya Cloud app actually seems to allow saving with an invalid config - although it will generate a one time error in the top such as skill id invalid. Maybe the user/password config shown seems valid - but it could be wise to check again ? (re-enter- and save ? - check if the credentials pass without notification in saving the config ?). Just saying - it happened to me - it could happen to you ;-0

---

<div class="post-metadata">

**Author:** ![Howchuen\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/howchuen_lee/32/80378_2.png) [@Howchuen\_Lee](https://community.homey.app/u/Howchuen_Lee)\
**Post date:** [November 24, 2023, 8:59am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1804 "2023-11-24T08:59:35Z")

</div>

I’ve tried it before and I’ve managed to get it saving without returning with any error codes. ☹ any other ideas what could be the issue?

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 24, 2023, 9:52am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1805 "2023-11-24T09:52:05Z")

</div>

I don’t exactly know what to tell you. So I would suggest two things now:

1. try to unlink - and link your smartlife account to your developer project. This does not break any existing links to added devices as far as I know and experienced myself. Linking is easy:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/6/16b9063cb7bb3310d3ad2815091ecccead73334e.png)

This re-establishes the link between your account (as entered in the config of the tuya cloud homey app) - and the cloud project.

1. if that doesn’t do anything for you - then I’d look into more help debugging at even a more basic level - finding out which raw communication is coming in on the homey - before flow processes it. This is debug info at the system level of which I personally have no knowledge. Maybe a portmirror on your switch could also provide some info - but it could be very hard to find out if messages you receive actually relate to either the API or to raw eventdata.

If you look at other threads - even from other home- automation solutions - it will tell you almost always the same - it’s a problem related to the user-config. Checking out if all needed tuya cloudsubscriptions are still active is sometimes also suggested. Maybe log a call with Tuya if none of this works.

---

<div class="post-metadata">

**Author:** ![Marcus\_Bitterling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcus_bitterling/32/80103_2.png) [@Marcus\_Bitterling](https://community.homey.app/u/Marcus_Bitterling)\
**Post date:** [November 24, 2023, 7:57pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1806 "2023-11-24T19:57:53Z")

</div>

Did the unlink as well. Not working unfortunately.  
Very strange. I’m out of options I guess

---

<div class="post-metadata">

**Author:** ![Vincent\_Verbon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vincent_verbon/32/80597_2.png) [@Vincent\_Verbon](https://community.homey.app/u/Vincent_Verbon)\
**Post date:** [November 24, 2023, 8:32pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1807 "2023-11-24T20:32:38Z")

</div>

It is - indeed strange. You start grasping and guessing to get it to work then…  
You could maybe try (but this is in no way sound or very well motivated advice) to remove your username info and just let the API data as it is. save config - restart app - then re-enter -save and restart ?

It would help to know how exactly the username info is used to filter incoming messages by the tuya cloud homey app - in addition to the process it uses to just link the devices.  
As it is - a non-working user/pass combination does not prevent the devices from being added, controlled and reporting their status. However - RAW data is also received for devices that are already linked by the api key alone. So these processes seem to indeed follow distinct paths - or at least it seems that way.

If someone is more familiar with the internals of these two processes - it could maybe help understand the mechanics of the raw data flow in more depth- and help identify specific points to probe.

---

<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 25, 2023, 4:49am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1808 "2023-11-25T04:49:27Z")

</div>

> [@Howchuen\_Lee](#):
>
> None of my Tuya devices are able to be integrated directly into Homey, but I have been able to control all my Tuya devices using Tap to Run scenes from the Tuya Cloud.

Hmm… My guess is you use legacy API and not the official API.  
Select “Official API” from the dropdown in app settings:

 ![Screenshot_20231125-054733_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/01cfddf71e3d011d936fead23404411d8df563c9.jpeg)

---

<div class="post-metadata">

**Author:** ![Howchuen\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/howchuen_lee/32/80378_2.png) [@Howchuen\_Lee](https://community.homey.app/u/Howchuen_Lee)\
**Post date:** [November 25, 2023, 5:28am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/1809 "2023-11-25T05:28:06Z")

</div>

I have triple check and I am using only official API any other configs that you think I could possibly have messed up? Sorry for being such a baby, but I have tried many times and I’m almost at my wits end hahaha

[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=87)

[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=89)
