Skip to content

Conversation

@hcarter-775
Copy link
Contributor

Description of Change

Add new profile, light-color-level-noTemp, to handle devices supporting color but no temperature. Adds new default logic, gating on the ColorTemeperature Feature, to define this.

To make this work, I had to work around the current deprecated profiles used by fingerprints, so that generic color lights could be re-profiled. To do this, I did 2 things:

  1. Made all 2200K-6500K fingerprints the generic counterpart. Since this is the default in the generic profile, this changes nothing on the user end.
  2. For all remaining non-default fingerprints, I added a new table that will be checked during onboarding to ignore re-profiling if it is found. This list can (hopefully) be whittled down further with time, as we move away from any deprecated profiles.

Summary of Completed Tests

Unit tests updated to ensure proper updates, unit test added for new functionality.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Duplicate profile check: Passed - no duplicate profiles detected.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Comment on lines +203 to +206
elseif switch_utils.check_switch_category_vendor_overrides(device) then
-- check whether the overwrite should be over "plug" or "light" based on the current profile
local overwrite_category = string.find(updated_profile, "plug") and "plug" or "light"
updated_profile = string.gsub(updated_profile, overwrite_category, "switch")
Copy link
Contributor Author

@hcarter-775 hcarter-775 Jan 7, 2026

Choose a reason for hiding this comment

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

This change is technically unrelated. When looking this over, I didn't think it was generic to assume all devices using a "Switch" category override have a plug device type. That does make the most since I think, but should not be a prerequisite in this logic.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Test Results

   71 files    480 suites   0s ⏱️
2 484 tests 2 484 ✅ 0 💤 0 ❌
4 265 runs  4 265 ✅ 0 💤 0 ❌

Results for commit de15c71.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/fields.lua 99%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/utils.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/embedded_cluster_utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/aqara_cube/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/event_handlers.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/attribute_handlers.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua 89%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/init.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/utils.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/capability_handlers.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/attribute_handlers.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/third_reality_mk1/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/eve_energy/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/init.lua 98%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against de15c71

@hcarter-775 hcarter-775 force-pushed the add-fixed-W-RGBW-profile branch from d954c80 to de15c71 Compare January 7, 2026 22:07
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.

2 participants