# \[OBSOLETE\] Leviton DZ6HD Dimmer Device Handler - cube1us

**URL:** <https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894>\
**Category:** Community Created Drivers\
**Tags:** dth\_lighting\
**Created:** [July 26, 2017, 1:21am UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894 "2017-07-26T01:21:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cube1us](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@cube1us](https://community.smartthings.com/u/cube1us)\
**Post date:** [July 26, 2017, 1:21am UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894/1 "2017-07-26T01:21:36Z")

</div>

This topic is for announcements and feedback on a Device Handler that I am developing to handle the Leviton DZ6HD

NOTE: Another device handler exists for this save device in the jasonxh namespace. See post

> [@\[OBSOLETE\] Leviton Decora Z-Wave Plus Dimmers (DZ6HD & DZ1KD)](https://community.smartthings.com/t/release-leviton-decora-z-wave-plus-dimmers-dz6hd-dz1kd/89700):
>
> This DTH is for the Leviton Z-Wave plus dimmers (DZ6HD & DZ1KD). It improves over the generic Z-Wave dimmer handler in the following areas: Fixes the bug where the device and SmartThings get out of sync when level is adjusted while the switch is off. Fixes the bug where it always switches on to 99%. Adds shortcuts to low/med/high levels. Exposes advanced device configurations in the preferences page. I’ve been testing this DTH on a DZ6HD, but everything should work on the sister model DZ1KD as well. Please let me know otherwise. For easier updating in the future, you can add my Github repository to your SmartThings IDE: ([FAQ: Github Integration How to Add and Update from Repositories](https://community.smartthings.com/t/faq-github-integration-how-to-add-and-update-from-repositories/39046)) Owner - jasonxh Name - SmartThings-jasonxh Branch - master

Indeed had I spotted this one earlier, I might not have bothered with mine. There are some things that I think jasonxh did better than I did.

Please feel free to provide feedback, critique, desired enhancements, etc. in this topic.

My source code can be found at

> <https://github.com/cube1us/SmartThingsPublic/blob/master/devicetypes/cube1us/leviton-dz6hd-dimmer.src/leviton-dz6hd-dimmer.groovy>

Mine is currently at version 0.94. I would consider it BETA. I have tested it with my own device, and it seems OK.

Features of my handler:

When turning on the light, it respects the last level that was set, if the switch has its “Preset Light Level” set to 0 [the default]

There is a configuration/settings screen (see the gear icon in the app) that allows setting all of the parameters of the dimmer except the status indicator option

The status indicator option can be set from the detail “tile” screen (but not from the configuration/settings screen)

---

<div class="post-metadata">

**Author:** ![mjlewis](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mjlewis](https://community.smartthings.com/u/mjlewis)\
**Post date:** [July 26, 2017, 7:50pm UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894/2 "2017-07-26T19:50:08Z")

</div>

Thanks for the code!

appreciate you mentionning jasonxh’s DTH as well. Not sure which one to go with, I think I’ll start with jasonxh’s first.

It’d be nice to have a comp between them to understand the differences

---

<div class="post-metadata">

**Author:** ![cube1us](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@cube1us](https://community.smartthings.com/u/cube1us)\
**Post date:** [July 26, 2017, 8:20pm UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894/3 "2017-07-26T20:20:55Z")

</div>

The coding style on his indicates a better understanding of things. A code-level diff would not be useful - they are very different in structure. Looking briefly at his code, the biggest thing I saw was that he has settings controlled by tile that I have controlled by the configuration/settings.

---

<div class="post-metadata">

**Author:** ![Steerpike](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Steerpike](https://community.smartthings.com/u/Steerpike)\
**Post date:** [October 17, 2017, 2:56am UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894/4 "2017-10-17T02:56:31Z")

</div>

Hi there - I’m new to SmartThings and just bought the DZ6HD dimmer, and noticed that when I turn it on with the default ST app, it always goes to 99%; I see that the custom handler referenced in this thread fixes that. But I can’t see how to ‘get’ (download/install) this version … is there a guide to installing custom hnadlers/apps, or whatever they are called?

Also, while I’m at it … I could swear the light level is not as bright when at 100% as it was when I just had a simple switch. That is - it’s as if the dimmer switch is dimming even at 100%. I can’t prove this without re-wiring the original switch back in, which is easier said than done. Has anyone else noticed this? I do see, in the ‘advanced options’ section of the ‘manual’ (flimsy paper insert in box), that I can change the ‘load’ type from default of incandescent to LED; I wonder if that would help me in this situation? I will find out once I can figure out how to get this custom handler!

ETA: I just found this helpful post regarding how to get custom stuff: [Leviton Dimmer advanced options - how to configure?](https://community.smartthings.com/t/leviton-dimmer-advanced-options-how-to-configure/81589/4) … so I’ll read that and proceed!

---

<div class="post-metadata">

**Author:** ![cube1us](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@cube1us](https://community.smartthings.com/u/cube1us)\
**Post date:** [October 17, 2017, 1:06pm UTC](https://community.smartthings.com/t/obsolete-leviton-dz6hd-dimmer-device-handler-cube1us/93894/5 "2017-10-17T13:06:22Z")

</div>

I don’t recall that I noticed any difference in full-on intensity switch vs. dimmer when I tested my device handler - but I tested it with an incandescent rather than an LED. The LEDs that I have on these dimmers seem to be plenty bright, but I did not measure them. Please note that there are two handlers referred to in this thread, one being mine, and the other the work of “jasonxh” (link at the very top of this thread).
