# \[APP\] Tuya - Connect any Tuya device with Homey (by Tuya Inc. / Athom)

**URL:** <https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779>\
**Category:** Apps\
**Tags:** app\
**Created:** [March 21, 2024, 3:55pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779 "2024-03-21T15:55:42Z")\
**Posts on this page:** 20\
**Page:** 23

<div class="post-metadata">

**Author:** ![Calijuri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/calijuri/32/84796_2.png) [@Calijuri](https://community.homey.app/u/Calijuri)\
**Post date:** [September 25, 2024, 1:57pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/464 "2024-09-25T13:57:02Z")

</div>

I did not know that. Thanks!

---

<div class="post-metadata">

**Author:** ![Bernd\_Gaykema](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernd_gaykema/32/112153_2.png) [@Bernd\_Gaykema](https://community.homey.app/u/Bernd_Gaykema)\
**Post date:** [September 27, 2024, 7:16am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/465 "2024-09-27T07:16:42Z")

</div>

It took some days to find out, but now I have the AdlarCastra Aurora 2 heatpump connected to Homey Pro. I can read many variables in Homey and made a flow to activate my floor heatpump the moment the Aurora 2 starts working.

For those who are dummies like myself:

- Add in Devices “Tuya - Unknown” and follow all the steps.
- In the Advanced Flow select the “Status xxx gets a new number value”
- For xxx I selected “compressor-strength” which returns a value in Hz: when 0 the Aurora is off.

I still cannot control the Aurora with Homey but the first steps have been made 😀 .

---

<div class="post-metadata">

**Author:** ![bayrambass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bayrambass/32/41905_2.png) [@bayrambass](https://community.homey.app/u/bayrambass)\
**Post date:** [September 29, 2024, 11:39am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/466 "2024-09-29T11:39:46Z")

</div>

Hi,

I am getting this error: Invalid Value: led\_type\_2

It is a Tuya 2 Gang dimmer. These are the device specifications:

```auto
{ “device”: { “active_time”: 1723816911, “biz_type”: 18, “category”: “tgq”, “create_time”: 1650747401, “icon”: “smart/icon/ay15327721968035jwx9/158754172045f19c21b2e.jpg”, “id”: “bf7cf056557c7a9f18qvnd”, “ip”: “”, “lat”: “”, “local_key”: “”, “lon”: “”, “model”: "105B ", “name”: “Eet tafel lamp”, “online”: true, “owner_id”: “”, “product_id”: “kqm0mqzb5zazewsb”, “product_name”: “WiFi 2Gang Dimmer Module”, “status”: [{ “code”: “switch_led_1”, “value”: false }, { “code”: “bright_value_1”, “value”: 802 }, { “code”: “brightness_min_1”, “value”: 21 }, { “code”: “led_type_1”, “value”: “incandescent” }, { “code”: “switch_led_2”, “value”: false }, { “code”: “bright_value_2”, “value”: 651 }, { “code”: “brightness_min_2”, “value”: 10 }, { “code”: “led_type_2”, “value”: “LED” }, { “code”: “countdown_2”, “value”: 0 }, { “code”: “work_mode”, “value”: “white” }], “sub”: false, “time_zone”: “+02:00”, “uid”: “”, “update_time”: 1727382043, “uuid”: “” }, “specifications”: { “category”: “tgq”, “functions”: [{ “code”: “switch_led_1”, “type”: “Boolean”, “values”: “{}” }, { “code”: “bright_value_1”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “brightness_min_1”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “led_type_1”, “type”: “Enum”, “values”: “{"range":["incandescent","halogen"]}” }, { “code”: “switch_led_2”, “type”: “Boolean”, “values”: “{}” }, { “code”: “bright_value_2”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “brightness_min_2”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “led_type_2”, “type”: “Enum”, “values”: “{"range":["incandescent","halogen"]}” }, { “code”: “countdown_2”, “type”: “Integer”, “values”: “{"min":0,"max":86400,"scale":0,"step":1}” }, { “code”: “work_mode”, “type”: “Enum”, “values”: “{"range":["white"]}” } ], “status”: [{ “code”: “switch_led_1”, “type”: “Boolean”, “values”: “{}” }, { “code”: “bright_value_1”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “brightness_min_1”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “led_type_1”, “type”: “Enum”, “values”: “{"range":["incandescent","halogen"]}” }, { “code”: “switch_led_2”, “type”: “Boolean”, “values”: “{}” }, { “code”: “bright_value_2”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “brightness_min_2”, “type”: “Integer”, “values”: “{"min":10,"max":1000,"scale":0,"step":1}” }, { “code”: “led_type_2”, “type”: “Enum”, “values”: “{"range":["incandescent","halogen"]}” }, { “code”: “countdown_2”, “type”: “Integer”, “values”: “{"min":0,"max":86400,"scale":0,"step":1}” }, { “code”: “work_mode”, “type”: “Enum”, “values”: “{"range":["white"]}” } ] }, “data_points”: [{ “code”: “led_switch_1”, “custom_name”: “”, “dp_id”: 1, “name”: “Switch1”, “time”: 1727425264035, “type”: “bool”, “value”: false }, { “code”: “bright_value_1”, “custom_name”: “”, “dp_id”: 2, “time”: 1727386681411, “type”: “value”, “value”: 802 }, { “code”: “brightness_min_1”, “custom_name”: “”, “dp_id”: 3, “time”: 1727020771960, “type”: “value”, “value”: 21 }, { “code”: “led_type_1”, “custom_name”: “”, “dp_id”: 4, “time”: 1727020772585, “type”: “enum”, “value”: “incandescent” }, { “code”: “countdown”, “custom_name”: “”, “dp_id”: 6, “time”: 1727020769595, “type”: “value”, “value”: 0 }, { “code”: “led_switch_2”, “custom_name”: “”, “dp_id”: 7, “name”: “Switch2”, “time”: 1727020770058, “type”: “bool”, “value”: false }, { “code”: “bright_value_2”, “custom_name”: “”, “dp_id”: 8, “time”: 1727020770437, “type”: “value”, “value”: 651 }, { “code”: “brightness_min_2”, “custom_name”: “”, “dp_id”: 9, “time”: 1650747401925, “type”: “value”, “value”: 10 }, { “code”: “led_type_2”, “custom_name”: “”, “dp_id”: 10, “time”: 1727020772779, “type”: “enum”, “value”: “LED” }, { “code”: “countdown_2”, “custom_name”: “”, “dp_id”: 12, “time”: 1727020769598, “type”: “value”, “value”: 0 }, { “code”: “work_mode”, “custom_name”: “”, “dp_id”: 13, “time”: 1650747401925, “type”: “enum”, “value”: “white” }] }

```

See screenshot:

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

I have tried restarting, re-adding device etc. Nothing works. Does this something to do with the Tuya Homey app which is not supported with this dimmer?

---

<div class="post-metadata">

**Author:** ![Esset](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/esset/32/39038_2.png) [@Esset](https://community.homey.app/u/Esset)\
**Post date:** [October 1, 2024, 4:49pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/468 "2024-10-01T16:49:53Z")

</div>

I cannot add devices at all. Tried both official and experimental app versions. Tried uninstall and re-install app. Updated homey to latest version. When logging in to add devices from mobile it loads forever. When trying from pc it loads and says token already authenticated if I try again. No devices will add to homey however I try. I have 3 plugs that just won’t add…

---

<div class="post-metadata">

**Author:** ![Bernd\_Gaykema](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernd_gaykema/32/112153_2.png) [@Bernd\_Gaykema](https://community.homey.app/u/Bernd_Gaykema)\
**Post date:** [October 1, 2024, 6:43pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/469 "2024-10-01T18:43:46Z")

</div>

Followed these instructions?

_INSTRUCTIONS_  
_The Tuya App for Homey is compatible with both the ‘Tuya Smart’ and ‘Smart Life’ apps for iOS and Android. Before connecting your Tuya-enabled devices to Homey, ensure they are first linked to one of these apps._

Your 3 plugs are connected to one of these 2 apps?

---

<div class="post-metadata">

**Author:** ![Esset](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/esset/32/39038_2.png) [@Esset](https://community.homey.app/u/Esset)\
**Post date:** [October 1, 2024, 6:58pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/470 "2024-10-01T18:58:41Z")

</div>

Yes.  
Devices works great from the tuya smart app.

OK!  
Update on the 10th try:

Another laptop with win11 and chrome (instead of win10 and edge).  
connected to ssid WiFi for IoT at home (same network, just different SSID)

When empty box comes up with text “new devices found” I clicked the empty space and THEN it loaded icons for my plugs to connect.

Seems like a render issue of the popup window that won’t populate with devices unless user inputs on the box. Like an invisible “confirm button” after message of new devices found.

---

<div class="post-metadata">

**Author:** ![bayrambass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bayrambass/32/41905_2.png) [@bayrambass](https://community.homey.app/u/bayrambass)\
**Post date:** [October 2, 2024, 12:14am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/471 "2024-10-02T00:14:54Z")

</div>

Changed it

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [October 2, 2024, 7:51am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/472 "2024-10-02T07:51:49Z")

</div>

Don’t know exactly what you did, because it looked really weird. That’s why I corrected it myself.  
The reason why codes should be written in pre-formatted text is, that a post is not several pages long. In addition, the code can now be easily copied.

---

<div class="post-metadata">

**Author:** ![bayrambass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bayrambass/32/41905_2.png) [@bayrambass](https://community.homey.app/u/bayrambass)\
**Post date:** [October 2, 2024, 7:38pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/473 "2024-10-02T19:38:30Z")

</div>

I understand sorry for the misunderstanding. Not very active on forums.

I also just saw that the Tuya dimmer is fully functional now. I didn’t do anything and don’t see any new updates. Did something change?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [October 3, 2024, 8:32am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/474 "2024-10-03T08:32:49Z")

</div>

No problem, Atilla.

Because I don’t use this Tuya app and therefore I have also no Tuya dimmer in use, I’m not able to help you, sorry.  
But I’m sure you will be helped. @Doekse and @Peter_Kawa, do you have any ideas?  
(Sorry to mention you, but you are the only Tuya experts I remembered spontaneously)

---

<div class="post-metadata">

**Author:** ![Olivier\_Arthus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olivier_arthus/32/88909_2.png) [@Olivier\_Arthus](https://community.homey.app/u/Olivier_Arthus)\
**Post date:** [October 4, 2024, 10:35am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/475 "2024-10-04T10:35:29Z")

</div>

Hello

I got a Tuya presence sensor and I was able to integrate it in Homey, but only:

- using the official Tuya app
- declaring is as “other” device type. I tried the sensor device but it did not work (it is for motion sensor I guess)

The device shows up in Homey, but with not much in there at all

![Capture d’écran 2024-10-04 à 12.24.03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48680dfed344e08c52421d6be30207ac20e71357.png)

there is no logo nor any kind of setting. Message when I open the device is pretty clear

 ![Capture d’écran 2024-10-04 à 12.25.32](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e082269ffa85b6e3c49cd30ac93579705f30815b.png)

In advanced settings, there is a lot of info, but too technical for me

 ![Capture d’écran 2024-10-04 à 12.26.41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/b/7b493fa842ba5501ab95620e53e7138623bb163b.png)

The fact that I cannot control it in Homey is not a problem. i can do the setup in Tuya, all I need is to use the presence detection in a flow in Homey  
When I try to create a flow, I need you help, I see these cards

![Capture d’écran 2024-10-04 à 12.29.35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/8267d1c50b6926bc93014cfa2a99359031e66447.png)

When I try one of the cards, I have no idea I should select to get the alarm motion is triggered. I have some kind of list but I don’t know the values

 ![Capture d’écran 2024-10-04 à 12.33.02](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/63e902c3ba66004993096f8cc204eba710f5bdef.png)

Any idea how I can find info? Maybe in the Tuya documentation (if I find it) or maybe with the info in the adavanced settings?

Thanks

PS: this sensor works very well in Tuya and is very cheap (12€) so I’m really keen on getting it to work

---

<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:** [October 4, 2024, 4:34pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/476 "2024-10-04T16:34:11Z")

</div>

Almost there.  
The “you can not control it” is a ~~stupid~~ confusing remark, many think something went wrong.

> ![1000035534](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/85fe69a36e25b24aecbea343a2f1d50123a5a2bb.jpeg)

They mean: you can not turn it on or off for example, but it can trigger your flows.

Add a When “Status code gets a new boolean value” card, and select a value from the dropdown.  
Now that sensor value, if Yes/No or True/False can trigger a flow

---

<div class="post-metadata">

**Author:** ![Olivier\_Arthus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olivier_arthus/32/88909_2.png) [@Olivier\_Arthus](https://community.homey.app/u/Olivier_Arthus)\
**Post date:** [October 4, 2024, 5:05pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/477 "2024-10-04T17:05:19Z")

</div>

Peter, thanks for trying to help  
The “cannot control” is not that stupid in the sense that I cannot access all the controls I have in the Tuya app, but it’s a side issue

Trying with the “Status code gets a new bolean value” gives me this list

 ![Capture d’écran 2024-10-04 à 19.13.00](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/64705c4240b2d528190a3cceefcf88cbf1241f3b.png)

which is not easy to understand and far from complete. For instance in the device there are several notions for motion detection (small move, large moove), I cannot find large move in the list.  
Also there is nothing to say motion detector went on / went off (which you need to switch the light off)

---

<div class="post-metadata">

**Author:** ![Bernd\_Gaykema](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernd_gaykema/32/112153_2.png) [@Bernd\_Gaykema](https://community.homey.app/u/Bernd_Gaykema)\
**Post date:** [October 5, 2024, 7:06pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/478 "2024-10-05T19:06:13Z")

</div>

Select the “Near Precence” in the Code field, select an AND, choose a LOGIC command, connect it to the WHEN and use the VALUE from the WHEN in the LOGIC command. Then select a THAN to do what you want to do in your flow.

 ![Tuya example](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/78af314668c21f375f6770501d8b70f86a861c39.png)

Here I control my second waterpump when the heatpump starts working.  
In other words, you need to use the Logic function to create the variable you can use in your flow.

What I learned is that you first create the connection, then the value of the WHEN is on top of your choice-list in the LOGIC function block.

---

<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:** [October 5, 2024, 8:14pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/479 "2024-10-05T20:14:32Z")

</div>

> [@Olivier\_Arthus](#):
>
> Peter, thanks for trying to help  
> The “cannot control” is not that stupid in the sense that I cannot access all the controls I have in the Tuya app, but it’s a side issue

YW!  
Well, that remark is a common one, not Tuya (app) related 😉

I agree it’s not easy with this sensor! A light or switch had been an easier start 😬

I would guess “small\_mov\_start” can be the motion Y/N detection.

You can just add timeline cards to each trigger event to discover what kind of motion / presence event triggers it.

“_breathe\_start_” is a funny one, to me it is.  
Sounds like “When you lie on the couch not breathing, it detects when you start breathing again” 🤪

Oh, you’ll sort of find similar capability names of the sensor in the phone app btw, when you temporarily add an automation and select “when device status changes”.

---

<div class="post-metadata">

**Author:** ![Olivier\_Arthus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/olivier_arthus/32/88909_2.png) [@Olivier\_Arthus](https://community.homey.app/u/Olivier_Arthus)\
**Post date:** [October 6, 2024, 7:54am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/480 "2024-10-06T07:54:14Z")

</div>

@Bernd_Gaykema and @Peter_Kawa  
thanks for your precious help.  
I have some elements to start working on it and let you know if I’m able to make it work.  
It will take me some time as i am not yet familiar with advanced flows and variables.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![holgerr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/holgerr/32/44451_2.png) [@holgerr](https://community.homey.app/u/holgerr)\
**Post date:** [October 15, 2024, 11:17am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/481 "2024-10-15T11:17:18Z")

</div>

The app has been working really well since the issues with the Tuya servers that caused readings updates for my T&H sensors from being registered on Homey. were addressed But sometime last night, it seems that readings updates broke again. I can get new readings by restarting the app, but they don’t get updated when readings change - they still change in the Tuya app…

---

<div class="post-metadata">

**Author:** ![MarcoRuiter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcoruiter/32/33528_2.png) [@MarcoRuiter](https://community.homey.app/u/MarcoRuiter)\
**Post date:** [October 15, 2024, 9:11pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/482 "2024-10-15T21:11:07Z")

</div>

yes i can confim. No more upates since this morning since 03:00

---

<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:** [October 15, 2024, 9:20pm UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/483 "2024-10-15T21:20:14Z")

</div>

We are aware of the issues and are looking into it! Thanks for reporting 🙏

---

<div class="post-metadata">

**Author:** ![BitProcessor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bitprocessor/32/115929_2.png) [@BitProcessor](https://community.homey.app/u/BitProcessor)\
**Post date:** [October 16, 2024, 8:26am UTC](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779/484 "2024-10-16T08:26:07Z")

</div>

Hooked up my first 4 tuya wifi temp sensors yesterday evening. Experiencing the same issue: Tuya app updates fine on new readings, but not flowing into Homey unless I restart the Homey Tuya app.

Was looking for support but seems like a general problem.  
Hopefully fixed in the coming days.

[Previous page](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779.md?page=22)

[Next page](https://community.homey.app/t/app-tuya-connect-any-tuya-device-with-homey-by-tuya-inc-athom/106779.md?page=24)
