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
- This module is a rewrite of https://github.com/clach04/python-tuya
- https://github.com/codetheweb/tuyapi as reference on commands
- https://github.com/SDNick484 for testing protocol 3.1 reimplementation
- https://github.com/jkerdreux-imt several improvements
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tuyaface-1.1.0.tar.gz.
File metadata
- Download URL: tuyaface-1.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2c7ca33cdcef55c5c8efd1c8f407748a6b94896ab7af15a231db28406a380e5
|
|
| MD5 |
a08a0bf2f3c05ebedf96bae3789b62f5
|
|
| BLAKE2b-256 |
bff85076738216dfe7b9f73bbfb4dfbc4371e87f1bd44d3e0d975e1b6f94dabc
|
File details
Details for the file tuyaface-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tuyaface-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc697b81389c3c768a23d183e09a927499f9e2acd1d15763e1d8cc11a31bd47e
|
|
| MD5 |
ef27fa7b7acd16bcc76cba19f74e1e29
|
|
| BLAKE2b-256 |
e8db615bf4b8191cf8b3af83e7a7ac46d05903a65c949fa1e39a56d8ca5c8f69
|