Skip to content

Conversation

@pegor-karoglanian
Copy link

Check all that apply

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

Summary of Completed Tests

@CLAassistant
Copy link

CLAassistant commented Sep 19, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ greens
❌ pegor-karoglanian
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Sep 19, 2025

Test Results

   71 files    483 suites   0s ⏱️
2 499 tests 2 467 ✅ 0 💤 32 ❌
4 279 runs  4 247 ✅ 0 💤 32 ❌

For more details on these failures, see this check.

Results for commit 0d7fe54.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 19, 2025

zigbee-lock_coverage.xml

File Coverage
All files 73%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/configurations.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/lock_utils.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/new_lock_utils.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/yale/yale-bad-battery-reporter/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/samsungsds/init.lua 65%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/lock-without-codes/init.lua 76%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-old-capabilities/yale/init.lua 81%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-old-capabilities/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/init.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/yale/init.lua 23%

zwave-lock_coverage.xml

File Coverage
All files 51%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/configurations.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/lock_utils.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/new_lock_utils.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/yale/yale-bad-battery-reporter/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/samsungsds/init.lua 65%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/lock-without-codes/init.lua 76%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-old-capabilities/yale/init.lua 81%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-old-capabilities/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/init.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-lock/src/using-new-capabilities/yale/init.lua 23%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/samsung-lock/init.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/init.lua 79%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/can_handle.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/zwave-alarm-v1-lock/init.lua 20%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/schlage-lock/init.lua 37%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-old-capabilities/keywe-lock/init.lua 52%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-lock/src/using-new-capabilities/can_handle.lua 71%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 0d7fe54

@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch 2 times, most recently from b8168d4 to 36fa094 Compare September 29, 2025 20:25
@pegor-karoglanian pegor-karoglanian marked this pull request as ready for review September 29, 2025 20:26
@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch from 36fa094 to b303430 Compare September 29, 2025 20:47
@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch 3 times, most recently from ecdc2be to c248678 Compare September 30, 2025 22:29
@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch from be53bc5 to 1230bdd Compare December 2, 2025 19:16
@pegor-karoglanian pegor-karoglanian marked this pull request as draft December 10, 2025 23:16
@pegor-karoglanian
Copy link
Author

12/10 update: Converted this PR to draft since a lot more is now going in. The latest commit adds all the commands for lockUsers and lockCredentials along with unit tests covering most of them. There are still more test cases I need to add and to tweak some of the functionality.

@@ -0,0 +1,121 @@
-- Copyright 2022 SmartThings
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, but this date should be updated

local LockUsers = capabilities.lockUsers
local INITIAL_INDEX = 1

local new_lock_utils = {
Copy link
Contributor

Choose a reason for hiding this comment

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

it's unlikely you'll need all of these strings, and, in general, they should be available from inside the capabilities themselves.

@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch from 62e48ca to 9c7d6f9 Compare December 22, 2025 23:13
@pegor-karoglanian pegor-karoglanian changed the title CHAD-16364 & CHAD-16365: Add lockUsers and lockCredentials to profiles and also implement lockCodes:migrate functionality. CHAD-16364 & CHAD-16365: Add lockUsers and lockCredentials capability Dec 22, 2025
})
}
},
useOldCapabilityForTesting = true
Copy link
Author

Choose a reason for hiding this comment

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

Not sure if this is an appropriate way to go about this. Open to suggestions.

@pegor-karoglanian pegor-karoglanian force-pushed the pegor/edgedrivers/lock_changes branch from bff6478 to ada5f59 Compare December 24, 2025 02:43
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.

6 participants