Package Exports
- switchbot-get-encryption-key
- switchbot-get-encryption-key/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (switchbot-get-encryption-key) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.