tuyaha icon indicating copy to clipboard operation
tuyaha copied to clipboard

Is Multi-gang switch entity be identifiable by Tuya API?

Open stu85010 opened this issue 3 years ago • 0 comments

Hello there,

I have several multi gang switches but only 1 channel could be discovered by this library:

  • 2 gang switch (Zigbee)
  • 3 gang switch (Zigbee)
  • 4 gang switch (Zigbee)

I had tried to discover and get detailed information from my Tuya IoT Platform and I can see there're multi-gang information from the Get Device Status/Detail API. I found that this uses tuyapy and it uses https://px1.tuya{}.com/homeassistant/skill API to check information from cloud. And there's few API exposes in GitHub: "Discovery" from "discovery", "QueryDevice" from "query", "turnOnOff" and "brightnessSet" from "control".

I'm wondering if there's comprehensive spec of that API?

Workaround

1. Local Tuya

Pros

The traffic could keep in LAN, may have a quicker response(?)

Cons

I had tried Local Tuya also, but it cannot discover the Zigbee devices, so, no luck for me.

2. Tuya v2

Pros

This integration works well on discovery of multi-gang device also the Zigbee devices, I was thinking this should be the closest one, but, there's also a but.

Cons

It did have some bug when integrating to Home Assistant, but may be resolved by some debug.

Do you have any suggestion for using the multi-gang switch?

stu85010 avatar Aug 21 '21 16:08 stu85010