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

Feature Request: Bots with Password Support #26

Open
dersimn opened this issue Apr 25, 2021 · 3 comments
Open

Feature Request: Bots with Password Support #26

dersimn opened this issue Apr 25, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed pinned

Comments

@dersimn
Copy link

dersimn commented Apr 25, 2021

Do you have any plans to support SwitchBots with password? Otherwise I'll try to implement it myself, my current notes to this topic are:

  • It seems that using a password is quite simple, see this, by sending command 0x5711 + password + on/off instead of 0x5701 + on/off at this point in your code
  • The + password thing is also not a real challenge to implement, see here
    In Python the password string is generated by
data = password.encode()
crc = zlib.crc32(data)
self.password = crc.to_bytes(4, 'big')

using String.encode(), zlib.crc32(), Int.to_bytes()

@dersimn dersimn added the enhancement New feature or request label Apr 25, 2021
@dersimn

This comment was marked as off-topic.

@Xtrendence
Copy link

This would be very useful. I'll give it a go at some point.

@donavanbecker
Copy link
Collaborator

that would be awesome! Thanks @Xtrendence. I will push the PR into a beta as soon as I get it.

@OpenWonderLabs OpenWonderLabs deleted a comment from github-actions bot Oct 27, 2022
@donavanbecker donavanbecker reopened this Oct 27, 2022
@donavanbecker donavanbecker changed the title Support Password for SwitchBot Support Password for Bot Oct 27, 2022
@donavanbecker donavanbecker changed the title Support Password for Bot Feature Request: Bots with Password Support Oct 27, 2022
@donavanbecker donavanbecker added the help wanted Extra attention is needed label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed pinned
Projects
None yet
Development

No branches or pull requests

3 participants