Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/tuyanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-07-05 21:11:54 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-07-05 21:11:54 +0300
commit29aa515fc499096fe3d69a45662b3db1aba592e5 (patch)
treee2ececf208447393db62bfff9caf235017c283fb
parente16bb82e9dbeaf2127dd20f574e37d306499d309 (diff)
parentac4d4769a714cb3cb81f60fb7bebeeb4ac35d554 (diff)
Merge branch 'main' of github.com:ClusterM/tuyanet
-rw-r--r--README.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/README.md b/README.md
index b924f60..5ef2060 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
## Description
-This library controls and monitors [Tuya](https://en.tuya.com/) compatible WiFi Smart Devices (Plugs, Switches, Lights, Window Covers, etc.) using the local area network (LAN). [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 library controls and monitors [Tuya](https://en.tuya.com/) compatible WiFi Smart Devices (Plugs, Switches, Lights, Window Covers, etc.) using the local area network (LAN). [Tuya](https://en.tuya.com/) devices are designed to communicate with the Tuya Cloud but most also expose a local area network API, allowing us to directly control the devices without using the cloud.
## Installation
@@ -15,14 +15,14 @@ PM> Install-Package TuyaNet
### Dependencies
-* .NETStandard 2.0
+* .NET Standard 2.0
* Newtonsoft.Json (>= 13.0.1)
## How communication with Tuya devices works at all
Every Tuya device broadcasts to local network UDP packets with short info about itself. This data is encrypted with AES but the encryption key is the same for every device and it can be easily decrypted. This packet is sent every 5 seconds and contains data with a unique **device ID**, device type ID and protocol version.
-Also, every device can accept TCP connection and proceed requests. Every request contains command code and JSON string. JSON string is encrypted with AES using **local key**. This key is assigned by the Tuya cloud server and is unique for each device. So you need to create a Tuya developer account and request this key from the server.
+Also, every device can accept TCP connection and proceed requests. Every request contains command code and JSON string. JSON string is encrypted with AES using **local key**. This key is assigned by the Tuya Cloud server and is unique for each device. So you need to create a Tuya developer account and request this key from the server.
Most requests must contain base JSON values:
```JSON
@@ -70,14 +70,14 @@ Don't worry, this library will help you to create requests automatically.
## How to obtain local key
-* Download Smart Life mobile app: [for Android](https://play.google.com/store/apps/details?id=com.tuya.smartlife) or [for iOS](https://apps.apple.com/us/app/smart-life-smart-living/id1115101477)).
+* Download Smart Life mobile app: [for Android](https://play.google.com/store/apps/details?id=com.tuya.smartlife) or [for iOS](https://apps.apple.com/us/app/smart-life-smart-living/id1115101477).
* Register your device using this app.
* Open [iot.tuya.com](https://iot.tuya.com/), create developer account and log in.
* Click on `Cloud`
![image](https://user-images.githubusercontent.com/4236181/139099858-ad859219-ae39-411d-8b6f-7edd39684c90.png)
-* Click on `the Create Clout Project` button
+* Click on the `Create Cloud Project` button
![image](https://user-images.githubusercontent.com/4236181/139100737-7d8f5784-9e2f-492e-a867-b8f6765b3397.png)
@@ -97,7 +97,7 @@ Don't worry, this library will help you to create requests automatically.
![image](https://user-images.githubusercontent.com/4236181/139103834-927c6c02-5860-40d6-829d-5a5dfc9091b6.png)
-* Select `Liny Tuya App Account`.
+* Select `Link Tuya App Account`.
![image](https://user-images.githubusercontent.com/4236181/139103967-45cf78f0-375b-49db-a111-7c8509abc5c0.png)
@@ -264,5 +264,6 @@ var devspec = await api.RequestAsync(TuyaApi.Method.GET, $"/v1.1/devices/{DEVICE
## Contacts
* My site (Russian): https://clusterrr.com
-* Email and PayPal: clusterrr@clusterrr.com
+* Email: clusterrr@clusterrr.com
* Telegram: https://t.me/Cluster_M
+* Donations: https://www.donationalerts.com/r/clustermeerkat