SmartThings Community

3A Nue RGBW strip controller with normal RGBW led strip lights: Manufacturer’s DTH


(Brett Daneil Aldrich) #44

Can you please send me the DTH as well? Thanks a lot for your help!



Please have a look the attached file for the Device Handler.



(Michael Duncan) #46

Please send ma a copy if the DTH also. Thank You!


Please check your email for it.

(Raine Lightner) #48

ditto please

For some reason red is more of a pinkish color. Looks fine with using a normal controller, so its not the wiring


Are you using a RGBW strip light or RGB one?

(Raine Lightner) #50

I’m using an RGB one.

Starting to wonder if I shouldn’t swap it out with this:


Hi Raine,

When you are using the RGBW controller for a RGB light, the light colour might have a little bit different because there is not White Channel light out. If you can, swapping the RGB strip to RGBW one will be perfect.



(Joshua Greene) #52

Cant seem to add the device handler, keeps giving me an error.


Hi Joshua,

Please copy the device handler from the attached file. I do not know why there are errors by copying the code from SmartThings Community item



(Joshua Greene) #54

I didnt get it or cant find the attachment. You could also email it to me


Guys looks like i did found problem with code. Problem was with this symbol ” . So just copy code from web and past it to note pad. After simple replace all symbols to normal one with default font in notepad. Make sure you are typing those symbols on English. After i fixed all of them, code was completed successfully.

