-
Notifications
You must be signed in to change notification settings - Fork 521
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 475 suites 0s ⏱️ Results for commit 0723d13. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 0723d13 |
| @@ -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? |
…e and capability order, edit of the match_profile's condition
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! |
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests