SmartThingsEdgeDrivers icon indicating copy to clipboard operation
SmartThingsEdgeDrivers copied to clipboard

WWSTCERT-9109 Added support for Bosch matter motion sensor

Open JanJakubiszyn opened this issue 1 year ago • 10 comments

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
  • [ ] 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

JanJakubiszyn avatar Nov 14 '25 15:11 JanJakubiszyn

Duplicate profile check: Passed - no duplicate profiles detected.

github-actions[bot] avatar Nov 14 '25 16:11 github-actions[bot]

Channel deleted.

github-actions[bot] avatar Nov 14 '25 16:11 github-actions[bot]

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.

github-actions[bot] avatar Nov 14 '25 16:11 github-actions[bot]

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

github-actions[bot] avatar Nov 14 '25 16:11 github-actions[bot]

Has this been tested on-device?

hcarter-775 avatar Nov 25 '25 18:11 hcarter-775

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 avatar Nov 27 '25 15:11 JanJakubiszyn

@JanJakubiszyn You'll need to rebase your changes.

greens avatar Dec 05 '25 19:12 greens

@JanJakubiszyn You'll need to rebase your changes.

All done.

JanJakubiszyn avatar Dec 08 '25 13:12 JanJakubiszyn

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.

JanJakubiszyn avatar Dec 19 '25 16:12 JanJakubiszyn

Looks like this has fallen out of date again

greens avatar Jan 16 '26 19:01 greens

Your changes seem to have led to tests failing.

greens avatar Jan 22 '26 22:01 greens

Your changes seem to have led to tests failing.

Hi @greens , I've fixed the failing test.

JanJakubiszyn avatar Jan 26 '26 12:01 JanJakubiszyn

I've updated the code to align with the requirements.

JanJakubiszyn avatar Jan 27 '26 16:01 JanJakubiszyn

@hcarter-775, I've applied your suggestions. Thanks!

JanJakubiszyn avatar Jan 27 '26 16:01 JanJakubiszyn

@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?)

hcarter-775 avatar Jan 27 '26 17:01 hcarter-775

@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.

JanJakubiszyn avatar Jan 27 '26 17:01 JanJakubiszyn

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

hcarter-775 avatar Jan 27 '26 19:01 hcarter-775

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

JanJakubiszyn avatar Jan 28 '26 13:01 JanJakubiszyn

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.

cbaumler avatar Jun 05 '26 15:06 cbaumler

Hi @JanJakubiszyn, it looks like there are test failures being reported by CI.

cbaumler avatar Jun 09 '26 14:06 cbaumler