Skip to content

SeraphicCorp/py-switchbot-api

Repository files navigation

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})

Development

Install

make install

Lint

make format

Test

make test

build wheel

make build

Clean

make clean

About

An asynchronous library to use Switchbot API

Resources

License

Stars

6 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors