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

<div class="post-metadata">

**Author:** ![Jurgen\_Heine](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_heine/32/15323_2.png) [@Jurgen\_Heine](https://community.homey.app/u/Jurgen_Heine)\
**Post date:** [August 28, 2022, 10:57am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/878 "2022-08-28T10:57:23Z")

</div>

You say that there is a mode property you see with value “auto”. But this probably a string which changes when you set other mode. You have to find all the possible values an convert them to Homey capability. In this case you have to create a custom Homey capabilty and map them with functions( from Homey to Tuya and the other way arround).

---

<div class="post-metadata">

**Author:** ![Jurgen\_Heine](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_heine/32/15323_2.png) [@Jurgen\_Heine](https://community.homey.app/u/Jurgen_Heine)\
**Post date:** [August 28, 2022, 11:00am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/879 "2022-08-28T11:00:27Z")

</div>

Can you post the json of your device from debu log?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 28, 2022, 1:29pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/880 "2022-08-28T13:29:58Z")

</div>

That’s the JSON from pairing dialog:

```auto
{
  active_time: 1661597244,
  biz_type: 0,
  category: 'qn',
  create_time: 1659722759,
...
  model: 'DXCH0809',
  name: 'Threesixty',
  online: true,
...
  product_name: 'ThreeSixty',
  status: [
    { code: 'switch', value: false },
    { code: 'temp_set', value: 18 },
    { code: 'temp_current', value: 23 },
    { code: 'mode', value: 'auto' }
  ],
  sub: false,
  time_zone: '+02:00',
...
  update_time: 1661597244,
...
  devices: [...'],
  functions: [
    {
      code: 'switch',
      desc: 'switch',
      name: 'switch',
      type: 'Boolean',
      values: '{}'
    },
    {
      code: 'temp_set',
      desc: 'temp set',
      name: 'temp set',
      type: 'Integer',
      values: '{"unit":"℃","min":18,"max":30,"scale":0,"step":1}'
    },
    {
      code: 'mode',
      desc: 'mode',
      name: 'mode',
      type: 'Enum',
      values: '{"range":["auto"]}'
    }
  ]
}

```

I can see all status values and funcions and even the mode array.

The capabilities are added dynamically depending on the found status/functions. The target temperature is adjusted deoending on the Tuya settings (min/max/step).

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39f5bc1ab0369094f69c328e277f6415d295e47e.png)

As mode, only “auto” is added to a custom capability:

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/986eb9bcb81373af7838893e9ab852b3880f416f.png)

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 28, 2022, 3:59pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/881 "2022-08-28T15:59:41Z")

</div>

I am having no joy here, I have removed my device, a 2 gang wifi switch, Set up the Tuya IOT platform and got the API access and API Access secret. I have set API to use official only, username is my email, password is the Tuya one although I had previously used SmartLife password. entered the API and the secret and I have been getting the message 2406 Skill id invalid for about 6 hours now. I have restarted the app and same. I must be missing something but am open to suggestions as I currently can’t turn lights on and off in my shed. The device is a switch controlling two banks of lights.

---

<div class="post-metadata">

