-
Notifications
You must be signed in to change notification settings - Fork 522
Matter Switch: Add new RGBW profile with a fixed W #2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
| 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") |
There was a problem hiding this comment.
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.
Test Results 71 files 480 suites 0s ⏱️ Results for commit de15c71. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against de15c71 |
d954c80 to
de15c71
Compare
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:
2200K-6500Kfingerprints the generic counterpart. Since this is the default in the generic profile, this changes nothing on the user end.Summary of Completed Tests
Unit tests updated to ensure proper updates, unit test added for new functionality.