ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
898 stars 91 forks source link

Add support for TUYA Switches TS0042, TS0043, TS004F #1063

Closed nikbyte closed 2 years ago

nikbyte commented 2 years ago

@ebaauw You mean sort these "TZ3000" blocks in different (a-z) order? But how to be with this part?

        case '_TZ3000_i3rjdrwu':
        case '_TZ3000_dfgbtub0':

(where two conditions are the same).

ebaauw commented 2 years ago

Yes, please. For the combined block, sort them on the first entry, I’d say. Not ideal, but better then duplicating the code.

I thought the deCONZ API would map these non-sensical Tuya names into something more easily consumed (like I did for the LIDL devices), but that didn’t materialise.

nikbyte commented 2 years ago

@ebaauw done