[APP][Pro] Universal TUYA Zigbee Device App - test

Hello,

I saw your question in the GitHub thread regarding the number of buttons for the device. I can see why the AliExpress picture is confusing!

Here is the technical explanation for the device interview you posted:

1. The Physical Reality: It’s a 1-Button Device

The device model TS0041 (with the manufacturer _TZ3000_5bpeda8u) is actually a single-gang (1-button) Scene Switch. Looking at the typical AliExpress listings for this model, it is a small, portable button or a wall switch with just one pressable area.

2. The Technical Reason: Why Homey Sees 4 Endpoints

The reason the Zigbee device interview is reporting four endpoints (Endpoints 1, 2, 3, and 4) is due to the generic Tuya firmware:

* Endpoint 1: This is the primary endpoint, handling essential device data like the battery status (powerConfiguration) and basic info.

* Endpoints 2, 3, and 4: These are “ghost” endpoints. Tuya often uses the same underlying firmware for its 1-gang, 2-gang, 3-gang, and 4-gang switches (TS0041, TS0042, TS0043, TS0044). Even though your physical device only has one button, the firmware internally exposes up to four “potential” buttons.

Therefore, the app recognizes the maximum potential of the firmware but has to focus on the actual functionality.

3. How Homey Should Handle This (1 Button, 3 Actions)

Since this is a single physical button, the app typically ignores the phantom endpoints and focuses on the multiple actions sent by the one button you can press:

| Physical Action | Event in Homey Flow Card |

|—|—|

| Short Press | Single press |

| Double Press | Double press |

| Hold / Long Press | Long press or Hold |

You should be able to trigger three different flows from this single device once the driver is correctly implemented.

I hope this clarifies the mismatch between the image and the technical logs!

So that why it’s now implemented as wireless_switch_4gang_cr2032 on the app