Skip to main content

Python Switchbot utilities

Project description

Switchbotpy

Python Switchbot Utilities using Switchbot API.

Getting start

Install from PyPI

pip install switchbotpy

Get token and secret,

  1. Download the SwitchBot app on App Store or Google Play Store
  2. Register a SwitchBot account and log in into your account
  3. Generate an Open Token within the app a) Go to Profile > Preference b) Tap App Version 10 times. Developer Options will show up c) Tap Developer Options d) Copy token and secret

create settings.json file, and fill token and secret.

{
    "token": "",
    "secret": ""
}

Run example script.

python3 example/get_devicelist.py

Scripts makes deviceList.txt.You can manipulate device using diviceId.

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_utility-0.0.1.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

switchbot_utility-0.0.1-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page