An asynchronous library to use Switchbot API
Project description
py-switchbot-api
An asynchronous library to use Switchbot API. Allows to use both devices and remotes.
Usage
token = "xxx"
secret = "yyy"
client = SwitchBotAPI(token, secret)
print(await client.list_devices())
print(await client.get_status('some-id'))
await client.send_command('some-id', {COMMAND})
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
switchbot_api-1.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b60d6f15f6f773c33786eb81f06a740b9f3e1010b344c6e3ac1b61fcc2c2b7 |
|
MD5 | 2662080073db44ff9318cece0471d538 |
|
BLAKE2b-256 | c1341076f69b4eb68960ed175cf3f1f6c65c55032a4a43bf12185c2480aa506b |