semvec/pypi-packages huggingface dataset:
easy-switchbot 0.0.4
This library provides easy-use to switchbot API.

# Switchbot library for python
I am Japanese student. I may use wrong English.

## Description
This library provides easy use to [SwitchBotAPI](https://github.com/OpenWonderLabs/SwitchBotAPI).

## usage
```python
from pprint import pprint
from switchbot_api.api import SwitchbotAPI
from switchbot_api.devices import *
import time

sAPI = SwitchbotAPI(
    token="",
    secret=""
)

devices = sAPI.devices
smart_plug: PlugMiniJP = devices[0]

print("target:", smart_plug)
pprint(sAPI.status(smart_plug))


print("turn on")
sAPI.run(smart_plug.command_turn_on())

time.sleep(3)

print("turn off")
sAPI.run(smart_plug.command_turn_off())

```

## Limitation
This library can onlyget status and operate your devices.
Not compatible with Scenes and Webhook.

## Device
I have only `Plug Mini (JP)`. I cannot debug other devices.