Zigbee Switch: Add support/handling for Stateless Step Capabilities#2818
Zigbee Switch: Add support/handling for Stateless Step Capabilities#2818
Conversation
|
Invitation URL: |
Test Results 72 files 495 suites 0s ⏱️ Results for commit 3da9241. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 3da9241 |
535962c to
cf1fc47
Compare
|
Duplicate profile check: Warning - duplicate profiles detected. |
3d5baa4 to
8855768
Compare
c0a48c5 to
f4a7af9
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
f10a277 to
1bbafc5
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
1bbafc5 to
21d5850
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
4ad4ca3 to
75ef0dc
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/zigbee-switch/src/stateless_handlers/can_handle.lua
Outdated
Show resolved
Hide resolved
671071f to
2023b46
Compare
2023b46 to
2a1d09d
Compare
| switch_utils.KELVIN_MAX = "_max_kelvin" | ||
| switch_utils.KELVIN_MIN = "_min_kelvin" | ||
| switch_utils.MIREDS_CONVERSION_CONSTANT = 1000000 | ||
| switch_utils.COLOR_TEMPERATURE_KELVIN_MAX = 15000 |
There was a problem hiding this comment.
I think we need to adjust these max/min's similar to what you did or were going to do for Matter
There was a problem hiding this comment.
The Matter change (seen here) does not actually alter the max/min values- only the defaults used as max and min for the step level.
One reason I haven't done that in this PR is because I'm not sure what the correct default should be. In matter there is a relatively clear default from my perspective, but not here.
There was a problem hiding this comment.
I think the same range would be fine to use here. It's going to be closer to reality than 1000-15000
| local function step_color_temperature_by_percent_handler(driver, device, cmd) | ||
| local step_percent_change = cmd.args and cmd.args.stepSize or 0 | ||
| if step_percent_change == 0 then return end | ||
| local step_mode = step_percent_change > 0 and clusters.ColorControl.types.CcStepMode.DOWN or clusters.ColorControl.types.CcStepMode.UP |
There was a problem hiding this comment.
It'd be helpful to add a comment here that a step up in Kelvin is a step down in mireds
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests