rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.86k stars 549 forks source link

Unable to add 2 Gang Switch as individual entity. #401

Open Igonzalezz opened 3 years ago

Igonzalezz commented 3 years ago

I'm trying to add a 2 Gang Switch as individual entity like Tuya integration does, but I'm not able to split it.

If you create an Scene and you add a single entity Home Assistant add it as Device with both entities, this force to you set both entities and not single one.

I have tried to add them manually by XML but it only create the first device with a single entity but not the second device with a single entity and if I add them by config flow it create it a single device with 2 entities.

Any idea how to achieve this setup?

Proxmox + Home Assistant OS 5.12

jeff-uk commented 3 years ago

I have the same issue, noticed the entity id has _1 or _2 to discriminate between the two gangs. on the 'discovery' for Tuya 'remote' they have the _1 or _2 but not for the local Tuya

Victripper commented 3 years ago

Very Interested in updates on this

Victripper commented 3 years ago

Got it working, I just selected wrong ID on the second switch