Skip to content

CHAD-12653 Zigbee: Add support for reading ColorTemperatureRange#2779

Open
greens wants to merge 2 commits intomainfrom
feature/color_temp_range
Open

CHAD-12653 Zigbee: Add support for reading ColorTemperatureRange#2779
greens wants to merge 2 commits intomainfrom
feature/color_temp_range

Conversation

@greens
Copy link
Contributor

@greens greens commented Feb 13, 2026

No description provided.

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Feb 13, 2026

Test Results

   72 files  ± 0    487 suites  +1   0s ⏱️ ±0s
2 546 tests +15  2 546 ✅ +15  0 💤 ±0  0 ❌ ±0 
4 386 runs  +40  4 386 ✅ +40  0 💤 ±0  0 ❌ ±0 

Results for commit 662fce3. ± Comparison against base commit 5f76622.

This pull request removes 2 and adds 17 tests. Note that renamed tests count towards both.
Component-capability update without profile ID update should cause re-subscribe in infoChanged handler
No component-capability update an no profile ID update should not cause a re-subscribe in infoChanged handler
Adding a window treatment device should emit supportedWindowShadeCommands
Basic Set value=0 for contact sensor should emit contact.closed
Basic Set value=0 for motion sensor should emit motion.inactive
Central scene notification with scene_number beyond profile buttons falls back to main component
Color temperature range report test
Configuration:Report for OPERATING_MODE=1 should update to roller shutter profile
Configuration:Report for OPERATING_MODE=2 should update to venetian profile
Notification HOME_SECURITY MOTION_DETECTION should be handled as motion active
Sensor multilevel luminance report with value=0 uses default lux conversion
Setting window shade level to 0 on iblinds v1 should emit windowShade.closed
…

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 13, 2026

File Coverage
All files 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/frient-IO/init.lua 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/frient-IO/unbind_request.lua 71%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/preferences.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/lazy_load_subdriver.lua 57%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/ge-link-bulb/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/frient/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/lifecycle_handlers/device_added.lua 70%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/inovelli/vzm32-sn/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/wallhero/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/jasco/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/inovelli/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/color_temp_range_handlers/init.lua 80%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/laisiao/init.lua 87%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara/version/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/configurations/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/tuya-multi/can_handle.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/inovelli/vzm30-sn/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara-light/init.lua 90%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 662fce3

update fingerprints pointing to specific ranges
@greens greens force-pushed the feature/color_temp_range branch from e462a97 to 9c79973 Compare February 24, 2026 19:44
deviceLabel: Innr Light
manufacturer: innr
model: RB 250 C
deviceProfileName: rgbw-bulb-1800K-6500K
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case that these devices are mis-handling their color temp bounds, we may want to leave the profile as they are?

return
end
local temp_in_kelvin = utils.round(MIREDS_CONVERSION_CONSTANT / temp_in_mired)
device:set_field(MIREDS_MAX..endpoint, temp_in_kelvin)
Copy link
Contributor

@cjswedes cjswedes Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. How come the temp in kelvin is getting stored to a key for mireds? This is a bit confusing
  2. Also, why is it the MAX value used rather than the min value? I assume this is just how the colors work, so maybe a comment explaining why min mireds -> max kelvin.

can_handle = require("color_temp_range_handlers.can_handle")
}

return color_temp_range_handlers No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline

Comment on lines +6 to +8
local COLOR_CONTROL_ID = 0x0300
local COLOR_TEMP_PHYSICAL_MIN_MIREDS_ID = 0x0400B
local COLOR_TEMP_PHYSICAL_MAX_MIREDS_ID = 0x0400C
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we require "st.zigbee.zcl.clusters" for this file? Or are there some memory/performance savings we're getting by defining the constants?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants