PaulAnnekov / tuyaha

Implements the special Tuya Home Assistant API.
Other
141 stars 106 forks source link

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

Open stu85010 opened 2 years ago

stu85010 commented 2 years ago

Hello there,

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

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?