AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
196 stars 50 forks source link

Multi Gang switch configured but only usable through Alexa-bridge ! #262

Open Polluxkywalker opened 2 years ago

Polluxkywalker commented 2 years ago

Hi team I have multiple gang switch from various manufacturers but with the same issue.

All can be configured as MultiOutlet or CustomMultiOutlet through tuya-bridge in HOOBS Note that I also use Alexa-bridge in the same HOOBS to control them by voice

Example of config (2 gangs): { "type": "CustomMultiOutlet", "name": "Cuisine", "id": "xxxxxxxxxxx", "key": "xxxxxxxxxxx", "manufacturer": "Alfawise", "model": "CD-2 gang switch ", "outletCount": 2, "outlets": [ { "name": "Table", "dp": 1 }, { "name": "Évier", "dp": 2 } ] }, Note: When configured as CustomMultiOutlet, I can name each gang. When configured as MultiOutlet, each gang is named with the outlet name followed by a number(cuisine-1, cuisine-2)

The issue: both types are working. I can see and control each gang with Alexa in both cases (only name is different, but can be renamed). But I can only see a device named "cuisine" (switch name) in HOOBS wich only controles the default gang instead of each gang !

See what I mean in attached pictures:

Am I doing something wrong ? Are CustomMultiOutlet or MultiOutlet the good types for this kind of device ? I would have choose something like MultiLight to be able to light on or off every gangs at once or each one individualy, but it apparently doesn't exist.

Thanks for help