Requests: connect user auto connect - Ericmas001/Tuya-Api-Tools GitHub Wiki
connect user auto connect
- #01: tuya.p.time.get
- #02: tuya.m.api.batch.invoke
- #03: b.m.app.check
- #04: tuya.p.weather.city.info.aggregate
- #05: tuya.m.device.sub.list
- #06: tuya.m.linkage.rule.query
- #07: tuya.m.msg.maxtime
- #08: b.m.device.register
- #09: tuya.m.iconfont.version.get
- #10: tuya.m.product.list
- #11: tuya.m.device.relation.entity.list
- #12: tuya.m.api.batch.invoke
- #13: tuya.m.user.info.get
- #14: tuya.m.user.loginout
#01: tuya.p.time.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.p.time.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=e6b7bfb414993b4c7347f6ddfd124474&lang=en&requestId=c755a9de-c478-47b1-afc0-fe6b03caaa8b&time=1517227900&appRnVersion=2.9&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.p.time.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "e6b7bfb414993b4c7347f6ddfd124474",
"lang": "en",
"requestId": "c755a9de-c478-47b1-afc0-fe6b03caaa8b",
"time": "1517227900",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:11:44 GMT
Server: Apache-Coyote/1.1
Content-Length: 95
Connection: keep-alive
RESPONSE DATA
{
"result": {
"validTime": 1800,
"time": 1517227904
},
"t": 1517227904984,
"success": true,
"status": "ok"
}
#02: 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=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=7eb211999e288efe7ac6ec019e57b1be&lang=en&requestId=d6ce719f-6934-4683-969f-f7a60dc239f1&time=1517227900&appRnVersion=2.9&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": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "7eb211999e288efe7ac6ec019e57b1be",
"lang": "en",
"requestId": "d6ce719f-6934-4683-969f-f7a60dc239f1",
"time": "1517227900",
"appRnVersion": "2.9",
"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%2261747cb4dc829731b196e2fc9eeb3f29%22%2C%22t%22%3A1517227900%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.my.list%22%2C%22sign%22%3A%227d472d825f7450f9b0ca6b6e8fc1e733%22%2C%22t%22%3A1517227900%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.mesh.my.list%22%2C%22sign%22%3A%227e135f022de241cd708c863aebfb3d9b%22%2C%22t%22%3A1517227900%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.group.my.list%22%2C%22sign%22%3A%22814d21ef593132b577c45552f0e2c9e1%22%2C%22t%22%3A1517227900%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": "61747cb4dc829731b196e2fc9eeb3f29",
"t": 1517227900,
"v": "1.0"
},
{
"a": "tuya.m.device.my.list",
"sign": "7d472d825f7450f9b0ca6b6e8fc1e733",
"t": 1517227900,
"v": "1.0"
},
{
"a": "tuya.m.mesh.my.list",
"sign": "7e135f022de241cd708c863aebfb3d9b",
"t": 1517227900,
"v": "1.0"
},
{
"a": "tuya.m.device.group.my.list",
"sign": "814d21ef593132b577c45552f0e2c9e1",
"t": 1517227900,
"v": "1.0"
}
]
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:11:44 GMT
Server: Apache-Coyote/1.1
Content-Length: 5093
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": 1517227905018,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [
{
"devId": "02200391ecfabc8af177",
"dpMaxTime": 1517196514682,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517191924,
"ip": "42.42.42.42",
"lon": "-42.4279139",
"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/Toronto",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231269",
"runtimeEnv": "prod",
"localKey": "8fe570e3111f3711"
},
{
"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.4279139",
"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.4231269",
"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.4279139",
"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.4231269",
"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.4279139",
"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.4231269",
"runtimeEnv": "prod",
"localKey": "cfa1fd901557fe8a"
}
],
"a": "tuya.m.device.my.list",
"t": 1517227905014,
"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": 1517227905006,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [],
"a": "tuya.m.device.group.my.list",
"t": 1517227905007,
"success": true,
"v": "1.0",
"status": "ok"
}
],
"t": 1517227905018,
"success": true,
"status": "ok"
}
#03: b.m.app.check
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=b.m.app.check&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=a74b80f7223157e97f18a06b9d2dc939&lang=en&requestId=93727f07-90c6-4932-8cf4-dfd3dfc7a99b&time=1517227910&appRnVersion=2.9&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": "b.m.app.check",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "a74b80f7223157e97f18a06b9d2dc939",
"lang": "en",
"requestId": "93727f07-90c6-4932-8cf4-dfd3dfc7a99b",
"time": "1517227910",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 77
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22clientType%22%3A%22android%22%2C%22version%22%3A%222.9.1%22%7D
I applied a URL_DECODE on postData ...
{
"clientType": "android",
"version": "2.9.1"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:12:33 GMT
Server: Apache-Coyote/1.1
Content-Length: 99
Connection: keep-alive
RESPONSE DATA
{
"result": {
"upgradeLevel": 0,
"message": "",
"url": ""
},
"t": 1517227954089,
"success": true,
"status": "ok"
}
#04: tuya.p.weather.city.info.aggregate
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.p.weather.city.info.aggregate&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=11086f15ab3cbc747d2bbc84dc369876&lang=en&requestId=cafbbfb7-4db5-448e-abfd-90d9ce2fbf5f&time=1517227956&appRnVersion=2.9&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.p.weather.city.info.aggregate",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "11086f15ab3cbc747d2bbc84dc369876",
"lang": "en",
"requestId": "cafbbfb7-4db5-448e-abfd-90d9ce2fbf5f",
"time": "1517227956",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:16 GMT
Server: Apache-Coyote/1.1
Content-Length: 112
Connection: keep-alive
RESPONSE DATA
{
"result": {
"condition": "Clear",
"temp": "-14.22",
"city": "Bikini Bottom"
},
"t": 1517227996828,
"success": true,
"status": "ok"
}
#05: 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=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=02492c45d6ab76d7f768877ddef3d6f6&lang=en&requestId=18286616-68f6-4dbe-8ef6-085a42c72638&time=1517227961&appRnVersion=2.9&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": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "02492c45d6ab76d7f768877ddef3d6f6",
"lang": "en",
"requestId": "18286616-68f6-4dbe-8ef6-085a42c72638",
"time": "1517227961",
"appRnVersion": "2.9",
"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:13:20 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": [],
"t": 1517228001180,
"success": true,
"status": "ok"
}
#06: tuya.m.linkage.rule.query
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.linkage.rule.query&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=3.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=d9f720fd99be023ad80d80aa3de77902&lang=en&requestId=461baa7b-9ff6-4832-a2b8-875b44895941&time=1517227966&appRnVersion=2.9&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.linkage.rule.query",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "3.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "d9f720fd99be023ad80d80aa3de77902",
"lang": "en",
"requestId": "461baa7b-9ff6-4832-a2b8-875b44895941",
"time": "1517227966",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:27 GMT
Server: Apache-Coyote/1.1
Content-Length: 1080
Connection: keep-alive
RESPONSE DATA
{
"result": [
{
"code": "get_home",
"displayIcon": "https://images.tuyaus.com/smart/rule/[email protected]",
"subTitle": "Suggest to turn on lamp, air conditioner, air purifier",
"name": "Back home",
"editIcon": "https://images.tuyaus.com/smart/rule/[email protected]"
},
{
"code": "leave_home",
"displayIcon": "https://images.tuyaus.com/smart/rule/[email protected]",
"subTitle": "Suggest to turn off lamp, air conditioner",
"name": "Leave home",
"editIcon": "https://images.tuyaus.com/smart/rule/[email protected]"
},
{
"code": "get_up",
"displayIcon": "https://images.tuyaus.com/smart/rule/[email protected]",
"subTitle": "Suggest to set up wake-up light and your favorite music",
"name": "Sunrise",
"editIcon": "https://images.tuyaus.com/smart/rule/[email protected]"
},
{
"code": "rest",
"displayIcon": "https://images.tuyaus.com/smart/rule/[email protected]",
"subTitle": "Suggest to dim the light and set up sleep mode for devices",
"name": "Good night",
"editIcon": "https://images.tuyaus.com/smart/rule/[email protected]"
}
],
"t": 1517228007204,
"success": true,
"status": "ok"
}
#07: tuya.m.msg.maxtime
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.msg.maxtime&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=697bd5e3cdc77ce151b872cd41ca8f0a&lang=en&requestId=d6739ab7-5065-4948-a997-063c4a876adb&time=1517227982&appRnVersion=2.9&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.msg.maxtime",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "697bd5e3cdc77ce151b872cd41ca8f0a",
"lang": "en",
"requestId": "d6739ab7-5065-4948-a997-063c4a876adb",
"time": "1517227982",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:43 GMT
Server: Apache-Coyote/1.1
Content-Length: 60
Connection: keep-alive
RESPONSE DATA
{
"result": 0,
"t": 1517228023992,
"success": true,
"status": "ok"
}
#08: b.m.device.register
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=b.m.device.register&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=3.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=846696d1213677165384c43c78a4cc11&lang=en&requestId=5744df68-3119-44eb-8d16-e0c529da0a2e&time=1517227984&appRnVersion=2.9&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": "b.m.device.register",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "3.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "846696d1213677165384c43c78a4cc11",
"lang": "en",
"requestId": "5744df68-3119-44eb-8d16-e0c529da0a2e",
"time": "1517227984",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 317
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
postData=%7B%22isEnglish%22%3A0%2C%22model%22%3A%22Galaxy%20Nexus%22%2C%22pushProvider%22%3A%22gcm%22%2C%22pushToken%22%3A%22cJgWIR4xwGs%3AAPA91bFFrzOFPKsgZ2Yh6cpNMLpHpPCUACzMR2DJJFUWG5Y8H2QYv_2kR0Eo9rBvc78kxsESe5-N8pbDFJh5dCjm0P4WufhA_BA-aDWnZSjQrh-0lkEUSvrA_uXHnrnfFQ87NZZD6wL7%22%2C%22pushVersion%22%3A%221.0%22%7D
I applied a URL_DECODE on postData ...
{
"isEnglish": 0,
"model": "Galaxy Nexus",
"pushProvider": "gcm",
"pushToken": "cJgWIR4xwGs:APA91bFFrzOFPKsgZ2Yh6cpNMLpHpPCUACzMR2DJJFUWG5Y8H2QYv_2kR0Eo9rBvc78kxsESe5-N8pbDFJh5dCjm0P4WufhA_BA-aDWnZSjQrh-0lkEUSvrA_uXHnrnfFQ87NZZD6wL7",
"pushVersion": "1.0"
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:44 GMT
Server: Apache-Coyote/1.1
Content-Length: 94
Connection: keep-alive
RESPONSE DATA
{
"result": {
"objectId": "A6G46P7Jqd453e84gppB"
},
"t": 1517228025024,
"success": true,
"status": "ok"
}
#09: tuya.m.iconfont.version.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.iconfont.version.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=1d246e38be82fbca580dca399de895a0&lang=en&requestId=faf1bf95-be23-4821-b0c2-473b9882e6fb&time=1517227985&appRnVersion=2.9&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.iconfont.version.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "1d246e38be82fbca580dca399de895a0",
"lang": "en",
"requestId": "faf1bf95-be23-4821-b0c2-473b9882e6fb",
"time": "1517227985",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:44 GMT
Server: Apache-Coyote/1.1
Content-Length: 78
Connection: keep-alive
RESPONSE DATA
{
"result": {
"version": "1.1.7"
},
"t": 1517228025233,
"success": true,
"status": "ok"
}
#10: tuya.m.product.list
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.product.list&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=7f326e54c5228da2e2e4096a4475fbc6&lang=en&requestId=6f679ab4-c975-4796-b4b3-a11e4b599a19&time=1517227985&appRnVersion=2.9&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.product.list",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "7f326e54c5228da2e2e4096a4475fbc6",
"lang": "en",
"requestId": "6f679ab4-c975-4796-b4b3-a11e4b599a19",
"time": "1517227985",
"appRnVersion": "2.9",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:45 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": [],
"t": 1517228025468,
"success": true,
"status": "ok"
}
#11: 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=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=bd96733b367c232ecbbd1920d0cdc5e3&lang=en&requestId=5107ca5a-6fe3-401d-985c-b2ce6b4a6efc&time=1517227986&appRnVersion=2.9&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": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "bd96733b367c232ecbbd1920d0cdc5e3",
"lang": "en",
"requestId": "5107ca5a-6fe3-401d-985c-b2ce6b4a6efc",
"time": "1517227986",
"appRnVersion": "2.9",
"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:13:46 GMT
Server: Apache-Coyote/1.1
Content-Length: 61
Connection: keep-alive
RESPONSE DATA
{
"result": {},
"t": 1517228026894,
"success": true,
"status": "ok"
}
#12: 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=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&clientId=3qp5cfk8c4gyrf3mpmc8&sign=6102cb4a84482c5b2e712516c321db13&lang=en&requestId=685b370a-9cee-4092-9208-56642b4bd229&time=1517227998&appRnVersion=2.9&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": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "6102cb4a84482c5b2e712516c321db13",
"lang": "en",
"requestId": "685b370a-9cee-4092-9208-56642b4bd229",
"time": "1517227998",
"appRnVersion": "2.9",
"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%22365558207a33cf054558480516cd325c%22%2C%22t%22%3A1517227998%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.my.list%22%2C%22sign%22%3A%22e04ca8f665d4587c2840855f7375db87%22%2C%22t%22%3A1517227998%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.mesh.my.list%22%2C%22sign%22%3A%2220baf319c0f08e74e3419314123e776c%22%2C%22t%22%3A1517227998%2C%22v%22%3A%221.0%22%7D%2C%7B%22a%22%3A%22tuya.m.device.group.my.list%22%2C%22sign%22%3A%22e484ef192362de221ac27602cfc367c8%22%2C%22t%22%3A1517227998%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": "365558207a33cf054558480516cd325c",
"t": 1517227998,
"v": "1.0"
},
{
"a": "tuya.m.device.my.list",
"sign": "e04ca8f665d4587c2840855f7375db87",
"t": 1517227998,
"v": "1.0"
},
{
"a": "tuya.m.mesh.my.list",
"sign": "20baf319c0f08e74e3419314123e776c",
"t": 1517227998,
"v": "1.0"
},
{
"a": "tuya.m.device.group.my.list",
"sign": "e484ef192362de221ac27602cfc367c8",
"t": 1517227998,
"v": "1.0"
}
]
}
RESPONSE
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:13:58 GMT
Server: Apache-Coyote/1.1
Content-Length: 5093
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": 1517228038771,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [
{
"devId": "02200391ecfabc8af177",
"dpMaxTime": 1517196514682,
"virtual": false,
"productId": "4PxSnRXcfvqrIi11",
"dps": {
"11": 0,
"1": true,
"101": "QVA=",
"102": "QVA=",
"103": "QVA="
},
"activeTime": 1517191924,
"ip": "42.42.42.42",
"lon": "-42.4279139",
"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/Toronto",
"iconUrl": "https://images.tuyaus.com/smart/icon/1498529014_0.png",
"lat": "42.4231269",
"runtimeEnv": "prod",
"localKey": "8fe570e3111f3711"
},
{
"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.4279139",
"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.4231269",
"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.4279139",
"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.4231269",
"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.4279139",
"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.4231269",
"runtimeEnv": "prod",
"localKey": "cfa1fd901557fe8a"
}
],
"a": "tuya.m.device.my.list",
"t": 1517228038765,
"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": 1517228038760,
"success": true,
"v": "1.0",
"status": "ok"
},
{
"result": [],
"a": "tuya.m.device.group.my.list",
"t": 1517228038760,
"success": true,
"v": "1.0",
"status": "ok"
}
],
"t": 1517228038771,
"success": true,
"status": "ok"
}
#13: tuya.m.user.info.get
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.user.info.get&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.42792&clientId=3qp5cfk8c4gyrf3mpmc8&sign=617d9f4d72b09ed6ab82b5ddb221dbb0&lang=en&requestId=8ff11d36-81f8-46df-bf0d-349b36f90237&time=1517228108&appRnVersion=2.9&lat=42.4231047&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.user.info.get",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.42792",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "617d9f4d72b09ed6ab82b5ddb221dbb0",
"lang": "en",
"requestId": "8ff11d36-81f8-46df-bf0d-349b36f90237",
"time": "1517228108",
"appRnVersion": "2.9",
"lat": "42.4231047",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:15:48 GMT
Server: Apache-Coyote/1.1
Content-Length: 421
Connection: keep-alive
RESPONSE DATA
{
"result": {
"mobile": "1-1235556789",
"domain": {
"gwApiUrl": "http://a.gw.tuyaus.com/gw.json",
"gwMqttUrl": "mq.gw.tuyaus.com",
"mobileApiUrl": "https://a1.tuyaus.com",
"mobileMqttUrl": "mq.mb.tuyaus.com",
"pxApiUrl": "https://px1.tuyaus.com",
"regionCode": "AZ"
},
"nickname": "",
"timezoneId": "America/Toronto",
"userType": 1,
"id": "fz1516934610837YmStU",
"email": "",
"username": "1-1235556789"
},
"t": 1517228148916,
"success": true,
"status": "ok"
}
#14: tuya.m.user.loginout
POST https://a1.tuyaus.com/api.json?sdkVersion=1.11.11&platform=Galaxy%20Nexus&ttid=sdk_google1@3qp5cfk8c4gyrf3mpmc8&a=tuya.m.user.loginout&timeZoneId=America/Atikokan&deviceId=e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff&osSystem=4.4.4&sid=fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a&imei=451746050955683&os=Android&v=1.0&appVersion=2.9.1&lon=-42.42792&clientId=3qp5cfk8c4gyrf3mpmc8&sign=2ddb2e30320a5db0c7b3ac7adfb00811&lang=en&requestId=9a6751a8-a7f3-4f0f-9564-7e5e7051d0de&time=1517228124&appRnVersion=2.9&lat=42.4231047&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.user.loginout",
"timeZoneId": "America/Atikokan",
"deviceId": "e742886e7bca1f0b6b99d8483ac0003fca13a18b46ff",
"osSystem": "4.4.4",
"sid": "fz151693x4610837YgmStUk3090d2123a09eec8b03d90ca3b804409a",
"imei": "451746050955683",
"os": "Android",
"v": "1.0",
"appVersion": "2.9.1",
"lon": "-42.42792",
"clientId": "3qp5cfk8c4gyrf3mpmc8",
"sign": "2ddb2e30320a5db0c7b3ac7adfb00811",
"lang": "en",
"requestId": "9a6751a8-a7f3-4f0f-9564-7e5e7051d0de",
"time": "1517228124",
"appRnVersion": "2.9",
"lat": "42.4231047",
"imsi": "40895Galaxy75dd"
}
User-Agent: TY-UA=APP/Android/2.9.1/SDK/1.11.11
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Host: a1.tuyaus.com
Connection: Keep-Alive
Accept-Encoding: gzip
REQUEST DATA
RESPONSE
HTTP/1.1 200 OK
Content-Language: zh-CN
Content-Type: application/json;charset=UTF-8
Date: Mon, 29 Jan 2018 12:16:03 GMT
Server: Apache-Coyote/1.1
Content-Length: 77
Connection: keep-alive
RESPONSE DATA
{
"result": {
"success": "true"
},
"t": 1517228164352,
"success": true,
"status": "ok"
}