# \[APP\]\[Pro\] Tuya Zigbee App

**URL:** <https://community.homey.app/t/app-pro-tuya-zigbee-app/26439>\
**Category:** Apps\
**Created:** [February 26, 2020, 9:12am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439 "2020-02-26T09:12:23Z")\
**Posts on this page:** 20\
**Page:** 13

<div class="post-metadata">

**Author:** ![JvdMeulen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jvdmeulen/32/71049_2.png) [@JvdMeulen](https://community.homey.app/u/JvdMeulen)\
**Post date:** [January 26, 2024, 10:41am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4525 "2024-01-26T10:41:56Z")

</div>

No one knows, only the developer

---

<div class="post-metadata">

**Author:** ![Eivind\_Gjerde](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eivind_gjerde/32/81265_2.png) [@Eivind\_Gjerde](https://community.homey.app/u/Eivind_Gjerde)\
**Post date:** [January 26, 2024, 4:32pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4526 "2024-01-26T16:32:04Z")

</div>

I have a few Tyua \_TZE200\_e3oitdyu 2 gang dimmers. This one is listed as working in test version (I have 0.2.18). I have tried to find an answer, but not found any.  
The problem is that only one of the dimmers works (first), the other does not, and is listed as a switch:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/bafce7146be50e1e61e83e9dc074f2a7711ed603.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/dac3bbef47a255e405b6f2b937aa3bf7c557d4f0.png)

Anyone who knows why?

Edit: Adding them via Tuya Cloud is no use, then only first dimmer works …

---

<div class="post-metadata">

**Author:** ![Matteo\_Sulis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matteo_sulis/32/110774_2.png) [@Matteo\_Sulis](https://community.homey.app/u/Matteo_Sulis)\
**Post date:** [January 26, 2024, 9:25pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4527 "2024-01-26T21:25:19Z")

</div>

I have the same device on Smartthings and Toggle works. I think the issue can be easily prevented in the driver code.

---

<div class="post-metadata">

**Author:** ![shahzadsk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shahzadsk/32/12505_2.png) [@shahzadsk](https://community.homey.app/u/shahzadsk)\
**Post date:** [January 27, 2024, 12:56am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4528 "2024-01-27T00:56:35Z")

</div>

I’ve been trying to use / modify some of the existing drivers to get this to work - it is a Green Power Proxy (GPP) device based on my understanding so far.

So far, in my modified version, I can send commands from the app to the switch to turn on and off (and any associated flows work) but when the switch is physically pressed, I can’t seem to see the status updated on the Homey app, and no associated flows work.

If anyone knows what I should be doing / looking at to get this part working, please let me know 🙂

When I physically press the button, I’m seeing this:  
2024-01-27T00:59:27.829Z zigbee-clusters:cluster ep: 1, cl: tuya (61184) received frame response tuya.response {  
status: 0,  
transid: 64,  
dp: 2,  
datatype: 1,  
length: 1,  
data: \<Buffer 00\>  
}  
My reading of this is as follows (please correct if I’ve misinterpreted):  
transid is unique transaction id - increments by 1  
dp: 2 - second button / sub-device / channel pressed  
data: \<Buffer 00\> when off and \<Buffer 01\> when on

---

<div class="post-metadata">

**Author:** ![shahzadsk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shahzadsk/32/12505_2.png) [@shahzadsk](https://community.homey.app/u/shahzadsk)\
**Post date:** [January 27, 2024, 1:27pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4529 "2024-01-27T13:27:21Z")

</div>

@Eivind_Gjerde I think (I could be very wrong) the reason for this is that there is no driver.js

try add a driver.js:

```auto
'use strict';

const { ZigBeeDriver } = require('homey-zigbeedriver');

class dimmer_2_gang_tuya extends ZigBeeDriver {

}

module.exports = dimmer_2_gang_tuya;

```

---

<div class="post-metadata">

**Author:** ![Eivind\_Gjerde](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eivind_gjerde/32/81265_2.png) [@Eivind\_Gjerde](https://community.homey.app/u/Eivind_Gjerde)\
**Post date:** [January 27, 2024, 2:46pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4530 "2024-01-27T14:46:09Z")

</div>

Sorry, not so familiar with this, get this error:

```auto
At line:3 char:25
+ class dimmer_2_gang_tuya extends ZigBeeDriver {
+ ~
Missing 'class' body in 'class' declaration.
    + CategoryInfo : ParserError: (: 0) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingTypeBody

```

Don’t know what’s next

---

<div class="post-metadata">

**Author:** ![shahzadsk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shahzadsk/32/12505_2.png) [@shahzadsk](https://community.homey.app/u/shahzadsk)\
**Post date:** [January 28, 2024, 12:54am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4531 "2024-01-28T00:54:42Z")

</div>

Sorry @Eivind_Gjerde where are you seeing this error?

Is it while compiling in vs code or is it when you run?  
I do not have one of those devices so I can’t add it to see if I’m seeing the same error. I was able to create a driver.js file within the dimmer\_2\_gang\_tuya folder, and put the code that I put above into that file.

When I test that modified version of the app on my homey (using “homey app run”) I’m not getting any compilation errors. Perhaps you can send some screenshots and I or someone else can try help you - it is my first time trying to modify the files myself, so I may not be correct - however, I did encounter that error when I tried writing some other files which had sub-devices (i.e. more than one button) and that is how I resolved it…

Good luck!

---

<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:** [January 28, 2024, 6:32am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4532 "2024-01-28T06:32:16Z")

</div>

Don’t assume everyone is a developer 😃 @Eivind_Gjerde just wants the device to work and suggesting that they “just” have to change the app code is a step too far for probably 99% of Homey users (highlighted by the fact that the error message they are posting is coming from PowerShell).

---

<div class="post-metadata">

**Author:** ![shahzadsk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shahzadsk/32/12505_2.png) [@shahzadsk](https://community.homey.app/u/shahzadsk)\
**Post date:** [January 28, 2024, 6:49am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4533 "2024-01-28T06:49:51Z")

</div>

haha thanks @robertklep - I’m no dev either - but just been watching Emile’s series on how to get started and looking at the github to see if I can solve my own GPP issue 😃

@Eivind_Gjerde - I think for your issue you will (very likely) need to install your own version (with the correct code change) or wait for a fix to be published…

On a slightly related note - @robertklep do you know where I should be poking to see how to get my code to listen for button presses? I’m happy to put up a PR when I get it working!

---

<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:** [January 28, 2024, 7:39am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4534 "2024-01-28T07:39:38Z")

</div>

> [@shahzadsk](#):
>
> On a slightly related note - @robertklep do you know where I should be poking to see how to get my code to listen for button presses? I’m happy to put up a PR when I get it working!

Sorry, no idea ☹

---

<div class="post-metadata">

**Author:** ![ReMARKable](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/remarkable/32/30895_2.png) [@ReMARKable](https://community.homey.app/u/ReMARKable)\
**Post date:** [January 28, 2024, 9:39am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4535 "2024-01-28T09:39:30Z")

</div>

Is it possible to add this product ID to the set of LCD temperature and humidity:

Fabrikant ID : \_TZ3000\_bjawzodf  
Product ID : TY0201

---

<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:** [January 28, 2024, 9:52am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4536 "2024-01-28T09:52:14Z")

</div>

> [@ReMARKable](#):
>
> Is it possible to add this product ID

Please read the first post of the thread for instructions on how to request device support.

---

<div class="post-metadata">

**Author:** ![Eivind\_Gjerde](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eivind_gjerde/32/81265_2.png) [@Eivind\_Gjerde](https://community.homey.app/u/Eivind_Gjerde)\
**Post date:** [January 28, 2024, 12:46pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4537 "2024-01-28T12:46:16Z")

</div>

Thanks @shahzadsk and @robertklep, just seems a bit strange that it is listed as ‘OK’ when just ‘half of it is working’. That is why I thought someone might have a solution.

---

<div class="post-metadata">

**Author:** ![shahzadsk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shahzadsk/32/12505_2.png) [@shahzadsk](https://community.homey.app/u/shahzadsk)\
**Post date:** [January 29, 2024, 2:35am UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4538 "2024-01-29T02:35:17Z")

</div>

@Eivind_Gjerde unsure why - may have just been an oversight - I’ve attempted at pushing a code change (hopefully fix!) which should hopefully work for that. I’ve responded to your issue on github, can you test and see if that pull request (PR) fixes the issue for you?

---

<div class="post-metadata">

**Author:** ![Eivind\_Gjerde](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eivind_gjerde/32/81265_2.png) [@Eivind\_Gjerde](https://community.homey.app/u/Eivind_Gjerde)\
**Post date:** [January 29, 2024, 1:56pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4539 "2024-01-29T13:56:54Z")

</div>

Now, what am I supposed to do? Just running the code gives the same error as before.

---

<div class="post-metadata">

**Author:** ![Christer\_Sjostrom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christer_sjostrom/32/628_2.png) [@Christer\_Sjostrom](https://community.homey.app/u/Christer_Sjostrom)\
**Post date:** [January 30, 2024, 6:26pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4540 "2024-01-30T18:26:28Z")

</div>

When will the testversion 0.2.19 be pushed out? I need the below device (screenshot from GitHub) that is released in the 0.2.19?

I’m on version 0.2.18 right now.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/0/8047c04e97922d9f03ea49597535b3edfb4ddc9f.png)

---

<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:** [January 30, 2024, 6:43pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4541 "2024-01-30T18:43:57Z")

</div>

If you really need it, you can install apps from Github using the command line utility.

---

<div class="post-metadata">

**Author:** ![Christer\_Sjostrom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christer_sjostrom/32/628_2.png) [@Christer\_Sjostrom](https://community.homey.app/u/Christer_Sjostrom)\
**Post date:** [January 30, 2024, 6:46pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4542 "2024-01-30T18:46:54Z")

</div>

That is nothing I tried before, is it complicated?

---

<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:** [January 30, 2024, 6:57pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4543 "2024-01-30T18:57:36Z")

</div>

If you really need it as you say, I’m sure you can find the time to learn.

---

<div class="post-metadata">

**Author:** ![johan\_bendz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bendz/32/10344_2.png) [@johan\_bendz](https://community.homey.app/u/johan_bendz)\
**Post date:** [January 30, 2024, 8:44pm UTC](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4544 "2024-01-30T20:44:13Z")

</div>

> [@Christer\_Sjostrom](#):
>
> When will the testversion 0.2.19 be pushed out? I need the below device (screenshot from GitHub) that is released in the 0.2.19?
> 
> I’m on version 0.2.18 right now.

Hi @Christer_Sjostrom, I’ll work on the new version a bit this week and aim to have an update available by this weekend, if not sooner.

Due to the volume of requests and repetitive questions about already requested devices, I am now only handling requests for new devices in the issues section of the app’s GitHub repository.

If you or anyone else wants to help but cannot code, I would appreciate support in any of the following ways: 1. Testing stuff in the test version and reporting any issues, 2. Documenting a new device that you or someone else would like to have added, and adding that information to a GitHub issue (if it’s not already there), 3. Supporting my expenses for purchasing devices to test for new drivers (or for beer/coffee 😉), 4. Or perhaps ordering a device for me when ordering your own. I’m not expecting this from anyone, but I am very grateful for any and all help in any form.

For those who are curious, I have more than 50,000 users of my apps, yet less than 1% support me in any form. A select few provide substantial assistance in many ways, and for this, I am incredibly grateful.

[Previous page](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439.md?page=12)

[Next page](https://community.homey.app/t/app-pro-tuya-zigbee-app/26439.md?page=14)
