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

SwitchBot Blind Tilt #16

Open
donavanbecker opened this issue Jan 7, 2023 · 13 comments
Open

SwitchBot Blind Tilt #16

donavanbecker opened this issue Jan 7, 2023 · 13 comments
Assignees
Labels
enhancement New feature or request pinned

Comments

@donavanbecker
Copy link
Collaborator

Current Situation

Add support for SwitchBot Blind Tilt

Proposed Change

Add support for SwitchBot Blind Tilt

Additional Context

No response

@donavanbecker donavanbecker self-assigned this Jan 7, 2023
@donavanbecker donavanbecker transferred this issue from OpenWonderLabs/.github Jan 7, 2023
@bdraco
Copy link

bdraco commented Jan 12, 2023

There is a PR in progress sblibs/pySwitchbot#181 that might be helpful to provide some insight

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@AdyRock
Copy link

AdyRock commented Feb 24, 2023

Is there a reason why the position information is now only available by BLE request instead of being sent in the Service Data section of the Advertisement, like it is for the curtains?
Having it advertised in the service data is a perfect system as it means no lengthy BLE requests need to be made and an near instant response is just there.
I can't really see it is a power saving feature as the advertainments are being sent anyway with the battery data.

Would it be possible to make it the same a the Curtain device as that works so well?

@ndbeals
Copy link

ndbeals commented Apr 20, 2023

Could we get some documentation on packet of the basic information response? pySwitchbot is currently reporting incorrect tilt data from a get_basic_info() (0x5702) request. Interesting to note, listening to advertisements and parsing the advertisement data from the blind tilt does give the correct tilt value.

@AdyRock
Copy link

AdyRock commented Apr 21, 2023

So, are you saying that you are seeing the blind tilt position in the advertisement data?
If so where are you finding that?

@AdyRock
Copy link

AdyRock commented Apr 21, 2023

OK, so update my Blind Tilt to version 2 firmware and I now see the position data in the Manufacturer data. So, no longer need a time consuming BLE command to get the position. Thanks to the SwitchBot team for doing that.

Could the format of the Manufacturer data be published to make it easier to decode all the information?

@donavanbecker donavanbecker added the enhancement New feature or request label Apr 23, 2023
@ndbeals
Copy link

ndbeals commented Apr 24, 2023

@AdyRock here's code documentation from pySwitchbot of the advertisement data: https://github.com/Danielhiversen/pySwitchbot/blob/34125596d12a94a052cbcb6701778c48a20f8a83/switchbot/adv_parsers/blind_tilt.py#L5

@donavanbecker
Copy link
Collaborator Author

If someone builds the doc, I will accept it as a PR on here.

@ndbeals
Copy link

ndbeals commented Apr 25, 2023

Is that a joke?

How is anyone going to build the doc without the needed documentation about the Bluetooth commands and data structures that only SwitchBot, your employer, has?

@donavanbecker
Copy link
Collaborator Author

@ndbeals I don't work for SwitchBot. I just maintain these repos for them.

@ndbeals
Copy link

ndbeals commented Apr 25, 2023

I see, that's nice of you, thanks for the community contributions. Am I understanding correctly that this organization, OpenWonderLabs, is not affiliated with switchbot?

The 2.0 firmware possibly has a bug (#23) and there not being any official info, I'm not sure how feasible it is for anyone to make documentation.

FWIW I don't even know how the guy over at pySwitchBot even came up with the code he does have. Was he just attempting trial and error to figure out the binary format of the Bluetooth messages? Or maybe he has access to switchbot documentation.

@AdyRock
Copy link

AdyRock commented Apr 25, 2023

Possibly trial and error as that is how I decoded the position information. Basically just moved the blinds to different known positions and watched the data to spot the patterns.

@donavanbecker
Copy link
Collaborator Author

@ndbeals This is the official SwitchBot organization, but they only monitor when the have updates from what I have experienced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

4 participants