Hi @yvesracine, creating a VID seems to have fixed the dimmer display issue. Here’s that “Den Floor Vent Left” device with the DTH updated with a custom VID. Note the details order has changed, and the dimmer value did not jump back to 0%:
You’re more than welcomed to try the VID I created to see if it help your DTH. Just add the following info in Metadata within the definition line: (I usually add this to the end)
, mnmn: “SmartThingsCommunity”, vid: “10327bad-e926-30bd-8611-063f07763a97”)
The new app is flaky with custom DTH’s, VID’s and custom capabilities, and it’s a PITA to work with the new CLI, but as developers it’s something we unfortunately have to work through. Behavior in the new app is also a PITA to debug because sometimes things just stop working for no reason and start again a little while later. This is not for the faint of heart at times, and you will need patience…
Sometimes changing an existing custom DTH that’s in use by a device to use a custom VID does not work, so I recommend doing it this way:
- Create a brand new DTH using your existing code, but just give it a different name for now.
- Add that info to the definition line.
- Save and Publish
- In the IDE, change one of your vents to something completely different, like a button or switch. Sounds odd, but trust me on this.
- Wait for a bit afterwards and force close/restart the new app.
- Check it in the new app to make sure it changed.
- In the IDE, change that vent back to your new DTH with the VID.
- Repeat step 5.
- Repeat step 6.
- Steps 4-9 may need to be tried more than once. Why you ask? See my comments above, or the CLI discussion in the Community…
You can also try clearing the new app’s cache instead of some of those steps. LAstly, you might want to get caught up on the CLI tool because you’ll definitely need it, especially for custom capabilities.
