And here is a another good post about using the Composite Device Handler with a Z-Wave device (although it does not auto-create children on the fly. it assumes a specific device configuration by the parent.)
Today SmartThings deployed a device handler for the Zooz ZEN20 Power Strip that uses the recently released Composite Devices feature of the SmartThings platform. The ZEN20 is a Z-Wave device with five separately switchable outlets. There was no published device handler for it before today, but Community members stepped up and created handlers that allowed the individual outlets to be controlled with custom commands (and we appreciate those contributions). The custom command approach worked great in allowing each outlet to be individually controlled from the device detail page, but it didn’t allow many SmartApps such as Smart Lighting to control individual outlets because those apps only work with the standard Switch capability. A custom SmartApp was required to control the individual outle…
1 Like