Skip to content

Conversation

@biotinker
Copy link

Hopefully this doesn't break all the non-type-8 blinds; I don't have any so I cannot check :/

@biotinker biotinker linked an issue Aug 19, 2025 that may be closed by this pull request
2 tasks
@biotinker biotinker mentioned this pull request Aug 19, 2025
2 tasks
@github-actions
Copy link

github-actions bot commented Oct 4, 2025

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Oct 4, 2025
Copy link
Owner

@patman15 patman15 left a comment

Choose a reason for hiding this comment

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

Will run a test with my shades next week to see if something breaks.

pos = int.from_bytes(data[3:5], byteorder="little")
pos2 = (int(data[5]) << 4) + (int(data[4]) >> 4)
# Get the last 4 bits of data[4] and shift them 6 places to the left
last_4_bits = (data[4] & 0b1111) << 6
Copy link
Owner

Choose a reason for hiding this comment

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

to me it looks like this decoding is changed and not necessarily in a compatible way. Could be that my shade and yours use different format. Need to investigate more.

async def set_position(self, value: int, disconnect: bool = True) -> None:
async def set_position(
self,
pos1: int,
Copy link
Owner

Choose a reason for hiding this comment

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

I think the parameters pos1-pos3, tilt, velocity should go into a dataclass.

):
return
self._target_position = round(target_position)
self._target_position = round(target_position)
Copy link
Owner

Choose a reason for hiding this comment

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

trailing spaces

@TheTravelAddict
Copy link

Any progress? Or can I run both integrations side by side - control my type 8 with this branch and the rest with main ?

@patman15
Copy link
Owner

patman15 commented Jan 1, 2026

I did some code clean-up of the main branch over the holidays, but I haven't seen feedback from the author of this PR. I need to get the changes sorted out and merged individually, because I still suspect that it modifies the non-type-8 shades.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for type 8 (TDBU) blinds

3 participants