Not sure if you realised that the light isn't turning on or off, I changed to this-
def off() {
log info "off()"
sendEvent(name: "switch", value: "off")
"st cmd 0x${device.deviceNetworkId} 0x02 0x0006 0x0 {}"
}
def on() {
log info "on()"
sendEvent(name: "switch", value: "on")
"st cmd 0x${device.deviceNetworkId} 0x02 0x0006 0x1 {}"
}
& get this in the log -
dev:4882019-05-15 09:45:28.619 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.log() is applicable for argument types: (null) values: [null] Possible solutions: on(), run(), off(), run(), any(), any(groovy.lang.Closure) on line 129 (on)
dev:4882019-05-15 09:45:23.061 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.configure() is applicable for argument types: () values: [] (configure)
dev:4882019-05-15 09:45:20.843 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.log() is applicable for argument types: (null) values: [null] Possible solutions: on(), run(), off(), run(), any(), any(groovy.lang.Closure) on line 123 (off)
dev:4882019-05-15 09:45:18.055 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.log() is applicable for argument types: (null) values: [null] Possible solutions: on(), run(), off(), run(), any(), any(groovy.lang.Closure) on line 129 (on)
dev:4882019-05-15 09:45:13.066 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.log() is applicable for argument types: (null) values: [null] Possible solutions: on(), run(), off(), run(), any(), any(groovy.lang.Closure) on line 129 (on)
dev:4882019-05-15 09:45:11.966 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.log() is applicable for argument types: (null) values: [null] Possible solutions: on(), run(), off(), run(), any(), any(groovy.lang.Closure) on line 129 (on)
& I changed to this -
def off() {
// log.debug "off()"
sendEvent(name: "switch", value: "off")
"st cmd 0x${device.deviceNetworkId} 0x02 0x0006 0x0 {}"
}
def on() {
// log.debug "on()"
sendEvent(name: "switch", value: "on")
"st cmd 0x${device.deviceNetworkId} 0x02 0x0006 0x1 {}"
}
I get this in logs -
dev:4882019-05-15 10:00:06.843 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.configure() is applicable for argument types: () values: [] (configure)
dev:4882019-05-15 09:58:34.550 pm errorgroovy.lang.MissingMethodException: No signature of method: user_driver_Hubitat_HUI_ZigBee_Wall_Scene_Switch_GH_altered_from_1_Gang_450.configure() is applicable for argument types: () values: [] (configure)