Hello
I’m working on a ServiceManager, who should create a new Child-Device. Now I get an error. I searched on smartthings, found simillar errors but no Solution for my Problem.
The Error:
groovy.lang.MissingMethodException: No signature of method: script_dth_ab2e27f2_b1f4_4c25_bb7d_0f557069e1b4_ver_8_9.parse() is applicable for argument types: (java.lang.String) values: [updated]
Possible solutions: parse(java.util.Map), pages(), page(), pages(groovy.lang.Closure), page(java.util.Map), page(java.lang.String, java.lang.String)
I don’t really know what that error means and how I can fix it for my problem. Hope someone can help.
The Problem is in the spawnChildDevice Method.
def installed() {
log.debug "Installed with settings: ${settings}"
spawnChildDevice(app.label)
initialize()
}
def spawnChildDevice(deviceLabel) {
app.updateLabel(deviceLabel)
if (!childCreated()) {
def child = addChildDevice("Dany Van der Meij", "SmartThermostatDeviceHandler", getDeviceID(), null, [name: getDeviceID(), label: "${deviceLabel}", completedSetup: true])
log.debug "Child Device: ${child}"
}
}
private childCreated() {
if (getChildDevice(getDeviceID())) {
log.debug "Childcreated = false"
return true
} else {
log.debug "Childcreated = true"
return false
}
}
private getDeviceID() {
return "VSM_${app.id}"
}