Skip to content

Commit dda2732

Browse files
committed
Add Cloud class example
1 parent b538f78 commit dda2732

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Python module to interface with Tuya WiFi smart devices
88

99
## Description
1010

11-
This python module controls and monitors [Tuya](https://en.tuya.com/) compatible WiFi Smart Devices (Plugs, Switches, Lights, Window Covers, etc.) using the local area network (LAN) or the cloud (TuyaCloud). This is a compatible replacement for the `pytuya` PyPi module.
11+
This python module controls and monitors [Tuya](https://en.tuya.com/) compatible WiFi Smart Devices (Plugs, Switches, Lights, Window Covers, etc.) using the local area network (LAN) or the cloud (TuyaCloud API). This is a compatible replacement for the `pytuya` PyPi module.
1212

1313
[Tuya](https://en.tuya.com/) devices are designed to communicate with the TuyaCloud but most also expose a local area network API, allowing us to directly control the devices without using the cloud. This python module provides a socket based way to poll status and issue commands to these devices. Starting with v1.3.0, TinyTuya can also connect to the Tuya Cloud to poll status and issue commands to Tuya devices.
1414

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* Add socket.shutdown(socket.SHUT_RDWR)
77
* Add function to send multiple DPS index updates with one call
88

9-
## v1.3.0 - Tuya Cloud Support
9+
## v1.3.0 - TuyaCloud API Support
1010

1111
* Code format cleanup and readability improvements (pull request #91)
12-
* Upgrade - Add Tuya Cloud support and functions (#87 #95)
12+
* Upgrade - Add TuyaCloud API support and functions (#87 #95)
1313

1414
```python
1515
import tinytuya

examples/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ turn_off('Dining Room')
4040
time.sleep(2)
4141
turn_on('Dining Room')
4242
```
43+
44+
## Tuya Cloud API Examples
45+
46+
[cloud.py](cloud.py) - Example that uses the Tinytuya `Cloud` class and functions to access the Tuya Cloud API to pull device information and control the device via the cloud.

0 commit comments

Comments
 (0)