diff --git a/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy b/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy index de4f4d8..0f4c419 100644 --- a/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy +++ b/devicetypes/smartthings/zigbee-rgbw-bulb.src/zigbee-rgbw-bulb.groovy @@ -81,12 +81,15 @@ private getATTRIBUTE_COLOR_TEMPERATURE() { 0x0007 } def parse(String description) { log.debug "description is $description" - def finalResult = zigbee.getEvent(description) - if (finalResult) { - log.debug finalResult - if (finalResult.name=="level" && finalResult.value==0) {} + def event = zigbee.getEvent(description) + if (event) { + log.debug event + if (event.name=="level" && event.value==0) {} else { - sendEvent(finalResult) + if (event.name=="colorTemperature") { + setGenericName(event.value) + } + sendEvent(event) } } else { diff --git a/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy b/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy index 539d8fd..e2cac3a 100644 --- a/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy +++ b/devicetypes/smartthings/zigbee-white-color-temperature-bulb.src/zigbee-white-color-temperature-bulb.groovy @@ -74,6 +74,9 @@ def parse(String description) { if (event) { if (event.name=="level" && event.value==0) {} else { + if (event.name=="colorTemperature") { + setGenericName(event.value) + } sendEvent(event) } }