switchbot-get-encryption-key
v1.0.0
Published
CLI for getting SwitchBot BLE API encryption key from SwitchBot Cloud
Downloads
12
Maintainers
Readme
SwitchBot Get Encryption Key
This is port of only part of get_cncryption_key
script from pySwitchbot, just rewrite code on NodeJS.
How to install:
$ npm install switchbot-get-encryption-key
Usage:
$ npx switchbot-get-encryption-key MAC USERNAME
Key ID: xx
Encryption key: xxxxxxxxxxxxxxxx
MAC need to be without colon and upper case (e.g. ABCDE1234567).
Data obtained by this script would be used by WoSmartLock.setKey()
function in node-switchbot library, or custom implementation of BLE central which directly communicates to SwitchBot Lock / Lock Pro by encrypted BLE commands.