Up to now, you cannot edit the options that belong to a standard Capability.
You can use the capabilities Contact Sensor or Lock instead, but you will have to:
- Add the capability to your custom DTH (in metadata)
- Here you have to change the events that belong to
tamperto send them to the new capability
- Here you have to change the events that belong to
- Create a device-config to get a VID (device presentation)
- This device-config generator can help you out. (it only provides the structure)
- To avoid cache issues, you need to create a new DTH and assign the new VID. Eg:
definition(name: "DTH 2", ... , vid: "xxxx-xxxx-xxxx", mnmn: "SmartThingsCommunity") {
You can also create a custom capability to custom the capability states. Here’s a tutorial on how to create them:
Let me know if you have any questions. ![]()