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

Uploaded Source

Built Distribution

TopgreenerApi-0.8.7-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