HELP: GLEDOPTO GL-C-008P-Mix - Pairs but no on/off (white CCT)

Hello:

Has anyone gotten this device to work with a non-RGBW LED? I am trying to make this work with a White (Warm/Cool) LED strip and while the device pairs, it will not control the LED. I have tried the Advanced RGBW (default when paired), Generic RGB Light but nothing works. I even tried the custom driver in this thread (https://community.hubitat.com/t/release-gledopto-gl-c-601p-pro-max-5-in-1-cct-tunable-white-driver/) but that did not work either. I know the wiring is correct because I can hold the "reset" button down and the LED will blink when the device is reset. Any help would be appreciated - thanks!

@mike.maxwell does this driver need updates or a dedicated driver for these newer Gledopto?

Well - I asked Gemini to create a driver specifically for my use and after a few rounds (the first one version it created worked but I had a few nits), it got me this version that is pretty close to what I want. If anyone has a similar need, feel free to use/improve it!

/**
 *  Gledopto CCT LED Controller (Hubitat Custom Driver)
 *  Provides local control for Tunable White (CCT) LED strips.
 */

metadata {
    definition (name: "Gledopto CCT LED Controller", namespace: "custom", author: "Community") {
        capability "Actuator"
        capability "Switch"
        capability "SwitchLevel"
        capability "ColorTemperature"
        capability "Configuration"
        capability "Refresh"

        attribute "colorName", "string"

        command "setColorTemperature", [[name: "kelvin", type: "NUMBER", description: "2700 = Warm White | 3000 = Soft White | 4000 = Neutral White | 5000 = Cool White | 6500 = Daylight"]]

        fingerprint profileId: "0104", inClusters: "0000,0003,0004,0005,0006,0008,0300", outClusters: "0019", manufacturer: "GLEDOPTO", model: "GL-C-008P", deviceJoinName: "Gledopto CCT Controller"
    }

    preferences {
        input name: "logEnable", type: "bool", title: "Enable debug logging", defaultValue: false
    }
}

def parse(String description) {
    if (logEnable) log.debug "Parsing description: ${description}"
    def event = zigbee.getEvent(description)
    
    if (event && event.name == "colorTemperature") {
        def clampedKelvin = Math.max(2700, event.value.toInteger())
        event.value = clampedKelvin
        event.descriptionText = "${device.displayName} color is ${clampedKelvin}K"
        sendEvent(event)
        sendEvent(name: "colorName", value: calculateColorName(clampedKelvin))
        return
    }
    
    if (event) {
        sendEvent(event)
    } else {
        def cluster = zigbee.parse(description)
        if (cluster && logEnable) log.debug "Cluster parsed: ${cluster}"
    }
}

private String calculateColorName(kelvin) {
    def k = kelvin.toInteger()
    if (k < 2400) return "Warm Amber"
    if (k < 3200) return "Warm White"
    if (k < 4500) return "Neutral White"
    if (k < 5500) return "Cool White"
    return "Daylight"
}

def on() {
    if (logEnable) log.debug "Sending ON command"
    sendEvent(name: "switch", value: "on")
    zigbee.on()
}

def off() {
    if (logEnable) log.debug "Sending OFF command"
    sendEvent(name: "switch", value: "off")
    zigbee.off()
}

def setLevel(level, duration = 1) {
    def targetLevel = Math.max(0, Math.min(100, level.toInteger()))
    sendEvent(name: "level", value: targetLevel)
    
    if (device.currentValue("switch") == "on") {
        if (logEnable) log.debug "Setting level to ${targetLevel} while ON"
        return zigbee.setLevel(targetLevel, duration.toInteger())
    } else {
        if (logEnable) log.debug "Updated level to ${targetLevel} in background (switch is OFF)"
        return []
    }
}

def setColorTemperature(kelvin) {
    def targetKelvin = Math.max(2700, Math.min(6500, kelvin.toInteger()))
    def name = calculateColorName(targetKelvin)
    
    sendEvent(name: "colorTemperature", value: targetKelvin)
    sendEvent(name: "colorName", value: name)
    
    if (device.currentValue("switch") == "on") {
        if (logEnable) log.debug "Setting color temperature to ${targetKelvin}K (${name}) while ON"
        return zigbee.setColorTemperature(targetKelvin)
    } else {
        if (logEnable) log.debug "Updated color temperature to ${targetKelvin}K (${name}) in background (switch is OFF)"
        return []
    }
}

def refresh() {
    if (logEnable) log.debug "Refreshing device status"
    return zigbee.onOffRefresh() + zigbee.levelRefresh() + zigbee.colorTemperatureRefresh()
}

def configure() {
    if (logEnable) log.debug "Configuring Zigbee reporting"
    return zigbee.onOffConfig() + zigbee.levelConfig() + zigbee.colorTemperatureConfig() + refresh()
}