gosundpy
Control your Gosund smart devices via python code.
Install
pip install gosundpy
Prerequisites
In order to control your devices, you must register your devices using the Tuya Smart app (ios/android) and create a new Cloud Project in the Tuya IoT Platform.
Usage
import time
from gosundpy import Gosund
gosund = Gosund('username', 'password', 'access_id', 'access_key')
commands = ['turn_off', 'turn_on', 'turn_off', 'switch', 'switch', 'turn_off']
switch = gosund.get_device('12345')
for cmd in commands:
getattr(switch, cmd)()
time.sleep(1)
lightbulb = gosund.get_device('67890')
for cmd in commands:
getattr(lightbulb, cmd)()
time.sleep(1)
Metadata
Release files for gosundpy 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gosundpy-0.9.0.tar.gz | 5.4 kB | Details |
Release files / gosundpy-0.9.0.tar.gz
| Download URL | gosundpy-0.9.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2da19fb56ebb8ec0e170aeae3b5f2a3664c878fc37baecc7c14f628661755c38
|
|
BLAKE2b-256 checksum How to use checksums |
7a525833d3fcbe8fb40994b7063a09753c5b95987231312cad98e2f8fc2258a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|