Metadata-Version: 2.1
Name: TopgreenerApi
Version: 0.8.6
Summary: Library for using Topgreener devices from Python
Home-page: UNKNOWN
Author: Raphael Budd
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# 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:
```sh
pip install topgreenerapi
```
Once installed, you can create a new instance of TopgreenerCloud as follows:
```python
 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


