-
Couldn't load subscription status.
- Fork 514
WWSTCERT-8419/8461 Aqara dimmer controller t1 #2468
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?
WWSTCERT-8419/8461 Aqara dimmer controller t1 #2468
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 71 files 457 suites 0s ⏱️ Results for commit 875c45a. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 875c45a |
|
|
||
| local devices = { | ||
| AQARA_LIGHT = { | ||
| MATCHING_MATRIX = { mfr = "LUMI", model = "lumi.light.acn004" }, |
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.
you should just be able to add the new model here rather than duplicating this map entirely
| local function init(self, device) | ||
| local min = 2700 | ||
| local max = 6000 | ||
|
|
||
| if device:get_model() == "lumi.light.cwacn1" then | ||
| max = 6500 | ||
| end | ||
| device:emit_event(capabilities.colorTemperature.colorTemperatureRange({ minimum = min, maximum = max })) | ||
| end | ||
|
|
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.
I understand the instinct here so that existing devices get this change, but we do not want this event to fire every time the driver starts.
I would add this event to the added handler as well, and a follow-up PR a week later should be created to remove this code here in init. I'd also add gating to check for an existing colorTemperatureRange value before emitting this event.
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests