-
Notifications
You must be signed in to change notification settings - Fork 523
WWSTCERT-9109 Added support for Bosch matter motion sensor #2555
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
base: main
Are you sure you want to change the base?
WWSTCERT-9109 Added support for Bosch matter motion sensor #2555
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 71 files 480 suites 0s ⏱️ For more details on these failures, see this check. Results for commit a7599b5. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against a7599b5 |
| @@ -0,0 +1,29 @@ | |||
| name: light-level-motion-illuminance-battery-temp | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind changing the name and file to light-level-battery-illuminance-motion-temperature to more closely fit the naming convention already created. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, please move battery, firmwareUpdate and refresh to the bottom, below switchLevel. battery should be above the other two. Thanks!
| updated_profile = "light-level-motion" | ||
| if switch_utils.check_switch_category_vendor_overrides(device) then | ||
| updated_profile = fields.vendor_overrides[device.manufacturer_info.vendor_id][device.manufacturer_info.product_id].target_profile | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| updated_profile = "light-level-motion" | |
| if switch_utils.check_switch_category_vendor_overrides(device) then | |
| updated_profile = fields.vendor_overrides[device.manufacturer_info.vendor_id][device.manufacturer_info.product_id].target_profile | |
| end | |
| updated_profile = switch_utils.get_product_override_field(device, "target_profile") or "light-level-motion" |
the check_switch_category_vendor_overrides function is unrelated to this logic.
|
Has this been tested on-device? |
f1676a1 to
0723d13
Compare
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. |
6ca7abe to
23045f1
Compare
All done. |
0b18bd6 to
98408c7
Compare
|
Hi @hcarter-775, @greens,
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 |
# 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
…nged and setting default dimmer value of the device to 100% after on command is triggered
352509c to
a7599b5
Compare
|
Your changes seem to have led to tests failing. |
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests