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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60788e45fa7fea00c235ffb892401238cb4ec5e008373595a44f622e96bed80 |
|
MD5 | 1c75b1cd55a765f7b54be9a00b21729e |
|
BLAKE2b-256 | af02d60bea4ef21670299bade1d7466f44624f887723b37d52ef4ab7be9db2c1 |