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 492 suites 0s ⏱️ Results for commit 2023b46. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 2023b46 |
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
| local min_mireds = capabilities.colorTemperature.colorTemperatureRange.minimum or COLOR_TEMPERATURE_MIRED_MIN -- default min mireds | ||
| local max_mireds = capabilities.colorTemperature.colorTemperatureRange.maximum or COLOR_TEMPERATURE_MIRED_MAX -- default max mireds |
There was a problem hiding this comment.
Isn't the colorTemperatureRange defined in kelvin? Since these are handled in mireds I believe these need to be converted. Also, the values of colorTemperatureRange are required in the capability definition, so doing it this way I do not think we'd need an "or" case
There was a problem hiding this comment.
Also (could be mistaken) but I think this implementation cannot be matched today in the native handlers, so if we want to map this, we'll have to use the previous get_field implementation. I don't really know what should be done with that but calling it out now.
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
| local kelvin_min = device:get_field(switch_utils.KELVIN_MIN); | ||
| local kelvin_max = device:get_field(switch_utils.KELVIN_MAX); |
There was a problem hiding this comment.
these are only used to store one value until we get the second, the range attribute's value should be considered canonical over these.
drivers/SmartThings/zigbee-switch/src/stateless_handlers/can_handle.lua
Outdated
Show resolved
Hide resolved
671071f to
2023b46
Compare
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests