Skip to content

Conversation

HunsupJung
Copy link
Collaborator

@HunsupJung HunsupJung commented Oct 1, 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

This PR is for supporting Routine of robotCleanerOperatingState Capability and includes follows.

  1. Variables used in duplicate were changed to global variables.
  2. rvc_operational_state_list_attr_handler has been added to support Condition of Routine.
  3. handle_rvc_operational_state_accepted_command_list has been updated to update supportedCommands
  4. driverSwitched has been added to execute handle_rvc_operational_state_accepted_command_list after updating driver.

Summary of Completed Tests

Copy link

github-actions bot commented Oct 1, 2025

Copy link

github-actions bot commented Oct 1, 2025

Test Results

   71 files    455 suites   0s ⏱️
2 354 tests 2 340 ✅ 0 💤 0 ❌ 14 🔥
3 977 runs  3 963 ✅ 0 💤 0 ❌ 14 🔥

For more details on these errors, see this check.

Results for commit 0ced929.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 1, 2025

File Coverage
All files 55%
/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/ServiceArea/types/SelectAreasStatus.lua 69%
/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/AreaInfoStruct.lua 59%
/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/Global/types/LocationDescriptorStruct.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/init.lua 37%
/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 0ced929

@HunsupJung HunsupJung force-pushed the feature/update-rvc-routine branch from 388bea7 to 9ce965f Compare October 13, 2025 12:20
@@ -0,0 +1,108 @@
name: Robot Cleaner Operating State
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @HunsupJung why do we need this capability to be embedded? It appears the same capability def is already deployed in production

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the capability def is already deployed in production, but it is not applied in scripting-engine, so if the def is not added, test action is failed in this PR.
Could you update the scripting-engine like Tom did before? After that we can remove the capability def.
https://github.ecodesamsung.com/iot-hub/scripting-engine/pulls?q=is%3Apr+author%3Atpmanley+is%3Aclosed

 - AcceptedCommandList file and GoHome file for lower lua lib integration
 - Add augment_type() for lower lua lib integraiton
 - Replacing with get_latest_state()

Signed-off-by: Hunsup Jung <[email protected]>
Comment on lines 505 to 508
if supported_areas ~= nil then
for i, area in ipairs(supported_areas) do
table.insert(selected_areas, area.areaId)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if supported_areas ~= nil then
for i, area in ipairs(supported_areas) do
table.insert(selected_areas, area.areaId)
end
for i, area in ipairs(supported_areas or {}) do
table.insert(selected_areas, area.areaId)
end

Signed-off-by: Hunsup Jung <[email protected]>
@HunsupJung
Copy link
Collaborator Author

@hcarter-775
Thank you for reviewing. I will merge this PR this Friday.
When I checked test unit with your scripting-engine patch in my local pc, there was no issue.

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.

2 participants