Skip to content
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

Rolling up main to beta #1849

Merged
merged 15 commits into from
Dec 31, 2024
Merged

Rolling up main to beta #1849

merged 15 commits into from
Dec 31, 2024

Conversation

greens
Copy link
Contributor

@greens greens commented Dec 30, 2024

No description provided.

dljsjr and others added 15 commits December 18, 2024 17:22
The mirek (or mired) to kelvin conversion can suffer from precision
mismatches that can lead to computed Kelvin values slightly above
the expected maximum in certain situations.

The platform convention is to clamp to steps of 100, so we implement
that here when converting from the color temp value we get from the
Hue API in to the Kelvin value we use on the platform.
This was some of the first code I wrote for the Hue driver, and I had
a misunderstanding of the `min_dimming` property returned by the API.

The `min_dimming` value in the API is informative, and represents a percent
of the total lumens the device is capable of outputting that you will get
if you request the lowest possible brightness for the bulb (1%).

We were interpreting it as a lower bound on the values to send, which is
not correct.

This PR removes the lower bound checks, and instead clamps all dimming commands
to the range of [1,100] inclusive.
…ps-hue-dimming-range

Hue: Remove incorrect dimming lower bound logic.
- Mostly updates type hints/annotations
- Fix one place where typechecks caught a missing nil check
Using `ipairs` here instead of `pairs` meant that any devices
that ended up in this queue were never actually being refreshed.

Fixes #1674
…n-remote-reliability

Hue: Fix multi-component device initialization race condition
Signed-off-by: zhou chengyu <[email protected]>
Co-authored-by: Alissa Dornbos <[email protected]>
Signed-off-by: zhou chengyu <[email protected]>
Co-authored-by: Alissa Dornbos <[email protected]>
Copy link

github-actions bot commented Dec 30, 2024

Channel deleted.

Copy link

Test Results

   64 files  ±0    402 suites  ±0   0s ⏱️ ±0s
2 004 tests +2  2 004 ✅ +2  0 💤 ±0  0 ❌ ±0 
3 458 runs  +2  3 458 ✅ +2  0 💤 ±0  0 ❌ ±0 

Results for commit 7fd2e7b. ± Comparison against base commit 2cb2645.

Copy link

matter-thermostat_coverage.xml

File Coverage
All files 83%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/embedded-cluster-utils.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/init.lua 85%

matter-window-covering_coverage.xml

File Coverage
All files 71%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/embedded-cluster-utils.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/init.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/matter-window-covering-position-updates-while-moving/init.lua 36%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/init.lua 95%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 7fd2e7b

@greens greens merged commit 9a357ab into beta Dec 31, 2024
33 of 34 checks passed
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.

5 participants