WWSTCERT-9109 Added support for Bosch matter motion sensor
Check all that apply
Type of Change
- [ ] WWST Certification Request
- If this is your first time contributing code:
- [x ] I have reviewed the README.md file
- [ x] I have reviewed the CODE_OF_CONDUCT.md file
- [ x] I have signed the CLA
- [ ] I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
- If this is your first time contributing code:
- [ ] Bug fix
- [ ] New feature
- [ x] Refactor
Checklist
- [ x] I have performed a self-review of my code
- [ ] I have commented my code in hard-to-understand areas
- [ ] I have verified my changes by testing with a device or have communicated a plan for testing
- [ ] I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior
Description of Change
Summary of Completed Tests
Duplicate profile check: Passed - no duplicate profiles detected.
Channel deleted.
Test Results
73 files ±0 515 suites ±0 0s ⏱️ ±0s 2 904 tests ±0 2 904 ✅ +1 0 💤 ±0 0 ❌ - 1 4 800 runs ±0 4 800 ✅ +1 0 💤 ±0 0 ❌ - 1
Results for commit f1317058. ± Comparison against base commit 42a6a234.
:recycle: This comment has been updated with latest results.
| File | Coverage | |
|---|---|---|
| All files | 92% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/utils.lua | 92% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua | 97% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/embedded_cluster_utils.lua | 38% |
:x: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/aqara_cube/init.lua | 95% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/attribute_handlers.lua | 96% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/capability_handlers.lua | 84% |
:x: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua | 92% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/event_handlers.lua | 97% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/attribute_handlers.lua | 80% |
:x: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/eve_energy/init.lua | 91% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/device_configuration.lua | 94% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/utils.lua | 98% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua | 97% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/init.lua | 96% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/third_reality_mk1/init.lua | 95% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/init.lua | 87% |
:x: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/scroll_handlers/event_handlers.lua | 93% |
:white_check_mark: |
Minimum allowed coverage is 90%
Generated by :monkey: cobertura-action against f1317058cd6a888213b894ea9dd43012e5b23b11
Has this been tested on-device?
Has this been tested on-device?
Yes, I have tested it with the device and it works well.
I have implemented all of the mentioned changes from the review.
Thank You!
@JanJakubiszyn You'll need to rebase your changes.
@JanJakubiszyn You'll need to rebase your changes.
All done.
Hi @hcarter-775, @greens,
- To fix the an issue with default 70% dim value after sending the "on" command I have added the "OnLevel" attribute change (WWST-10126)
- I also added refresh after the info_changed function is triggered. It has been done to increase the speed of the temperature update after temperature_offset preference is changed.
Please let me know if I should proceed with editing the rest of the unit tests accordingly or should I take a different approach.
Looks like this has fallen out of date again
Your changes seem to have led to tests failing.
Your changes seem to have led to tests failing.
Hi @greens , I've fixed the failing test.
I've updated the code to align with the requirements.
@hcarter-775, I've applied your suggestions. Thanks!
@JanJakubiszyn sweet, this lgtm. Now we just have to fix the unit tests that have broken (probably due to the extra preference gating you introduced?)
@JanJakubiszyn sweet, this lgtm. Now we just have to fix the unit tests that have broken (probably due to the extra preference gating you introduced?)
Done. Everything should be good now.
Hey @JanJakubiszyn , can you pull the preference stuff you've added into a separate PR? Then we can push that forward this week without the WWST stuff. cc: @nickolas-deboom
Hey @JanJakubiszyn , can you pull the preference stuff you've added into a separate PR? Then we can push that forward this week without the WWST stuff. cc: @nickolas-deboom
Hi @hcarter-775, I have transferred the offset reading to another PR - https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/pull/2737
Hi @JanJakubiszyn, it looks like this PR branch is out of date with main. Could you update it with the latest main? Then @hcarter-775 can re-review.
Hi @JanJakubiszyn, it looks like there are test failures being reported by CI.