Skip to main content

Python interface to Tuya WiFi smart devices.

Project description

Tuya

Rewritten tuya client based on pytuya. Used by https://github.com/TradeFace/tuyamqtt

Public Interfaces

Request device status

status(device: dict)
Returns json string

Change device state

set_state(device: dict, value: bool,idx: int = 1)
Returns json string

Change device status

set_status(device: dict, dps: dict)
Returns json string

Todo

Changelog

v1.1.0 Breaking

  • function set_status was added
  • functionname set_status was changed to set_state

v1.0.5

  • setup fixed
  • split _generate_payload function to a readable format
  • add support for older devices back in (untested, please report back)
  • solved recursion problem in send_request
  • moved functions back to init
  • removed TuyaConnection class, use send_request in try/except
  • declassified aescipher
  • moved to a more functional programming style
  • yield and list comprehensions
  • setup.py
  • removed code for older devices < 3.3

Acknowledgements

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

tuyaface-1.1.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

tuyaface-1.1.0-py3-none-any.whl (6.8 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