Need Help Making a Device Handler for Leviton DZ6HD Dimmer

Awesome! Testing from work and from what I can tell it looks good. I will actually see if the light it responding the way I expect when I get home.

Thanks again!


Did this work as expected?

Sorry I didn’t get back to you sooner!

I did initially have issues where the device wouldn’t update properly in SmartThings. For example I would click off and it would say “turning off” for a long time and then show the light was still on even though it was not.

I do think that this was unrelated though as I unpaired the device, factory reset it and re-paired it. Since this I have been using your device handler for a day now and it seems to be working properly.

Thanks again!

1 Like

My pleasure!

I recently purchases a number of these dimmers, well 10 to be exact. I prefer them over the other cheaper dimmers, however I am not able to adjust them in the manner that I like. Did you ever find a solution that worked for you? Thanks!

Not sure what you mean by adjusting them but I’ve been happy since using the device handler provided here. Does everything I need.

What more are you looking for?

Thanks for sharing these handlers, they really improve the experience with ST. Unrelated question: is anyone having issues with these dimmers and LEDs? I’ve tried setting the bulb type to LED and I am still only dimming down to 25%. My older GE/JASCO z wave dimmers are dimming lower, which doesn’t make much sense to me.

I just installed a Zwave, Leviton DZ6HD-1BZ with remote dimmer for 3 way switch in my Family Room .Works fine…but CANNOT get ST to find it.

Any similar issues with anyone here? I have tried talking to ST support and no help other than to bring the hub closer to pair it. But I have a GE smart Zwave switch right NEXT to it, and ST found it.

Any help is appreciated…

Try using the Z-wave utilities to exclude it first (under the Hub menu)

1 Like

Hi Jared,

Have you been successful at utilizing “input “parameterFive”, “number”, title: “Parameter 5: Preset Light Level : Valid values 0-100. default=0, 0=memory dim to prev state, 1-100 = % Level”, defaultValue: 0, range: “0…100”, required: false, displayDuringSetup: true”? I have been able to set and record the change live but upon switching on goes back to previous light level.



I am experiencing the same thing, and am working on my own handler, derived from the sample dimmer zWave code from SmartThings and the code linked to by johnconstantelo, above.

The issue is in these methods:

def setLevel(value) {
log.debug "setLevel >> value: $value"
def valueaux = value as Integer
def level = Math.max(Math.min(valueaux, 99), 0)
if (level > 0) {
sendEvent(name: “switch”, value: “on”)
} else {
sendEvent(name: “switch”, value: “off”)
sendEvent(name: “level”, value: level, unit: “%”)
delayBetween ([zwave.basicV1.basicSet(value: level).format(), zwave.switchMultilevelV1.switchMultilevelGet().format()], 5000)

def on() {
zwave.basicV1.basicSet(value: 0xFF).format(),

Instead of just asking the switch component of the dimmer to turn on, it is setting the level. (As one might expect, the off() method has the same issue.)

I’ll be working on this over the next couple of days.

BTW, one thing I found is that the configure() method as provided by johnconstantelo changed the settings in the app, but not on the switch itself until I wrapped it in sendHubCommand(new physicalgraph.device.HubAction()). I posted a question on that today.

I found the answer in another post.

In “on()” change zwave.basicV1.basicSet(value: 0xFF).format()
to zwave.switchMultilevelV1.switchMultilevelSet(value: 0xFF).format()

After a factory reset much like Jared I was able to see configure() updates without wrapping in the sendHubCommand(). Works, just would be nice be able to call a device method from Core much like the set level and have it update the configuration.

nicksterz, I think that your reply probably better fits a different thread, where I posted about the need for the sendHubCommand wrapper?

For the novices (like me), can someone please post the correct Device Type Handler to use?

1 Like

I am working on one now, and will share when I am done (hopefully this week). Until then, you can use the generic Dimmer device. It doesn’t allow you to change the switch configuration settings detailed in the installation instructions, and doesn’t use the remembered dimmer setting when you turn it on, but it is functional.

1 Like

Info on TWO handlers for the DZ6HD can be found in these posts:

First, one that pre-dates mine (and is better in some ways), at:

and mine, at

I am interested in writing a device handler (or modifying the existing one) for the GE/Jasco Zwave+ switch, similar to what you’ve done here. I want to program the switch so that it doesn’t disconnect the power when the user presses the switch, it only reports the event back to the hub. Do you know if this functionality exists? If not, where would one find the API for this switch (or any switch)?

I doubt very much that the hardware itself can do that. It would almost certainly be designed to respond on its own to the press of the switch. In order to do that, I think that you would have to use a standalone switch, like one from Aeon labs, and then a separate Z-Wave actuator (which could be your existing Z-Wave switch - not connected to any load, just to the line).

Did you ever find a solution to this dimming problem? Really annoying that they hardly dim.