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()
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:
0x5711 + password + on/offinstead of0x5701 + on/offat this point in your code+ passwordthing is also not a real challenge to implement, see hereIn Python the password string is generated by
using
String.encode(),zlib.crc32(),Int.to_bytes()