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.0.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b13eb974e1749b9f2ae775044ad4ca797700157c89798edca238e286ab6bf1df |
|
MD5 | 9b49f8edcb1ea8a313f3c95838157a93 |
|
BLAKE2b-256 | 2d71ca9e8b262565b3728a4b6c4290e5a7884c87a95598984714881fe0a639e7 |