Help to modify the default DH for Z-wave Door/Window Sensor

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 tamper to send them to the new capability
  • 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. :grinning_face_with_smiling_eyes: