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 inverted state on Tuya motorized blinds #8481

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

TzeWey
Copy link
Contributor

@TzeWey TzeWey commented Dec 15, 2024

When "Invert cover" is enabled, the state published when the covers reach the ends are reversed. This is because the inverted position is used to determine the state and is then inverted once more.

To resolve this, the state is determined using the final position only. The state will be published as CLOSE when the position is 0, otherwise OPEN is published.

Verified with the A-OK AM25 that is recognized as B09M3R35GC _TZE200_9p5xmj5r Unable to verify with a motor that is non-inverted.

When "Invert cover" is enabled, the state published when the covers reach the
ends are reversed. This is because the inverted position is used to determine
the `state` and is then inverted once more.

To resolve this, the `state` is determined using the final position only.
The `state` will be published as CLOSE when the position is 0, otherwise OPEN
is published.

Verified with the A-OK AM25 that is recognized as B09M3R35GC _TZE200_9p5xmj5r
Unable to verify with a motor that is non-inverted.
@Koenkk Koenkk merged commit 6ed8eb3 into Koenkk:master Dec 15, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Dec 15, 2024

Thanks!

@TzeWey TzeWey deleted the fix-tuya-cover-position branch December 16, 2024 01:48
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