Skip to content

Feature Request: Bots with Password Support #26

@dersimn

Description

@dersimn

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()

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions