Skip to content

Conversation

marcintyminski
Copy link
Contributor

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

Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Sep 29, 2025

Channel deleted.

Copy link

github-actions bot commented Sep 29, 2025

Test Results

   71 files    453 suites   0s ⏱️
2 348 tests 2 348 ✅ 0 💤 0 ❌
3 959 runs  3 959 ✅ 0 💤 0 ❌

Results for commit 099748e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 29, 2025

File Coverage
All files 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-range-extender/src/init.lua 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-range-extender/src/frient/init.lua 94%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 099748e

end

local function do_refresh(driver, device)
device:send(Basic.attributes.ZCLVersion:read(device))
Copy link
Contributor

Choose a reason for hiding this comment

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

this isn't being handled, so why does it need to be refreshed?

@greens greens changed the title Add support WWSTCERT-8138: Add support for frient Zigbee Range Extender Sep 29, 2025
Comment on lines +46 to +47
device:send(PowerConfiguration.attributes.BatteryVoltage:read(device))
device:send(IASZone.attributes.ZoneStatus:read(device))
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the base driver's device:refresh should be enough here. I don't think you need to define a custom handler. A unit test would confirm.

Copy link
Contributor Author

@marcintyminski marcintyminski Oct 14, 2025

Choose a reason for hiding this comment

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

I tried to delete a custom refresh handler, but then it is only ZCLVersion attribute from Basic cluster that is being refreshed. Unit tests for refreshing fail when there is any attribute other than ZCLVersion.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see. This is because for this driver, the IAS Zone attribute has not been configured. So the driver would also not be set up to receive reports from this attribute as-is, either.

In the base driver, you'll need to add this line in roughly the same place.

Copy link
Contributor

Choose a reason for hiding this comment

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

After that is in place, your test results will be different.

@greens greens merged commit 784b0d6 into SmartThingsCommunity:main Oct 17, 2025
12 checks passed
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