Interface to Tuya devices over LAN.
Project description
local-tuya
Interface to Tuya devices over LAN.
Features:
- asynchronous methods and transport
- persistent communication to the device
- automatic remote device state updates (remotes can still be used)
- configuratble of buffering for subsequent updates
- constraints between device commands
- Domoticz plugin using a dedicated thread
💡 For now, only v3.3 is supported as I only own devices using this version.
⚠️ This library does not provide support for getting the local key of the device. See how to do that using any of those projects:
Generous thanks to the maintainers of those tools for details on interfacing with Tuya devices.
Architecture
This library is composed of two main components:
- the Tuya protocol
- the device
Protocol
The protocol is responsible of handling communication details with the Tuya device. Its interface consists of an asynchronous method to update the device and accepts a callback to subscribe to state changes.
See protocol module.
Device
The device handles higher level functional logic such as buffering, constraints and specific device commands.
See device module.
Domoticz plugin tools
See Domoticz module.
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
Built Distribution
Hashes for local_tuya-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee36e6b757ef561a926988bd63b373abb31c865c38771e9fde3c3380b2199a3 |
|
MD5 | 64d7341c05840a2a8da437108ee5fb7e |
|
BLAKE2b-256 | 4554d9399ed165cdba798490cacef305a6626cf746385a150f9d8d3be6da65c6 |