I developed a Zwave thermostat device handler in groovy for my SmartThings Hue V3. I tried a couple of examples from the developer site. I can successfully “publish” the code “For me” (graph.api.smarthings.com) and I can see the result in my android phone that installed the SmartThings app (the latest one).
However, every time I publish a new thermostat example, the result always appended on the top of UI and the “old” UI (from the previous coding) is still exists at the bottom of the UI.
I’m sure that I removed “old” coding before I add new coding in the “My Device Handlers” section.
Not exactly what I was asking - if you’re looking for how to integrate your Philips Hue hub with ST - there’s a built-in integration and building device handlers aren’t usually required… What device (exactly, model number matters) are you trying to get working I’m pretty sure someone else has already done the heavy lift. (Yes I’m trying to discourage writing a custom DTH if you don’t have to)
So you need to start by taking that DTH linked above and modifying it to:
add all of the necessary capabilities above and then replacing instances that reference the THERMOSTAT capability with their counterparts in the capabilities you added. (In most cases just adding the capabilities in and remarking out the old thermostat capability should work - I believe the actual attributes, properties, methods, etc. of all of the new capabilities match their counterparts in the old monolithic THERMOSTAT capability.)
Just by making that change if you do it correctly - the system should take over and say - oh wait this is a standard capability - I have a way of showing that. And it SHOULD give you some basic controls. (If you don’t use the app a lot like me, this might be enough to get you going)
NOW - once you get the basics in to make it WORK, how to customize the DTH completely changed after last December. They now use ‘custom presentations’ to modify the default display of a capability. ALL Of that is currently in beta - learn more about that here:
Beyond that you’ll need someone with a lot more DTH authoring experience than I have to troubleshoot if it goes sideways…