Skip to content

Conversation

@pInksenberg
Copy link
Contributor

@pInksenberg pInksenberg commented Oct 11, 2024

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 fixx
  • 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

The previous matter-window-covering edge driver use CurrentPositionLiftPercent100ths and OperationalStatus to decide window covering status (opening/open/closing/closed/partially open). However, sometimes operational status event comes first and sometimes position event comes first, makes the code logic complex.
To simplify the code, TargetPositionLiftPercent100ths and CurrentPositionLiftPercent100ths are now used to decide the status of window covering without considering which attribute event comes first.

Summary of Completed Tests

@github-actions
Copy link

github-actions bot commented Oct 11, 2024

Channel deleted.

@github-actions
Copy link

github-actions bot commented Oct 11, 2024

Test Results

   63 files    396 suites   0s ⏱️
1 937 tests 1 914 ✅ 0 💤 23 ❌
3 361 runs  3 338 ✅ 0 💤 23 ❌

For more details on these failures, see this check.

Results for commit 447740d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 11, 2024

File Coverage
All files 51%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/init.lua 51%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 447740d

device:emit_event_for_endpoint(ib.endpoint_id, capabilities.windowShade.windowShade.unknown())
end
end
if device:get_field(First_Time_Onboarding) == true then

Choose a reason for hiding this comment

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

this will probably emit event twice, will else if here better?

@pInksenberg pInksenberg force-pushed the fix-an-issue-of-window-covering-status-inconsistency branch from c84e68b to 447740d Compare October 14, 2024 07:06
@lelandblue
Copy link
Contributor

Hello @pInksenberg - I am assuming due to inactivity that this PR can be closed. Could you please confirm?

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