Skip to content

Conversation

HunsupJung
Copy link
Collaborator

@HunsupJung HunsupJung commented Aug 15, 2025

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • 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
  • Refactor

Checklist

  • 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

The unnecessary mode capability for Run Mode cluster has been deleted.

Summary of Completed Tests

This feature is being tested with following TC in SVT.
https://smartthings.atlassian.net/wiki/spaces/STHK/pages/4088660856/REQ-22349+Matter+RVC+UX+Upgrade+TC

 - Integrate components
 - Remove mode capability for run mode cluster

Signed-off-by: HunsupJung <[email protected]>
Signed-off-by: HunsupJung <[email protected]>
@HunsupJung HunsupJung changed the title Feature/updating matter rvc ux Updating matter rvc ux Aug 15, 2025
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

Copy link

github-actions bot commented Aug 15, 2025

Test Results

   69 files    449 suites   0s ⏱️
2 330 tests 2 311 ✅ 0 💤 0 ❌ 19 🔥
3 922 runs  3 903 ✅ 0 💤 0 ❌ 19 🔥

For more details on these errors, see this check.

Results for commit a5a6c42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Aug 15, 2025

File Coverage
All files 51%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/ServiceArea/types/AreaInfoStruct.lua 59%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/ServiceArea/types/LandmarkInfoStruct.lua 59%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/ServiceArea/types/SelectAreasStatus.lua 69%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/ServiceArea/types/AreaStruct.lua 63%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/Global/types/LandmarkTag.lua 67%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/Global/types/LocationDescriptorStruct.lua 63%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/Global/types/AreaTypeTag.lua 66%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/Global/types/RelativePositionTag.lua 68%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/init.lua 23%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-rvc/src/embedded_cluster_utils.lua 72%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against a5a6c42

@HunsupJung HunsupJung force-pushed the feature/updating-matter-rvc-ux branch from d1c20d1 to df9744e Compare August 15, 2025 10:31
@@ -5,6 +5,8 @@ components:
capabilities:
- id: robotCleanerOperatingState
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these profiles currently in use by devices? If so, it might be better to create new profiles rather than removing capabilities to avoid breaking automations / rules for devices in the field.

Copy link
Contributor

Choose a reason for hiding this comment

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

I confirmed these profiles are used by devices, and that automations are being used on the mode operation for at least a handful, though the percentage is small.

Instead of adding new profiles, I believe we should modify the system to use the benefits of modular profiles.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@hcarter-775
Can we use the modular profiles by 9/9? If so, could you share the way to use the modular profiles?

local function component_to_endpoint(device, component_name)
-- Use the find_default_endpoint function to return the first endpoint that
-- supports a given cluster.
return find_default_endpoint(device, clusters.RvcOperationalState.ID)
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the endpoint structure typically look like for a RVC? Are the clusters usually all implemented on the same endpoint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I not sure, but Roborock implements Power Source, RVC Run Mode, RVC Clean Mode, RVC Operational State, and Service Area on the endpoint 1.

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