Custom Capability and CLI Developer Preview

I’d like to share with you a checklist for you to guide when having issues with the device presentation

  1. To use the “unit” property in the presentation, it must be included in the capability definition. (This can cause the “checking status” error)
  2. The capability presentation must not include attributes that belong to a different capability or don’t exist
  3. Verify that your presentation was created and has your configuration (After every change in the capability presentation, you need to regenerate the device presentation)
    Use the command smartthings presentation vid -j
  4. Include the correct presentation properties in your DTH (vid:”xxxx-xxxx-xxxx” and mnmn:”SmartThingsCommunity”)
  5. Make sure that you saved and published the changes you made in the DTH.
  6. Check if the device is not using the draft version of the DTH (edit the device in the IDE and see this field value)
  7. Look for the device in the list and verify if the presentation and capabilities match with your configuration
  8. Query the device status to check the capabilities’ value (the view is affected by this)
  9. Try the suggestions to force the metadata refresh (Remember that the automatic refresh is done twice a day):
  • Clear the app cache (android devices)
  • Reopen de app
  • Update the device or handler name
  • Create a new device handler with the same configuration except for the name
  • Add a new capability to the device and create a new presentation
1 Like