-
Notifications
You must be signed in to change notification settings - Fork 513
WWSTCERT-8279 add screen VIVIDSTORM VWSDSTUST120H #2456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Channel deleted. |
Test Results 71 files 456 suites 0s ⏱️ Results for commit 8c40cc2. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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
[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 | ||
} | ||
} |
There was a problem hiding this comment.
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
drivers/SmartThings/zigbee-window-treatment/profiles/projector-screen-VWSDSTUST120H.yml
Show resolved
Hide resolved
|
23d156c
to
66eff70
Compare
version: 1 | ||
- id: firmwareUpdate | ||
version: 1 | ||
- id: refresh |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
66eff70
to
8c40cc2
Compare
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests