Skip to main content

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

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-2.13.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

switchbot_api-2.13.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file switchbot_api-2.13.0.tar.gz.

File metadata

  • Download URL: switchbot_api-2.13.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for switchbot_api-2.13.0.tar.gz
Algorithm Hash digest
SHA256 cf65934cc4cf8bd7cb3088b4d6172e269f415f9ce3764b03b0ebe6fa894c1030
MD5 bf3a5ad2f94d823b6539d55037a048da
BLAKE2b-256 61fb87d015326b063e52199d943ef9ee38a0e310aed957f6275f9f411c386847

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.13.0.tar.gz:

Publisher: release.yml on SeraphicCorp/py-switchbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file switchbot_api-2.13.0-py3-none-any.whl.

File metadata

  • Download URL: switchbot_api-2.13.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for switchbot_api-2.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7db8ab2ce0ba3a2bf3e444745643910a045514e681a12b7907fb1f77096d0b66
MD5 6bac72e0e5f7fbc9e22ef1f9c9ea0a0b
BLAKE2b-256 39c23ce251b41dabf1dfc1c04bc5a844667748b7d53cf68eebc2d32a2a3c65f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.13.0-py3-none-any.whl:

Publisher: release.yml on SeraphicCorp/py-switchbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.13.0 This release

2 files

2.12.0

2 files

2.11.1

2 files

2.11.0

2 files

2.10.0

2 files

2.9.0

2 files

2.8.0

2 files

2.7.0

2 files

2.6.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.1

2 files

2.3.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page