Skip to content

Conversation

wkhenon
Copy link
Contributor

@wkhenon wkhenon commented Sep 30, 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 pull request defaults handing for on, off, set_level, and set_color_temperature in the ZLL sub-driver back to the main zigbee-switch driver.

Summary of Completed Tests

Copy link

Copy link

github-actions bot commented Sep 30, 2025

Test Results

   71 files  ±0    455 suites  ±0   0s ⏱️ ±0s
2 355 tests ±0  2 355 ✅ ±0  0 💤 ±0  0 ❌ ±0 
3 978 runs  ±0  3 978 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6e40aa4. ± Comparison against base commit eb5199c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 30, 2025

File Coverage
All files 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/preferences.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/laisiao/init.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/ge-link-bulb/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/frient/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara/version/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/jasco/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/tuya-multi/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/wallhero/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/aqara-light/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-switch/src/inovelli-vzm31-sn/init.lua 95%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 6e40aa4

@wkhenon wkhenon force-pushed the defaults-for-zll-subdrivers branch from f541dd9 to 5a0c5ab Compare October 1, 2025 20:23
@wkhenon wkhenon self-assigned this Oct 6, 2025
@wkhenon wkhenon force-pushed the defaults-for-zll-subdrivers branch from cce4958 to 7fc35dc Compare October 6, 2025 19:03
@wkhenon wkhenon force-pushed the defaults-for-zll-subdrivers branch 2 times, most recently from d037473 to 32d969f Compare October 6, 2025 19:22
@wkhenon wkhenon force-pushed the defaults-for-zll-subdrivers branch from 32d969f to 6e40aa4 Compare October 6, 2025 19:43

test.socket.zigbee:__expect_send({ mock_device.id, OnOff.attributes.OnOff:read(mock_device) })
test.socket.zigbee:__expect_send({ mock_device.id, Level.attributes.CurrentLevel:read(mock_device) })
if version.api <= 15 then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was having issues running the setColorTemperature tests locally with this operator set to <= (no issues with <). Would this be pointing to a problem with how I'm using the version? Or is there some Lua magic that I'm missing?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well the way you've written things, wouldn't the initial on/offs also not be sent when the native handlers are used?

@cjswedes probably has more insight here.

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