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 cover_position_tilt's returned position. #1472

Merged
merged 1 commit into from
Aug 14, 2020
Merged

Fix cover_position_tilt's returned position. #1472

merged 1 commit into from
Aug 14, 2020

Conversation

middelink
Copy link
Contributor

When running with invert_cover unset or false, the zigbee position sent to device as 100-position. Working as intended. However it also reports back the same inverted value as the new state. This is wrong. When HA sets the position to 35, it gets back 65.
Even worse, if it want to open the cover by sending it 100 (=HA-open), it gets back a 0 (=HA-closed) which then disabled the down arrow, making it annoying to figure out what just happened.

Of course, when invert_cover=true, no translation happens and setting it to 35, returns 35.

When running with invert_cover unset or false, the zigbee position sent to device as 100-position. Working as intended. However it also reports back the same inverted value as the new state. This is wrong. When HA sets the position to 35, it gets back 65.
Even worse, if it want to open the cover by sending it 100 (=HA-open), it gets back a 0 (=HA-closed) which then disabled the down arrow, making it annoying to figure out what just happened.

Of course, when invert_cover=true, no translation happens and setting it to 35, returns 35.
@Koenkk
Copy link
Owner

Koenkk commented Aug 14, 2020

Nasty bug, thanks for the fix!

@Koenkk Koenkk merged commit a20d37a into Koenkk:master Aug 14, 2020
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