Skip to content

Conversation

thinkaName
Copy link
Contributor

@thinkaName thinkaName commented Oct 9, 2025

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

github-actions bot commented Oct 9, 2025

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Oct 9, 2025

Channel deleted.

Copy link

github-actions bot commented Oct 9, 2025

Test Results

   71 files    456 suites   0s ⏱️
2 366 tests 2 366 ✅ 0 💤 0 ❌
3 994 runs  3 994 ✅ 0 💤 0 ❌

Results for commit 8c40cc2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 9, 2025

File Coverage
All files 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/aqara_utils.lua 75%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/init.lua 79%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/hanssem/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/VIVIDSTORM/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/roller-shade/init.lua 79%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/curtain-driver-e1/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/window_shade_utils.lua 75%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/somfy/init.lua 89%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/axis/axis_version/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/yoolax/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/invert-lift-percentage/init.lua 89%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/vimar/init.lua 46%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 8c40cc2


local timer = device:get_field(TIMER)
if timer ~= nil then driver:cancel_timer(timer) end
timer = device.thread:call_with_delay(5, function(d)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the 5 sec timer set properly? Does this 5 sec interval work well for curtain tracks of different lengths?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current experimental data is only applicable to this product. For other products, adjustments will be made based on the test results in the future.

@greens greens changed the title add screen VIVIDSTORM VWSDSTUST120H WWSTCERT-8279 add screen VIVIDSTORM VWSDSTUST120H Oct 14, 2025
Comment on lines 99 to 143
if command.args.mode == "Delete upper limit" then
device:send(
cluster_base.write_manufacturer_specific_attribute(
device,
custom_clusters.motor.id,
custom_clusters.motor.attributes.mode_value.id,
custom_clusters.motor.mfg_specific_code,
custom_clusters.motor.attributes.mode_value.value_type,
0
)
)
elseif command.args.mode == "Set the upper limit" then
device:send(
cluster_base.write_manufacturer_specific_attribute(
device,
custom_clusters.motor.id,
custom_clusters.motor.attributes.mode_value.id,
custom_clusters.motor.mfg_specific_code,
custom_clusters.motor.attributes.mode_value.value_type,
1
)
)
elseif command.args.mode == "Delete lower limit" then
device:send(
cluster_base.write_manufacturer_specific_attribute(
device,
custom_clusters.motor.id,
custom_clusters.motor.attributes.mode_value.id,
custom_clusters.motor.mfg_specific_code,
custom_clusters.motor.attributes.mode_value.value_type,
2
)
)
elseif command.args.mode == "Set the lower limit" then
device:send(
cluster_base.write_manufacturer_specific_attribute(
device,
custom_clusters.motor.id,
custom_clusters.motor.attributes.mode_value.id,
custom_clusters.motor.mfg_specific_code,
custom_clusters.motor.attributes.mode_value.value_type,
3
)
)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

local value_map = {
  "Delete upper limit" = 0,
  ...
}

local value = value_map[command.args.mode]
if value ~= nil then device:send(cluster_base.write_manufacturer_specific_attribute(..., value) end

Comment on lines 175 to 182
[WindowCovering.ID] = {
[WindowCovering.attributes.CurrentPositionLiftPercentage.ID] = liftPercentage_attr_handler
},
[custom_clusters.motor.id] = {
[custom_clusters.motor.attributes.mode_value.id] = mode_attr_handler,
[custom_clusters.motor.attributes.hardwareFault.id] = hardwareFault_attr_handler
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we use 2-space tabs

@greens
Copy link
Contributor

greens commented Oct 14, 2025

Checking drivers/SmartThings/zigbee-window-treatment/src/test/test_zigbee_window_treatment_VWSDSTUST120H.lua 1 warning

    drivers/SmartThings/zigbee-window-treatment/src/test/test_zigbee_window_treatment_VWSDSTUST120H.lua:54:1: (W611) line contains only whitespace

version: 1
- id: firmwareUpdate
version: 1
- id: refresh
Copy link
Contributor

Choose a reason for hiding this comment

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

missing the version field here, which is why your test failed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This issue has been resolved

@greens greens merged commit 31d4afb into SmartThingsCommunity:main Oct 16, 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.

3 participants