Skip to content
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

Fix for wrong command being sent or no command sent in certain circumstances #669

Merged
merged 2 commits into from Mar 5, 2024

Conversation

seidnerj
Copy link

This commit fixes two separate (but related) issues:

  1. If resend is set to true and target position is equal to current position, the previous implementation resulted in sending the close command.

That doesn't make sense - for example, if the window covering is already completely open, the previous implementation made it close instead of keeping it open.

  1. If close->open commands are issued in rapid succession, the open command will not get sent because the target position is still equal to current position. This is not really true in reality since the window covering has already started moving by then. The previous implementation resulted in the window covering continuing to close, rather then start opening.

kiwi-cam and others added 2 commits August 27, 2023 10:51
* Fixed errors in new fan.js (arp and setSwtichState)

---------
Co-authored-by: Dave Nicolson <david.nicolson@gmail.com>
…stances

This commit fixes two separate (but related) issues:

1. If resend is set to true and target position is equal to current position, the previous implementation resulted in sending the close command.

That doesn't make sense - for example, if the window covering is already completely open, the previous implementation made it close instead of keeping it open.

2. If close->open commands are issued in rapid succession, the open command will not get sent because the target position is still equal to current position. This is not really true in reality since the window covering has already started moving by then. The previous implementation resulted in the window covering continuing to close, rather then start opening.
@seidnerj
Copy link
Author

@kiwi-cam might taking a look? Thanks

@seidnerj
Copy link
Author

?

@seidnerj
Copy link
Author

@kiwi-cam, could this please be merged? thanks

@seidnerj
Copy link
Author

seidnerj commented Mar 3, 2024

Anyone there?

@kiwi-cam kiwi-cam changed the base branch from master to beta March 5, 2024 07:48
@kiwi-cam kiwi-cam merged commit 4c01e2e into kiwi-cam:beta Mar 5, 2024
@seidnerj
Copy link
Author

seidnerj commented Mar 5, 2024

Thanks a lot!

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.

None yet

2 participants