Smartthings Child Device Tile All
If youre expecting all of the switches to have tiles in one device page, that wont happen in the new app. Each switch should create its own device and only show the switch for that device Tiles are defined in the Device Handler by calling the tiles() method.
The tiles() method is composed of tile definitions, and layout information (the main and details method). There are five types of tiles that you can use within your Device Handler. Each tile serves a different purpose.
Example of implementing child devices on Smartthings - gist:a25eb138dddf309c0eb13a3f9c6bd538 It currently creates devices of types On/Off Switch Tile and Momentary Button Tile, but adding future virtual device capability should be trivial if theres anything out there with enough demand. The "Ring Alarm (Sensors)" thing shows all 5 child devices in the Child Devices setting (see screenshot), but I still see faults in the SmartThings Classic iOS app.
Now that the new smartthings app no longer supports the use of tiles in the old smartthings classic ide, how do we code for the new app to add capabilities to devices? What Id like is to only see the Door Controller Parent from the Things main menu and then drill down to the details menu to see each individual Child door button. Ive got a TV device with multiple tiles inside for power, mute, HDMI etc.
I want to control each of those buttons from a virtual switch thing that can be controlled remotely by IFTTT which I use with Google Home Assistant (voice commands). You can create a custom panel for her with only the SmartThings devices you want to give her access to, including an SHM Tile for arming/disarming, plus you can give her visibility to other devices, but if pressed, requires a pin code. The switches are really good; when you set up the DH, the first switch shows as a normal (parent) device, and the other three are child devices.
They all work fine in SmartThings, with both the current and Classic apps.