Skip to content

Conversation

@JanJakubiszyn
Copy link
Contributor

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

@github-actions
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Test Results

   71 files    482 suites   0s ⏱️
2 493 tests 2 493 ✅ 0 💤 0 ❌
4 278 runs  4 278 ✅ 0 💤 0 ❌

Results for commit 90ed999.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/init.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/embedded_cluster_utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/utils.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/attribute_handlers.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/capability_handlers.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/eve_energy/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/event_handlers.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/attribute_handlers.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua 89%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/utils.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/aqara_cube/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/third_reality_mk1/init.lua 95%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 90ed999

@greens greens changed the title Added support for Bosch matter motion sensor WWSTCERT-9109 Added support for Bosch matter motion sensor Nov 24, 2025
@hcarter-775
Copy link
Contributor

Has this been tested on-device?

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from f1676a1 to 0723d13 Compare November 27, 2025 15:03
@JanJakubiszyn
Copy link
Contributor Author

JanJakubiszyn commented Nov 27, 2025

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!

@greens
Copy link
Contributor

greens commented Dec 5, 2025

@JanJakubiszyn You'll need to rebase your changes.

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from 6ca7abe to 23045f1 Compare December 8, 2025 13:02
@JanJakubiszyn
Copy link
Contributor Author

@JanJakubiszyn You'll need to rebase your changes.

All done.

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from 0b18bd6 to 98408c7 Compare December 19, 2025 15:30
@JanJakubiszyn
Copy link
Contributor Author

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.

@greens
Copy link
Contributor

greens commented Jan 16, 2026

Looks like this has fallen out of date again

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from 352509c to a7599b5 Compare January 22, 2026 15:37
@greens
Copy link
Contributor

greens commented Jan 22, 2026

Your changes seem to have led to tests failing.

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from a7599b5 to a7615c3 Compare January 26, 2026 12:36
@JanJakubiszyn
Copy link
Contributor Author

Your changes seem to have led to tests failing.

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

@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch 2 times, most recently from 27e7e25 to aaf0609 Compare January 27, 2026 15:43
@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch 3 times, most recently from 28853f8 to 5a2ed61 Compare January 27, 2026 15:59
@JanJakubiszyn
Copy link
Contributor Author

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

Copy link
Contributor

@hcarter-775 hcarter-775 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than these last edge-case nits, this lgtm. Thanks for the prompt responses!

@JanJakubiszyn
Copy link
Contributor Author

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

@hcarter-775
Copy link
Contributor

@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 JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch 2 times, most recently from 78cf6fe to 5bcda22 Compare January 27, 2026 17:25
@JanJakubiszyn
Copy link
Contributor Author

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

@hcarter-775
Copy link
Contributor

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

# Conflicts:
#	drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua
#	drivers/SmartThings/matter-switch/src/switch_utils/fields.lua
… name and capability order, edit of the match_profile's condition

# Conflicts:
#	drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua

# Conflicts:
#	drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua
@JanJakubiszyn JanJakubiszyn force-pushed the Bosch_motion_sensor_support branch from 5bcda22 to 90ed999 Compare January 28, 2026 13:38
@JanJakubiszyn
Copy link
Contributor Author

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 - #2737

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.

3 participants