**Author:** ![Urknall78](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/urknall78/32/44982_2.png) [@Urknall78](https://community.homey.app/u/Urknall78)\
**Post date:** [August 28, 2022, 5:17pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/882 "2022-08-28T17:17:50Z")

</div>

why use tuya app on phone? is smart life App the same or worst?

little off topic  
I searched for 3 LED strips with 2 Meter RGB or rgbw and found one with App from lebro lampUX. can I connect this with Smart life App to control over homey?  
or maybe someone knows a cheap one and sent me a DM with link? need 3x 2 Meter. can use same controller. or 3 Controller. it’s for a pet Cage with 3 decks. so I need 3 stripes (sry for 2. part. a little bit of topic so answer over pn or dm, thanks)

---

<div class="post-metadata">

**Author:** ![Jurgen\_Heine](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_heine/32/15323_2.png) [@Jurgen\_Heine](https://community.homey.app/u/Jurgen_Heine)\
**Post date:** [August 28, 2022, 6:09pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/883 "2022-08-28T18:09:42Z")

</div>

@RonnyW, good job 🙂 👍. I have made small comment to your Pull request( wrong branch to merge). I found also a link to documentation about your device, links are in Pull request.

According documentation the property you are seeking should be “level” for the speed and the mode supports auto and smart. Strange that this level property is not returned and not in function object.

---

<div class="post-metadata">

**Author:** ![Jurgen\_Heine](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_heine/32/15323_2.png) [@Jurgen\_Heine](https://community.homey.app/u/Jurgen_Heine)\
**Post date:** [August 28, 2022, 6:21pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/884 "2022-08-28T18:21:14Z")

</div>

@Urknall78, it should not matter if you use Smart-life or Tuya app. Both should working. I use Smart-life myself and @Peter_Kawa has best results with Tuya app. Switching app sometimes helps because people are mixing credentials, the same for restting the passwords.

@Philip_Montgomery, Most important is that you follow the instructions and if you have an error, look at the eror codes and the FAQ in first post, this skill id is described with solution, just read.

---

<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:** [August 28, 2022, 6:29pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/885 "2022-08-28T18:29:48Z")

</div>

> [@Philip\_Montgomery](#):
>
> password is the Tuya one

(_restarting / waiting doesn’t solve Skill ID issue_)

You mean the Tuya mobile app?  
Using the same email + password for that one and the iot project doesn’t work.  
When you use the same email address, use an other password for the iot project

And, if Tuya mobile app: did you pick “Tuya”  
at the `Mobile app` dropdown at the settings page of TuyaCloud app?

---

<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:** [August 28, 2022, 7:21pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/886 "2022-08-28T19:21:59Z")

</div>

> [@Mariomark1541](#):
>
> Also did that and yes make tap to run scenes

Do you have any device installed using the Tuya Cloud app?  
I suspect your Tuya iot project setup to be not fully working yet.

---

<div class="post-metadata">

**Author:** ![marcel\_ridder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ridder/32/3771_2.png) [@marcel\_ridder](https://community.homey.app/u/marcel_ridder)\
**Post date:** [August 28, 2022, 7:23pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/887 "2022-08-28T19:23:28Z")

</div>

just installed the app and create everything, so far so good.  
But when I insert everything in the Tuya homey app I get an error 241 skill

I really don’t know what to do, I read the FAQs many times.

I used the login of the smarthome app on my iOS device, and the country code is 825, I looked for that code but don’t find. I used a code form Central Europe from the list. The project has also Central Europe .

I changed between Tuya and smart home but nothing worked. The username is yellow, I think that is the problem??? its a gmail address but what can I use for that if that is the problem?

---

<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:** [August 28, 2022, 7:25pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/888 "2022-08-28T19:25:24Z")

</div>

Country code is `31` if you’re in NL.

> [@Peter\_Kawa](#):
>
> Using the same email + password for that one and the iot project doesn’t work.  
> When you use the same email address, use an other password for the iot project

Using gmail is not a problem.

> [@marcel\_ridder](#):
>
> The username is yellow,

You have to enter your TuyaSmart or SmartLife email address →   
From the manual at post #1:

 ![Screenshot_20220828-213059_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c0af4ab05cd235e71754889c68eb03b8099b5d82.jpeg)

---

<div class="post-metadata">

**Author:** ![marcel\_ridder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ridder/32/3771_2.png) [@marcel\_ridder](https://community.homey.app/u/marcel_ridder)\
**Post date:** [August 28, 2022, 7:37pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/889 "2022-08-28T19:37:37Z")

</div>

thnx for the quick help it worked now, everything saved. Made a new password,

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 28, 2022, 9:32pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/890 "2022-08-28T21:32:31Z")

</div>

> [@Jurgen\_Heine](#):
>
> To use the new API you should follow the same basic instruction as for Home assistant/ Homebridge.
> 
> 1. [Tuya IoT Platform Configuration](https://github.com/tuya/tuya-homebridge/wiki/Tuya-IoT-Platform-Configuration-Guide-Using-Smart-Home-PaaS?_source=d8fba44feeef4757f7f22a14c2295f3f)
> 2. Go to the setup page in Homey mobile app or Homey develloper portal
> 3. Set the APi to use to Official
> 4. The authorization key acces key and secret from step 1have to be filled in on the settings page.  
> The country code is used to determine which datacenter has to be used and must match with your android app and region of your project. Only the number is allowed, no leading zero’s or + sign. Look in the link for correct numbering, it can be different for some countries then the known phone prefix.  
> Username, Password are the same as with first login of the mobile app

1: Done  
2: Done  
3: Done  
4: Done  
5: Done, using Smartlife app credentials as that is the app I have been using. I did install the tuya app bit have not added any devices to it. It doesn’t matter which password I use (all 3, Smartlife, Tuya app and Tuya IOT have all got the same email but different passwords) I get the same error.  
Errro 2406: My cloud project was created today so after 25th May 2021  
Database is Central European as I’m in UK and that’s what Tuya say to use

I’m not sure what instruction I haven’t followed

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 28, 2022, 9:34pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/891 "2022-08-28T21:34:44Z")

</div>

In Homey app, Desired API is set to Use Official only.  
Mobile app is set to SmartLife as that’s what my devices are installed in.  
Does it matter that I don’t have any devices in tuya app?  
I used the SmartLife app to read the QR code on the Tuya IOT platform site

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 28, 2022, 9:41pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/892 "2022-08-28T21:41:41Z")

</div>

> [@Peter\_Kawa](#):
>
> Using the same email + password for that one and the iot project doesn’t work.

The passwords are different and I have selected SmartLife and used the credentials for that app in Homey app

---

<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:** [August 29, 2022, 11:34am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/893 "2022-08-29T11:34:36Z")

</div>

UK: Is Country code set to `44`?

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 29, 2022, 11:50am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/894 "2022-08-29T11:50:32Z")

</div>

It is, yes

---

<div class="post-metadata">

**Author:** ![Jurgen\_Heine](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jurgen_heine/32/15323_2.png) [@Jurgen\_Heine](https://community.homey.app/u/Jurgen_Heine)\
**Post date:** [August 29, 2022, 3:35pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/895 "2022-08-29T15:35:49Z")

</div>

New version to test channel with Heater support by @RonnyW.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 29, 2022, 3:43pm UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/896 "2022-08-29T15:43:31Z")

</div>

I completely missed the flow actions/trigger/conditions for the heater ☺  
Will be added soon… Controlling with the app/WebApp is already possible.

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [August 30, 2022, 8:14am UTC](https://community.homey.app/t/app-pro-tuya-cloud-this-app-allows-you-to-connect-homey-to-the-tuya-cloud/21313/897 "2022-08-30T08:14:05Z")

</div>

Morning, so now the error has gone, removed and readded the details in the app config screen. This is also after Homey updated to 8.0.5.  
Tuya Config settings save with no error, go to add devices screen, select Tuya, then Switch then get told to “Please configure the app first” I’m not getting any error messages from app config to say it has not configured. Is this a “wait half hour and try again”?

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

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