You can copy and paste it on top of the current one and publish it.
You can find all of our device handlers here:
@nathancu the SmartLighting app is now looking for the “supportedButtonValues” attribute. If it doesn’t find it then it causes an error. So the value needs to be populated. For example:
sendEvent(name: “supportedButtonValues”, value:JsonOutput.toJson([“pushed”,“held”]), displayed:false)