/** Please copy the Device Handler from this line

Copyright 2016 SmartThings
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at:
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
for the specific language governing permissions and limitations under the License.
Updated by Kevin X- 3A Smart Home on 1st Jun 2018

metadata {
definition (name: "3A NUE ZigBee RGBW Light", namespace: "smartthings", author: "Kevin X- 3A Smart Home") {

    capability "Actuator"
    capability "Color Control"
    capability "Color Temperature"
    capability "Configuration"
    capability "Polling"
    capability "Refresh"
    capability "Switch"
    capability "Switch Level"

    fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300", outClusters: "0019"
    fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 1000", outClusters: "0019"
    fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008, 0300, 1000", outClusters: "0019", "manufacturer":"3A Feibit", "model":"RGBW Light", deviceJoinName: "3A-Feibit RGBW Light"

// UI tile definitions
tiles(scale: 2) {
    multiAttributeTile(name:"switch", type: "lighting", width: 6, height: 4, canChangeIcon: true){
        tileAttribute ("device.switch", key: "PRIMARY_CONTROL") {
            attributeState "on", label:'${name}', action:"", icon:"", backgroundColor:"#79b821", nextState:"turningOff"
            attributeState "off", label:'${name}', action:"switch.on", icon:"", backgroundColor:"#ffffff", nextState:"turningOn"
            attributeState "turningOn", label:'${name}', action:"", icon:"", backgroundColor:"#79b821", nextState:"turningOff"
            attributeState "turningOff", label:'${name}', action:"switch.on", icon:"", backgroundColor:"#ffffff", nextState:"turningOn"
       tileAttribute ("device.level", key: "SLIDER_CONTROL") {
       attributeState "level", action:"switch level.setLevel"
        tileAttribute ("device.color", key: "COLOR_CONTROL") {
            attributeState "color", action:"color control.setColor"
    controlTile("colorTempSliderControl", "device.colorTemperature", "slider", width: 4, height: 2, inactiveLabel: false, range:"(2700..6500)") {
        state "colorTemperature", action:"color temperature.setColorTemperature"
    valueTile("colorTemp", "device.colorTemperature", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
        state "colorTemperature", label: '${currentValue} K'
    standardTile("refresh", "device.refresh", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
        state "default", label:"", action:"refresh.refresh", icon:"st.secondary.refresh"

    details(["switch", "colorTempSliderControl", "colorTemp", "refresh"])

private getATTRIBUTE_HUE() { 0x0000 }
private getATTRIBUTE_SATURATION() { 0x0001 }
private getHUE_COMMAND() { 0x00 }
private getSATURATION_COMMAND() { 0x03 }
private getCOLOR_CONTROL_CLUSTER() { 0x0300 }
private getATTRIBUTE_COLOR_TEMPERATURE() { 0x0007 }

// Parse incoming device messages to generate events
def parse(String description) {
log.debug "description is $description"

def finalResult = zigbee.getEvent(description)
if (finalResult) {
    log.debug finalResult
else {
    def zigbeeMap = zigbee.parseDescriptionAsMap(description)
    log.trace "zigbeeMap : $zigbeeMap"

    if (zigbeeMap?.clusterInt == COLOR_CONTROL_CLUSTER) {
        if(zigbeeMap.attrInt == ATTRIBUTE_HUE){  //Hue Attribute
            def hueValue = Math.round(zigbee.convertHexToInt(zigbeeMap.value) / 255 * 360)
            sendEvent(name: "hue", value: hueValue, displayed:false)
        else if(zigbeeMap.attrInt == ATTRIBUTE_SATURATION){ //Saturation Attribute
            def saturationValue = Math.round(zigbee.convertHexToInt(zigbeeMap.value) / 255 * 100)
            sendEvent(name: "saturation", value: saturationValue, displayed:false)
    else { "DID NOT PARSE MESSAGE for description : $description"

def on() {
device.endpointId ="0B"

def off() {
device.endpointId ="0B" //+ ["delay 20"] + zigbee.onOffRefresh()

def refresh() {
refreshAttributes() + configureAttributes()

def poll() {

def configure() {
log.debug "Configuring Reporting and Bindings."
configureAttributes() + refreshAttributes()

def configureAttributes() {
zigbee.onOffConfig() + zigbee.levelConfig() + zigbee.colorTemperatureConfig() + zigbee.configureReporting(COLOR_CONTROL_CLUSTER, ATTRIBUTE_HUE, 0x20, 1, 3600, 0x01) + zigbee.configureReporting(COLOR_CONTROL_CLUSTER, ATTRIBUTE_SATURATION, 0x20, 1, 3600, 0x01)

def refreshAttributes() {
zigbee.onOffRefresh() + zigbee.levelRefresh() + zigbee.colorTemperatureRefresh() + zigbee.readAttribute(0x0300, 0x00) + zigbee.readAttribute(0x0300, ATTRIBUTE_HUE) + zigbee.readAttribute(0x0300, ATTRIBUTE_SATURATION)

def setColorTemperature(value) {
device.endpointId ="0B"
zigbee.setColorTemperature(value) + ["delay 10"] + zigbee.colorTemperatureRefresh()

def setLevel(value) {
device.endpointId = "0B"
def additionalCmds = []
additionalCmds = refresh()
def hexConvertedValue = zigbee.convertToHexString((value/100) * 255)
zigbee.command(0x0008, 0x00, hexConvertedValue, "0000") + additionalCmds
/*def setLevel(value) {
device.endpointId ="0B"
zigbee.setLevel(value) + ["delay 100"] + zigbee.levelRefresh()
def setColor(value){
log.trace "setColor($value)"
device.endpointId ="0B"
zigbee.on() + setHue(value.hue) + ["delay 100"] + setSaturation(value.saturation) + ["delay 100"]+ refreshAttributes()

def setHue(value) {
def scaledHueValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
device.endpointId ="0B"
zigbee.command(COLOR_CONTROL_CLUSTER, HUE_COMMAND, scaledHueValue, "00", "0100")

def setSaturation(value) {
def scaledSatValue = zigbee.convertToHexString(Math.round(value * 0xfe / 100.0), 2)
device.endpointId ="0B"
zigbee.command(COLOR_CONTROL_CLUSTER, SATURATION_COMMAND, scaledSatValue, "0100")

// Please copy the device handler end of this line

Fixed the double quotes per Marker’s comment.

(Mike Guest) #57

Hi. I can confirm that the issue with the DH is that the cut and paste is copying smart quotes rather than basic quotes. I went through with notepad “search/replace all” and changed all the quotes to " and the DH loaded successfully. (Note that there are open quote symbols and close quote symbols and you have to replace both)

Unfortunately, while trying to get the controller working, i got a short in the power supply that gave me a flash/bang and tripped my circuit breaker :frowning: . Hopefully, i’ve not fried the controller, but I now have another PSU on order for delivery tomorrow.

(Russ W) #58

Does this also control the RGB (not RGBW) controller well?


Yes, it should.

(Myke Ricca) #60


I was able to get the code to work in the API, and information updates on my phone, however after following your steps (3 times) I can not get the device to work on my phone app…

It says:

Can not connect to device. Check device and try again.

I connected, and renamed it from the app, then changed the info in the API on my desktop, and get no errors.

I have no Idea what else the problem could be.



It looks like you did not select the correct device type on step 6 or you need re-login your smartThings APPA.

  1. Edit the device “Thing” from API
    – Name : 3A Strip Light
    – Type: 3A Nue ZigBee RGBW Light
    – Version: Self-Published



(Myke Ricca) #62

I did select the correct type, it is at the bottom of my list as this is the first handler that I have added. there is only 1 3A Nue Zigbee RGBW Light available from the list.

I can control the power of the controller using the simulator built into the API on my desktop, however I can not change any colors using the simulator.

for reference, I am using these lights:

and this power supply:

(Myke Ricca) #63

Bump, still hoping for a solution to my problem