mbarone
(Michael)
August 17, 2018, 7:50pm
3
After some more digging, it appears there is an undocumented way to remove child devices from inside a DTH. the below is wrapped in a function that is the ‘action’ i call from a tile ‘button’:
childDevices.each {
try{
deleteChildDevice(it.deviceNetworkId)
}
catch (e) {
log.debug "Error deleting ${it.deviceNetworkId}: ${e}"
}
}
I have created a new thread for the released DTH and webCoRE pistons:
Edit 8/2020:
This is now unsupported as I have moved to hubitat and have no interest in updating my custom dth for the new smartthings app.
I will keep my github files available for anyone who wants them.
===
edit to put install instructions at the top:
Install Steps:
Install (and publish) Master and Child DTH from github repo
1.5. Github : michaelbarone
name: smartThings
Branch: master
Create new Device in smartthings ide, assign one of the Master DTH depending on use (contact/temperature)
the most recent import code for webcore is in the top header section of the DTH. import/create the webCoRE pistons, and update the variables for the new custom device created in step 2 above and all the physical sensors for each group as needed in the pistons
use the refresh button in the new…
2 Likes