Requests: adding device - Ericmas001/Tuya-Api-Tools GitHub Wiki
adding device
- #01: s.m.gw.token.create
- #02: tuya.m.device.list.token
- #03: tuya.m.device.list.token
- #04: tuya.m.device.list.token
- #05: tuya.m.device.list.token
- #06: tuya.m.device.list.token
- #07: tuya.m.device.list.token
- #08: tuya.m.device.get
- #09: tuya.m.device.list.token
- #10: tuya.m.device.get
- #11: tuya.m.device.ref.info.list
- #12: tuya.m.device.ref.info.list
- #13: s.m.gw.location.update
- #14: s.m.ui.upgrade
- #15: tuya.m.device.list.token
- #16: tuya.m.device.list.token
- #17: s.m.gw.location.update
- #18: tuya.m.device.list.token
- #19: tuya.m.device.sub.get
- #20: tuya.m.device.sub.list
- #21: tuya.m.device.relation.entity.list
- #22: tuya.m.api.batch.invoke
- #23: tuya.m.device.list.token
#01: s.m.gw.token.create
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=s.m.gw.token.create&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=1933e12ef7fb06c87453ecd9e59d7099&lang=en&requestId=bf8203c3-705f-426a-a286-8c86e171a655&time=1517228896&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "s.m.gw.token.create",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "1933e12ef7fb06c87453ecd9e59d7099",
"lang": "en",
"requestId": "bf8203c3-705f-426a-a286-8c86e171a655",
"time": "1517228896",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 132
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22bssid%22%3A%2242%3A42%3A42%3A42%3A42%3A42%22%2C%22ssid%22%3A%22Bikini.Bottom.Wifi.2.4%22%2C%22timeZone%22%3A%22-05%3A00%22%7D
I applied a URL_DECODE on postData ...
{
"bssid": "42:42:42:42:42:42",
"ssid": "Bikini.Bottom.Wifi.2.4",
"timeZone": "-05:00"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:23 GMT
Server: Apache-Coyote/1.1
Content-Length: 95
Connection: keep-alive
RESPONSE DATA
{
"result": {
"secret": "Z5bF",
"token": "PeA8rIWc"
},
"t": 1517228903461,
"success": true,
"status": "ok"
}
#02: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=0c26950e493c18742242fbf8189911ff&lang=en&requestId=56bcedea-09e4-41a0-9768-f1b96729e1b9&time=1517228906&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "0c26950e493c18742242fbf8189911ff",
"lang": "en",
"requestId": "56bcedea-09e4-41a0-9768-f1b96729e1b9",
"time": "1517228906",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:31 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228912064,
"success": true,
"status": "ok"
}
#03: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=35e18a00073045f81ab5f2070dcc1c63&lang=en&requestId=26f58890-27f6-4c9f-b821-19380ab4ce00&time=1517228909&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "35e18a00073045f81ab5f2070dcc1c63",
"lang": "en",
"requestId": "26f58890-27f6-4c9f-b821-19380ab4ce00",
"time": "1517228909",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:34 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228914821,
"success": true,
"status": "ok"
}
#04: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=7da85d4b306d4476ba97cd484a797940&lang=en&requestId=a8a535c9-19b4-492d-8394-85a2265d672a&time=1517228911&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "7da85d4b306d4476ba97cd484a797940",
"lang": "en",
"requestId": "a8a535c9-19b4-492d-8394-85a2265d672a",
"time": "1517228911",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:37 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228917054,
"success": true,
"status": "ok"
}
#05: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=5a112b78db893120d76e5132325b80ef&lang=en&requestId=9e244f98-cf8c-48e0-95f5-9e6cba6a8cc7&time=1517228913&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "5a112b78db893120d76e5132325b80ef",
"lang": "en",
"requestId": "9e244f98-cf8c-48e0-95f5-9e6cba6a8cc7",
"time": "1517228913",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:38 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228919282,
"success": true,
"status": "ok"
}
#06: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=c0de99cad04e321abae6f60ec35ae619&lang=en&requestId=90bebee4-b341-408d-b30c-e33e36e6a365&time=1517228915&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "c0de99cad04e321abae6f60ec35ae619",
"lang": "en",
"requestId": "90bebee4-b341-408d-b30c-e33e36e6a365",
"time": "1517228915",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:40 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228921522,
"success": true,
"status": "ok"
}
#07: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=4da04d3c27ce6b7b7f3eba50abc46ea8&lang=en&requestId=d607b8e0-7da5-4cb7-a43d-89530339837f&time=1517228918&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "4da04d3c27ce6b7b7f3eba50abc46ea8",
"lang": "en",
"requestId": "d607b8e0-7da5-4cb7-a43d-89530339837f",
"time": "1517228918",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:43 GMT
Server: Apache-Coyote/1.1
Content-Length: 570
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": false,
"lon": "",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228923766,
"success": true,
"status": "ok"
}
#08: tuya.m.device.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=72b598ba427a82e91c5820b0f3e65f56&lang=en&requestId=34cac733-1d56-44a5-84ae-71e905613dff&time=1517228920&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "72b598ba427a82e91c5820b0f3e65f56",
"lang": "en",
"requestId": "34cac733-1d56-44a5-84ae-71e905613dff",
"time": "1517228920",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 55
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22devId%22%3A%2202200391ecfabc8af177%22%7D
I applied a URL_DECODE on postData ...
{
"devId": "02200391ecfabc8af177"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:45 GMT
Server: Apache-Coyote/1.1
Content-Length: 665
Connection: keep-alive
RESPONSE DATA
{
"result": {
"devId": "02200391ecfabc8af177",
"dpMaxTime": 1517196514682,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517228923,
"ip": "42.42.42.42",
"lon": "",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": false,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "02200391ecfabc8af177",
"name": "Switch 1 (kozy) ",
"isShare": false,
"timezoneId": "America/Atikokan",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
},
"t": 1517228926241,
"success": true,
"status": "ok"
}
#09: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=24651bdeb79237026c1a71d7181a85d9&lang=en&requestId=5839a69a-8206-41e7-9bc7-5e819dcae361&time=1517228921&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "24651bdeb79237026c1a71d7181a85d9",
"lang": "en",
"requestId": "5839a69a-8206-41e7-9bc7-5e819dcae361",
"time": "1517228921",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:46 GMT
Server: Apache-Coyote/1.1
Content-Length: 569
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": true,
"lon": "",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228926729,
"success": true,
"status": "ok"
}
#10: tuya.m.device.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=62e9e38bfad529c3d1cfe21fa767a31d&lang=en&requestId=44529350-a200-4747-b7ea-f8cc4eaef3d0&time=1517228922&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "62e9e38bfad529c3d1cfe21fa767a31d",
"lang": "en",
"requestId": "44529350-a200-4747-b7ea-f8cc4eaef3d0",
"time": "1517228922",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 55
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22devId%22%3A%2202200391ecfabc8af177%22%7D
I applied a URL_DECODE on postData ...
{
"devId": "02200391ecfabc8af177"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:47 GMT
Server: Apache-Coyote/1.1
Content-Length: 664
Connection: keep-alive
RESPONSE DATA
{
"result": {
"devId": "02200391ecfabc8af177",
"dpMaxTime": 1517196514682,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517228923,
"ip": "42.42.42.42",
"lon": "",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "02200391ecfabc8af177",
"name": "Switch 1 (kozy) ",
"isShare": false,
"timezoneId": "America/Atikokan",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
},
"t": 1517228927918,
"success": true,
"status": "ok"
}
#11: tuya.m.device.ref.info.list
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.ref.info.list&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=1025424f11b3fd2bf8b6b7fdb1b4e863&lang=en&requestId=317ca287-b189-4945-b65a-2e161e717a1f&time=1517228922&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.ref.info.list",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "1025424f11b3fd2bf8b6b7fdb1b4e863",
"lang": "en",
"requestId": "317ca287-b189-4945-b65a-2e161e717a1f",
"time": "1517228922",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 62
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22productIds%22%3A%5B%224PxSnRXcfvqrIi11%22%5D%7D
I applied a URL_DECODE on postData ...
{
"productIds": [
"4PxSnRXcfvqrIi11"
]
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:47 GMT
Server: Apache-Coyote/1.1
Content-Length: 2007
Connection: keep-alive
RESPONSE DATA
{
"result": [
{
"schemaInfo": {
"schema": "[{\"mode\":\"rw\",\"code\":\"switch_1\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power2\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"countdown\",\"name\":\"倒计时\",\"property\":{\"unit\":\"秒\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1,\"type\":\"value\"},\"iconname\":\"icon-dp_time2\",\"id\":11,\"type\":\"obj\",\"desc\":\"可根据产品实际倒计时功能修改。\"},{\"mode\":\"rw\",\"code\":\"randomTime\",\"name\":\"随机定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":101,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min),最大42组\"},{\"mode\":\"rw\",\"code\":\"cycleTime\",\"name\":\"循环定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":102,\"type\":\"obj\",\"desc\":\"每10个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min)/#7#8开启时间(min)/#9#10关闭时间(min)\\n星期:00(单次)01(周日)02(周一)04(周二)08(周三)10(周四)20(周五)40(周六)\"},{\"mode\":\"rw\",\"code\":\"normalTime\",\"name\":\"普通定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":103,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4开启时间(min)/#5#6关闭时间(min),最大42组\"}]",
"schemaExt": "[]"
},
"capability": 1,
"uiInfo": {
"phase": "release",
"rnFind": true,
"ui": "00000001uc_0.1.2",
"id": 433338,
"type": "RN"
},
"panelConfig": {
"bic": [
{
"code": "timer",
"selected": true
},
{
"code": "jump_url",
"selected": false
}
]
},
"shortcut": {
"quickOpDps": [
1
],
"faultDps": [],
"displayDps": [
1
],
"switchDp": 1,
"displayMsgs": {
"quickop_dp_switch_1": "Switch",
"quickop_dp_switch_1_on": "ON",
"dp_switch_1_on": "ON",
"dp_switch_1_off": "OFF",
"quickop_dp_switch_1_off": "OFF",
"dp_switch_1": "Switch"
}
},
"i18nTime": 1509939182376,
"id": "4PxSnRXcfvqrIi11",
"attribute": 2944,
"category": "cz",
"supportGroup": true,
"meshCategory": ""
}
],
"t": 1517228928198,
"success": true,
"status": "ok"
}
#12: tuya.m.device.ref.info.list
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.ref.info.list&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=455cc2f9665f232a4788c6045e5f267c&lang=en&requestId=f46eca38-ce2a-410e-bde7-7196113d8c6d&time=1517228921&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.ref.info.list",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "455cc2f9665f232a4788c6045e5f267c",
"lang": "en",
"requestId": "f46eca38-ce2a-410e-bde7-7196113d8c6d",
"time": "1517228921",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 62
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22productIds%22%3A%5B%224PxSnRXcfvqrIi11%22%5D%7D
I applied a URL_DECODE on postData ...
{
"productIds": [
"4PxSnRXcfvqrIi11"
]
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:48 GMT
Server: Apache-Coyote/1.1
Content-Length: 2007
Connection: keep-alive
RESPONSE DATA
{
"result": [
{
"schemaInfo": {
"schema": "[{\"mode\":\"rw\",\"code\":\"switch_1\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power2\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"countdown\",\"name\":\"倒计时\",\"property\":{\"unit\":\"秒\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1,\"type\":\"value\"},\"iconname\":\"icon-dp_time2\",\"id\":11,\"type\":\"obj\",\"desc\":\"可根据产品实际倒计时功能修改。\"},{\"mode\":\"rw\",\"code\":\"randomTime\",\"name\":\"随机定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":101,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min),最大42组\"},{\"mode\":\"rw\",\"code\":\"cycleTime\",\"name\":\"循环定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":102,\"type\":\"obj\",\"desc\":\"每10个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min)/#7#8开启时间(min)/#9#10关闭时间(min)\\n星期:00(单次)01(周日)02(周一)04(周二)08(周三)10(周四)20(周五)40(周六)\"},{\"mode\":\"rw\",\"code\":\"normalTime\",\"name\":\"普通定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":103,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4开启时间(min)/#5#6关闭时间(min),最大42组\"}]",
"schemaExt": "[]"
},
"capability": 1,
"uiInfo": {
"phase": "release",
"rnFind": true,
"ui": "00000001uc_0.1.2",
"id": 433338,
"type": "RN"
},
"panelConfig": {
"bic": [
{
"code": "timer",
"selected": true
},
{
"code": "jump_url",
"selected": false
}
]
},
"shortcut": {
"quickOpDps": [
1
],
"faultDps": [],
"displayDps": [
1
],
"switchDp": 1,
"displayMsgs": {
"quickop_dp_switch_1": "Switch",
"quickop_dp_switch_1_on": "ON",
"dp_switch_1_on": "ON",
"dp_switch_1_off": "OFF",
"quickop_dp_switch_1_off": "OFF",
"dp_switch_1": "Switch"
}
},
"i18nTime": 1509939182376,
"id": "4PxSnRXcfvqrIi11",
"attribute": 2944,
"category": "cz",
"supportGroup": true,
"meshCategory": ""
}
],
"t": 1517228928397,
"success": true,
"status": "ok"
}
#13: s.m.gw.location.update
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=s.m.gw.location.update&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=4269de126bb905e149f67b93d1fa4c99&lang=en&requestId=b6810bf7-4bbd-4f10-8a99-67b04ad29d09&time=1517228922&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "s.m.gw.location.update",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "4269de126bb905e149f67b93d1fa4c99",
"lang": "en",
"requestId": "b6810bf7-4bbd-4f10-8a99-67b04ad29d09",
"time": "1517228922",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 54
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22gwId%22%3A%2202200391ecfabc8af177%22%7D
I applied a URL_DECODE on postData ...
{
"gwId": "02200391ecfabc8af177"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:48 GMT
Server: Apache-Coyote/1.1
Content-Length: 63
Connection: keep-alive
RESPONSE DATA
{
"result": true,
"t": 1517228928545,
"success": true,
"status": "ok"
}
#14: s.m.ui.upgrade
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=s.m.ui.upgrade&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=1425897dadb4d001baefe968e3260f51&lang=en&requestId=3affc640-1c5f-4694-be48-ddf414cca3fe&time=1517228925&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "s.m.ui.upgrade",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "1425897dadb4d001baefe968e3260f51",
"lang": "en",
"requestId": "3affc640-1c5f-4694-be48-ddf414cca3fe",
"time": "1517228925",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 102
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22uiId%22%3A%2200000001uc%22%2C%22uiPhase%22%3A%22release%22%2C%22uiType%22%3A%22RN%22%7D
I applied a URL_DECODE on postData ...
{
"uiId": "00000001uc",
"uiPhase": "release",
"uiType": "RN"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:50 GMT
Server: Apache-Coyote/1.1
Content-Length: 302
Connection: keep-alive
RESPONSE DATA
{
"result": {
"os": 2,
"fileSize": "355254",
"uiId": "00000001uc",
"fileMd5": "0deaa5cf7785ab2fa35c33fa3dc2d078",
"id": 433338,
"type": "RN",
"version": "0.1.2",
"content": "https://images.tuyaus.com/smart/ui/00000001uc/1490774704-smartSocketTP-android_2.5_0.1.2.tar.gz"
},
"t": 1517228930511,
"success": true,
"status": "ok"
}
#15: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=94617c831be9274e70ff9f507685c0f1&lang=en&requestId=902f3a89-ca83-4acd-a56b-78a80b7dd055&time=1517228925&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "94617c831be9274e70ff9f507685c0f1",
"lang": "en",
"requestId": "902f3a89-ca83-4acd-a56b-78a80b7dd055",
"time": "1517228925",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:50 GMT
Server: Apache-Coyote/1.1
Content-Length: 590
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": true,
"lon": "-42.4279215",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228931130,
"success": true,
"status": "ok"
}
#16: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=08a252d9a573424b604327c61f03c859&lang=en&requestId=59b1e5f9-d8fd-49ba-b7be-8fdba8af1fee&time=1517228928&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "08a252d9a573424b604327c61f03c859",
"lang": "en",
"requestId": "59b1e5f9-d8fd-49ba-b7be-8fdba8af1fee",
"time": "1517228928",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:28:53 GMT
Server: Apache-Coyote/1.1
Content-Length: 590
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": true,
"lon": "-42.4279215",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228934132,
"success": true,
"status": "ok"
}
#17: s.m.gw.location.update
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=s.m.gw.location.update&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=9b3d5ee6a93999b7dab0f333f6fc4392&lang=en&requestId=0e4f4725-69ad-4e9f-8654-b56ad0d1e74a&time=1517228935&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "s.m.gw.location.update",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "9b3d5ee6a93999b7dab0f333f6fc4392",
"lang": "en",
"requestId": "0e4f4725-69ad-4e9f-8654-b56ad0d1e74a",
"time": "1517228935",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 54
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22gwId%22%3A%2202200391ecfabc8af177%22%7D
I applied a URL_DECODE on postData ...
{
"gwId": "02200391ecfabc8af177"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:00 GMT
Server: Apache-Coyote/1.1
Content-Length: 63
Connection: keep-alive
RESPONSE DATA
{
"result": true,
"t": 1517228940998,
"success": true,
"status": "ok"
}
#18: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=613a3c7375b527a428170d016a44bb05&lang=en&requestId=f2b556a5-685e-4189-85ff-7f1821790fc2&time=1517228940&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "613a3c7375b527a428170d016a44bb05",
"lang": "en",
"requestId": "f2b556a5-685e-4189-85ff-7f1821790fc2",
"time": "1517228940",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:05 GMT
Server: Apache-Coyote/1.1
Content-Length: 590
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": true,
"lon": "-42.4279215",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228946436,
"success": true,
"status": "ok"
}
#19: tuya.m.device.sub.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.sub.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=200bf2871629d39e2fea728b7bce0779&lang=en&requestId=4da08420-995a-44f7-8f27-d24ed2ff786a&time=1517228942&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.sub.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "200bf2871629d39e2fea728b7bce0779",
"lang": "en",
"requestId": "4da08420-995a-44f7-8f27-d24ed2ff786a",
"time": "1517228942",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 101
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22devId%22%3A%2202200391ecfabc8af177%22%2C%22meshId%22%3A%22meebb921f5a09f385811fx%22%7D
I applied a URL_DECODE on postData ...
{
"devId": "02200391ecfabc8af177",
"meshId": "meebb921f5a09f385811fx"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:07 GMT
Server: Apache-Coyote/1.1
Content-Length: 63
Connection: keep-alive
RESPONSE DATA
{
"result": true,
"t": 1517228948151,
"success": true,
"status": "ok"
}
#20: tuya.m.device.sub.list
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.sub.list&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=55b7ee4be43366b565bf6934058e7d24&lang=en&requestId=f31e440a-0489-4421-b00f-94c2ead0ec71&time=1517228942&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.sub.list",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "55b7ee4be43366b565bf6934058e7d24",
"lang": "en",
"requestId": "f31e440a-0489-4421-b00f-94c2ead0ec71",
"time": "1517228942",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 58
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22meshId%22%3A%22meebb921f5a09f385811fx%22%7D
I applied a URL_DECODE on postData ...
{
"meshId": "meebb921f5a09f385811fx"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:08 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": [],
"t": 1517228948870,
"success": true,
"status": "ok"
}
#21: tuya.m.device.relation.entity.list
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.relation.entity.list&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=8b8f12ab2ee48b523a37612d5eddfcab&lang=en&requestId=de06d9af-d1ed-4943-b44a-fbf9b3e27f1d&time=1517228948&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.relation.entity.list",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "8b8f12ab2ee48b523a37612d5eddfcab",
"lang": "en",
"requestId": "de06d9af-d1ed-4943-b44a-fbf9b3e27f1d",
"time": "1517228948",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 83
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22parentId%22%3A%22meebb921f5a09f385811fx%22%2C%22parentType%22%3A3%7D
I applied a URL_DECODE on postData ...
{
"parentId": "meebb921f5a09f385811fx",
"parentType": 3
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:13 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228954150,
"success": true,
"status": "ok"
}
#22: tuya.m.api.batch.invoke
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.api.batch.invoke&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=c39ac3b0b6e7978440336acd0de71fb8&lang=en&requestId=a82bdc7e-231a-4fec-8ef9-3326f25e4c85&time=1517228952&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.api.batch.invoke",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "c39ac3b0b6e7978440336acd0de71fb8",
"lang": "en",
"requestId": "a82bdc7e-231a-4fec-8ef9-3326f25e4c85",
"time": "1517228952",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 624
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22apis%22%3A%5B%7B%22a%22%3A%22tuya.m.device.ref.info.my.list%22%2C%22sign%22%3A%2261016a318d83e0eda7545c8847d9e619%22%2C%22t%22%3A1517228952%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.my.list%22%2C%22sign%22%3A%22ef4ea0f2e31582638347223b56f8562a%22%2C%22t%22%3A1517228952%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.mesh.my.list%22%2C%22sign%22%3A%2215c8eeb42c8d318a608be748d4680810%22%2C%22t%22%3A1517228952%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.group.my.list%22%2C%22sign%22%3A%221d959b123bc667a3b5f6bb4e92b1e03b%22%2C%22t%22%3A1517228952%2C%22v%22%3A%221.0%22%7D%5D%7D
I applied a URL_DECODE on postData ...
{
"apis": [
{
"a": "tuya.m.device.ref.info.my.list",
"sign": "61016a318d83e0eda7545c8847d9e619",
"t": 1517228952,
"v": "1.0"
},
{
"a": "tuya.m.device.my.list",
"sign": "ef4ea0f2e31582638347223b56f8562a",
"t": 1517228952,
"v": "1.0"
},
{
"a": "tuya.m.mesh.my.list",
"sign": "15c8eeb42c8d318a608be748d4680810",
"t": 1517228952,
"v": "1.0"
},
{
"a": "tuya.m.device.group.my.list",
"sign": "1d959b123bc667a3b5f6bb4e92b1e03b",
"t": 1517228952,
"v": "1.0"
}
]
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:17 GMT
Server: Apache-Coyote/1.1
Content-Length: 5094
Connection: keep-alive
RESPONSE DATA
{
"result": [
{
"result": [
{
"schemaInfo": {
"schema": "[{\"mode\":\"rw\",\"code\":\"switch_1\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power2\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"countdown\",\"name\":\"倒计时\",\"property\":{\"unit\":\"秒\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1,\"type\":\"value\"},\"iconname\":\"icon-dp_time2\",\"id\":11,\"type\":\"obj\",\"desc\":\"可根据产品实际倒计时功能修改。\"},{\"mode\":\"rw\",\"code\":\"randomTime\",\"name\":\"随机定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":101,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min),最大42组\"},{\"mode\":\"rw\",\"code\":\"cycleTime\",\"name\":\"循环定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":102,\"type\":\"obj\",\"desc\":\"每10个字节代表 #1开关/#2星期/#3#4起始时间(min)/#5#6结束时间(min)/#7#8开启时间(min)/#9#10关闭时间(min)\\n星期:00(单次)01(周日)02(周一)04(周二)08(周三)10(周四)20(周五)40(周六)\"},{\"mode\":\"rw\",\"code\":\"normalTime\",\"name\":\"普通定时\",\"property\":{\"type\":\"string\",\"maxlen\":255},\"id\":103,\"type\":\"obj\",\"desc\":\"每6个字节代表 #1开关/#2星期/#3#4开启时间(min)/#5#6关闭时间(min),最大42组\"}]",
"schemaExt": "[]"
},
"capability": 1,
"uiInfo": {
"phase": "release",
"rnFind": true,
"ui": "00000001uc_0.1.2",
"id": 433338,
"type": "RN"
},
"panelConfig": {
"bic": [
{
"code": "timer",
"selected": true
},
{
"code": "jump_url",
"selected": false
}
]
},
"shortcut": {
"quickOpDps": [
1
],
"faultDps": [],
"displayDps": [
1
],
"switchDp": 1,
"displayMsgs": {
"quickop_dp_switch_1": "Switch",
"quickop_dp_switch_1_on": "ON",
"dp_switch_1_on": "ON",
"dp_switch_1_off": "OFF",
"quickop_dp_switch_1_off": "OFF",
"dp_switch_1": "Switch"
}
},
"i18nTime": 1509939182376,
"id": "4PxSnRXcfvqrIi11",
"attribute": 2944,
"category": "cz",
"supportGroup": true,
"meshCategory": ""
}
],
"a": "tuya.m.device.ref.info.my.list",
"t": 1517228958424,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [
{
"devId": "02200391ecfabc8af177",
"dpMaxTime": 1517228928644,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517228923,
"ip": "42.42.42.42",
"lon": "-42.4279215",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "02200391ecfabc8af177",
"name": "Switch 1 (kozy) ",
"isShare": false,
"timezoneId": "America/Atikokan",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
},
{
"devId": "02200391ecfabc8180cc",
"dpMaxTime": 1517170792569,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517170787,
"ip": "42.42.42.42",
"lon": "-42.4279215",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "02200391ecfabc8180cc",
"name": "Stalky sw2",
"isShare": false,
"timezoneId": "America/Toronto",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "15f80f9621483537"
},
{
"devId": "02200391ecfabc8fa247",
"dpMaxTime": 1517022471865,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "AP",
"102": "AP",
"103": "AP"
},
"activeTime": 1517022356,
"ip": "42.42.42.42",
"lon": "-42.4279215",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "02200391ecfabc8fa247",
"name": "Snappy sw4",
"isShare": false,
"timezoneId": "America/Toronto",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "53ab3e3c48e5a28f"
},
{
"devId": "01200885ecfabc802c01",
"dpMaxTime": 1517022406759,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517022280,
"ip": "42.42.42.42",
"lon": "-42.4279215",
"moduleMap": {
"wifi": {
"bv": "5.07",
"cdv": "",
"pv": "2.1",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
},
"mcu": {
"cdv": "",
"verSw": "1.0.0",
"isOnline": true,
"cadv": ""
}
},
"uuid": "01200885ecfabc802c01",
"name": "Olaf sw3",
"isShare": false,
"timezoneId": "America/Toronto",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "cfa1fd901557fe8a"
}
],
"a": "tuya.m.device.my.list",
"t": 1517228958424,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [
{
"uid": "fz1516934610837YmStU",
"password": "a1944d364b2149b2",
"code": "tymesh1517015922",
"pv": "2.1",
"name": "tymesh1517015922",
"share": false,
"meshId": "meebb921f5a09f385811fx",
"localKey": "e5b87e7b1c5a9281"
}
],
"a": "tuya.m.mesh.my.list",
"t": 1517228958416,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [],
"a": "tuya.m.device.group.my.list",
"t": 1517228958415,
"success": true,
"v": "1.0",
"status": "ok"
}
],
"t": 1517228958424,
"success": true,
"status": "ok"
}
#23: tuya.m.device.list.token
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.device.list.token&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75&imei=451746050955683&os=Android&v=2.0&appVersion=2.9.1&lon=-42.4279215&clientId=3qp5cfk8c4gyrf3mpmc8&sign=a0f8bed3259b12530f676e317deb45f7&lang=en&requestId=e5fca941-2e66-44ea-b142-bf8e3e84510e&time=1517228953&appRnVersion=2.9&lat=42.4231049&imsi=40895Galaxy75dd HTTP/1.1
I decoded the URL parms into a dictionnary ...
{
"sdkVersion": "1.11.11",
"platform": "Galaxy Nexus",
"ttid": "sdk_google1@3qp5cfk8c4gyrf3mpmc8",
"a": "tuya.m.device.list.token",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "az151693J4610837YCmStUB30c8a1c895d88ec0133b547cc40511b75",
"imei": "451746050955683",
"os": "Android",
"v": "2.0",
"appVersion": "2.9.1",
"lon": "-42.4279215",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "a0f8bed3259b12530f676e317deb45f7",
"lang": "en",
"requestId": "e5fca941-2e66-44ea-b142-bf8e3e84510e",
"time": "1517228953",
"appRnVersion": "2.9",
"lat": "42.4231049",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22token%22%3A%22PeA8rIWc%22%7D
I applied a URL_DECODE on postData ...
{
"token": "PeA8rIWc"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:29:17 GMT
Server: Apache-Coyote/1.1
Content-Length: 590
Connection: keep-alive
RESPONSE DATA
{
"result": {
"errorDevices": [],
"successDevices": [
{
"productId": "4PxSnRXcfvqrIi11",
"pv": "2.1",
"activeTime": 1517228923,
"ip": "42.42.42.42",
"cadVer": "",
"icon": "smart/icon/1498529014_0.png",
"verSw": "1.0.0",
"isOnline": true,
"lon": "-42.4279215",
"isActive": true,
"uuid": "02200391ecfabc8af177",
"accessType": 0,
"gwType": "s",
"bv": "5.07",
"name": "Switch 1 (kozy) ",
"ability": 0,
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"id": "02200391ecfabc8af177",
"time": 1517228923,
"lat": "42.4231049",
"runtimeEnv": "prod",
"localKey": "d671ed75c2966dcf"
}
]
},
"t": 1517228958457,
"success": true,
"status": "ok"
}