Hi,
I am buliding a driver for a zigbee switch that has two switch devices.
I am exploring the best way to do this. I think I have three optoins:
- 1 Main device and 1 Subdevice (main device is one of the switches)
- 1 Main device and 2 Subdevices (main device is useless in this situation)
- use sub-categories (I am still learning about this one)
Option 1 seems best so far, but it has the following draw backs that I haven’t been able to figure out how to get around.
In the driver.compose.json file, you give the overall device a name with the top level “name” field. This should be probably be the product name because this name is used on the pairing screen and since the driver supports many products, so each driver needs to have it’s name be the product name.
My problem is that the name of the device created for the Main device is now the product name, where as the sub device, I can name something like “ bottom switch”. I would have preferred to have the main device named “ uppert switch”. Does anyone know if there is a way to do that?
For Option 2:
I can easily name one sub device “ bottom switch” and the other sub-device “ upper switch”, but with option 2, I have this other useless device hanging around that is the main device. It has no capabilities, no advanced settings and no purpose.
Is there a way to hide this device?
Thanks