Nuki Smartlock

I see. Thank you for the quick response.

So can I remove the entire section from the code? It will not affect the on/off fuctionality right?
//sendEvent
if (varCommand == “off”){
sendEvent(name: “switch”, value: “off”)
log.debug “Executing OFF”
} else {
sendEvent(name: “switch”, value: “on”)
log.debug “Executing ON”
}

Thanks.