Skip to main content

gosundpy

PyPI version PyPI - Downloads

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)

Source distribution for gosundpy 0.9.0
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

Release history Release notifications | RSS feed

This release

0.9.0 This release

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page