I bought this Zemismart Zigbee 2 gang light switch: Tuya Zigbee Hub Smart Home PIR Sensor Door Sensor Temperature and Humidity Sensor Home Automation Scene Security Alarm Kit|Smart Remote Control| - AliExpress
These look good and are responsive (they toggle the light as soon as i touch the switch instead of when i release the touch). And the price tag is attractive.
I have registered it as a Generic Zigbee Switch and it controls the first button. The other button is not exposed of course.
I have tried other drivers for 2 gang switches like these ones:
https://github.com/jchurchward/Nue-Zigbee-drivers-for-Hubitat/blob/master/2gang%20Switch%20or%202gang%20Powerpoint
They have "on/off" controls for all gangs which work (switch on or off both switches at once). They also have individual on/off controls, however they don't work at all.
How do I go about customising the driver to make the individual switches work? I'm a programmer by trade, so coding won't be a problem, however i don't understand how get started. I mean how do I get the codes that the switch supports in the first place? Is there some kind of tool that allows to inspect device capabilities? Any help how to get started with writing Zigbee device drivers is appreciated.
UPDATE 2019-08-21: I ended up making the driver work. Here's the code: