Skip to main content

Library for using Topgreener devices from Python

Project description

TopgreenerApi

Control Topgreener devices from the cloud

TopgreenerApi allows control of devices added to the Topgreener mobile app from Python. The library implements the "new" Tuya cloud mobile API. Currently, support is limited to dimmer switches, though other devices can be added relatively easily by adding new service calls to the "Device" module.

Features

  • Login to Tuya's cloud API using Topgreener's account
  • Get all configured locations
  • Get all configured devices
  • Set device power state
  • Set device brightness level

Installation

TopgreenerApi can be installed using pip as follows:

pip install topgreenerapi

Once installed, you can create a new instance of TopgreenerCloud as follows:

 api = TopgreenerCloud(client_id, app_secret, super_secret, app_certhash)

To find the correct values for these secret keys, take a look at this repository:
[https://github.com/nalajcie/tuya-sign-hacking][PlDb]

License

MIT

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

TopgreenerApi-0.8.7.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

TopgreenerApi-0.8.7-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file TopgreenerApi-0.8.7.tar.gz.

File metadata

  • Download URL: TopgreenerApi-0.8.7.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for TopgreenerApi-0.8.7.tar.gz
Algorithm Hash digest
SHA256 cce22e7ad6656c7522430d0f7d95b05fc35c6c7ed00c57c77c588906373e5c55
MD5 60c19348824442246bb721391c0efdc5
BLAKE2b-256 36596a65eea8efd5486d7f1595b2f09c9a2cda90b74582e3f66227294ce6d506

See more details on using hashes here.

File details

Details for the file TopgreenerApi-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: TopgreenerApi-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for TopgreenerApi-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f1b0fdff93b54751908351cbf8ce52c68f4c4c368957024a188e540dbf066f7b
MD5 c79abf6916de689ef885ea0b5d67aca9
BLAKE2b-256 6986b0834404b5963d29f3625e7abd8098d277219fe4b0fd110a26227fee39fb

See more details on using hashes here.

Supported by

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