-
Notifications
You must be signed in to change notification settings - Fork 523
Matter Switch: Attempt re-profiling on device software updates #2466
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
Conversation
|
Channel deleted. |
Test Results 71 files 477 suites 0s ⏱️ Results for commit 1c77860. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 1c77860 |
drivers/SmartThings/matter-switch/src/utils/device_configuration.lua
Outdated
Show resolved
Hide resolved
199f355 to
eda1721
Compare
drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua
Show resolved
Hide resolved
| end | ||
| end | ||
|
|
||
| function SwitchLifecycleHandlers.device_removed(driver, device) |
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.
I just moved this to the bottom of the file. We never touch this and I personally am always getting confused where device_init is when developing with this placed above it.
fb3f845 to
73aa8dc
Compare
9daef3c to
2f1d29e
Compare
2f1d29e to
844dc8d
Compare
nickolas-deboom
left a comment
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.
I don't see any issues with these changes and think this will be a super handy feature. It would be good to see if we can test this on device and then this should be good to go!
Description of Change
We store data related to the device software version (saved from the BasicInformation cluster's softwareVersion attribute) on the driver st_store. This leverages that version to attempt a re-profiling if this is ever updated. The same data is what is leveraged by the hub to re-interview a device on a device update as well.
This is built on top of the following PR: #2481 since that allows for more generic re-profiling of the parent devices.
Summary of Completed Tests
Tested that
try_update_metadataworks as expected for child devices.