I am not able to find a solution for this. I have created a device handler modifying the code to the Garage Door simulation. I added a custom command to it to change the state of the device.
I now have a smart app where I want to only add this new device type I created. How do I only add devices of this device type and call my custom command? Coz when add code to look for the capability it shows several device. And I am not sure what will happen if I try calling my custom command on any device.