Skip to content

Instantly share code, notes, and snippets.

@brianhanifin
Created March 22, 2021 16:13
Show Gist options
  • Save brianhanifin/e24cd0f4e2965b04b2f1c628e13c29d3 to your computer and use it in GitHub Desktop.
Save brianhanifin/e24cd0f4e2965b04b2f1c628e13c29d3 to your computer and use it in GitHub Desktop.
WyzeAPI Insomnia Export
_type: export
__export_format: 4
__export_date: 2021-03-22T16:06:42.339Z
__export_source: insomnia.desktop.app:v2021.1.1
resources:
- _id: req_1f2db3a005854f89a4b26df6ab09c3c8
parentId: fld_88f6d676676a48cfa5c55d78c2f3d917
modified: 1616169230508
created: 1616101246240
url: https://auth-prod.api.wyze.com/user/login
name: /user/login
description: ""
method: POST
body:
mimeType: application/json
text: |-
{
"nonce": "{{ _.nonce }}",
"email": "{{ _.email }}",
"password": "{{ _.wyzeapi_password }}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_42b999e7a55645e78206e7aa8de04ae5
- name: requestid
value: "{{ _.nonce }}"
description: ""
id: pair_0ae0d753bbb14429884b6d3ca46debf2
- name: signature2
value: "{{ _.signature2 }}"
description: ""
id: pair_2f36a710fd10415aa8815aa29d63d735
authentication: {}
metaSortKey: -1616101246240
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: fld_88f6d676676a48cfa5c55d78c2f3d917
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616101129312
created: 1616096070473
name: Vacuum
description: ""
environment:
api_key: Rck......iSEm
app_id: 9319141212m2ik
phoneid: 0f003e54-5054-4771-acd5-4b178b312f6b
requestid: 1702......12ea532
signature2: f7468......8c7d4
access_token: ""
content-type: application/json; charset=utf-8
content-length: 75
accept-encoding: gzip
user-agent: okhttp/4.7.2
environmentPropertyOrder:
"&":
- api_key
- app_id
- phoneid
- requestid
- signature2
- access_token
- content-type
- content-length
- accept-encoding
- user-agent
metaSortKey: -1616096070473
_type: request_group
- _id: wrk_f5f97221852b416e893b302a03d38058
parentId: null
modified: 1616087361203
created: 1616087361203
name: WyzeAPI
description: ""
scope: collection
_type: workspace
- _id: req_601aaef588964283911bb533eef97dae
parentId: fld_88f6d676676a48cfa5c55d78c2f3d917
modified: 1616099481965
created: 1616099432649
url: https://wyze-general-api.wyzecam.com/v1/user/get_object_list
name: /v1/user/get_object_list
description: ""
method: POST
body:
mimeType: application/json
text: >-
{
"target_pid_list": [],
"phone_id": "{{ _.phone_guid }}",
"app_name": "{{ _.app_name }}",
"app_version": "{{ _.app_version }}",
"device_mac": "{{ _.vacuum1_mac }}",
"device_model": "{{ _.vacuum1_model }}",
"app_ver": "{{ _.app_ver }}",
"phone_system_type": 1,
"ts": "{% now 'millis', '' %}",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"sv": "22bd9023a23b4b0b9977e4297ca100dd",
"access_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLmFjY2Vzc190b2tlbg==::46b', 'always', 60 %}",
"refresh_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnJlZnJlc2hfdG9rZW4=::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_1a2aa90674f347f5a22132b880fc959d
authentication: {}
metaSortKey: -1616099432649
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_15c4ccaccfb74353b24c87328186cbed
parentId: fld_88f6d676676a48cfa5c55d78c2f3d917
modified: 1616101141189
created: 1616096146527
url: https://wyze-general-api.wyzecam.com/v1/user/event
name: /v1/user/event
description: ""
method: POST
body:
mimeType: application/json
text: >-
{
"eventId": "WRV_PAUSE",
"eventType": 1,
"deviceId": "{{ _.phone_guid }}",
"apiKey": "{{ _.api_key }}",
"appId": "9319141212m2ik",
"appVersion": "{{ _.app_version }}",
"osInfo": "ONEPLUS A5000",
"osVersion": "7.1.1",
"logSdk": 100,
"logTime": "{% now 'millis', '' %}",
"nonce": "1610666505868",
"pid": "venp_4c30f812828de875",
"uid": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnVzZXJfY2VudGVyX2lk::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_2306d99df2c44c23950055095def05a1
authentication: {}
metaSortKey: -1616096146527
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_2d5006cd1d03460eb8969f5911b3a0e7
parentId: fld_88f6d676676a48cfa5c55d78c2f3d917
modified: 1616098799654
created: 1616090404180
url: https://api.wyzecam.com/app/v2/device/get_property_list
name: Vacuum1 get_property_list
description: >-
Source:
https://github.com/JoshuaMulliken/ha-wyzeapi/wiki/Wyzecam-API-(unofficial,-reverse-engineered-for-experimental-use-only).#3-get-the-property-list
3. Get the Property List.
URL: POST https://api.wyzecam.com/app/v2/device/get_property_list
JSON payload:
```json
{
"target_pid_list":[],
"phone_id":"bc151f39-787b-4871-be27-5a20fd0a1937",
"device_model": "PIR3U",
"app_name":"com.hualai.WyzeCam",
"app_version":"2.6.62",
"sc":"01dd431d098546f9baf5233724fa2ee2",
"sv":"22bd9023a23b4b0b9977e4297ca100dd",
"device_mac": "777F1FB1",
"app_ver":"com.hualai.WyzeCam___2.6.62",
"phone_system_type":"1",
"ts":"1575955054511",
"access_token": "ACQUIRED_AT_LOGIN",
"refresh_token": "ACQUIRED_AT_LOGIN"
}
```
| Field Key | Field Type | Details
| :--- | :--- | :---
| taraget_pid_list | TBD | TBD
| phone_id | GUID | A unique phone identifiant. For that purpose, you may generate a new GUID. As example, here is a valid GUID : bc151f39-787b-4871-be27-5a20fd0a1937.
| device_model | String | Device model number.
| app_name | String | Mabile App Name. Currenly using com.hualai.WyzeCam.
| app_ver | String | Mobile app version. Currently using com.hualai___2.6.62.
| sc | String (32 char length) | TBD.
| sv | String (32 char length) | TBD.
| device_mac | String | Device Mac.
| app_ver | String | Mobile app version. Curently using com.hualai___2.6.62.
| ts | Time | Current time in milliseconds.
| access_token | String | An access token acquired at login.
| refresh_token | String | An access token acquired at login.
Example with cURL:
> TBD
JSON response example for Motion Sensor:
| PID | Value | Details
| :--- | :--- | :---
| P1302 | 0/1 | 0 = No Motion 1 = Motion
| P1303 | 0/100 | Current reported Battery Voltage.
| P1304 | 0/100 | Current reported RSSI. Lower the Number, the better.
| P5 | 0/1 | 0 = Offline 1 = Online
```json
{
"ts": 1591122613649,
"code": "1",
"msg": "",
"data": {
"property_list": [
{
"pid": "P1",
"value": "0",
"ts": 1588815051461
},
{
"pid": "P1300",
"value": "0",
"ts": 0
},
{
"pid": "P1302",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P1303",
"value": "93",
"ts": 1591122605885
},
{
"pid": "P1304",
"value": "71",
"ts": 1591122605885
},
{
"pid": "P1314",
"value": "1",
"ts": 0
},
{
"pid": "P1315",
"value": "1",
"ts": 0
},
{
"pid": "P1316",
"value": "0",
"ts": 0
},
{
"pid": "P1317",
"value": "0",
"ts": 0
},
{
"pid": "P1318",
"value": "0",
"ts": 0
},
{
"pid": "P1319",
"value": "0",
"ts": 0
},
{
"pid": "P1320",
"value": "0",
"ts": 0
},
{
"pid": "P1325",
"value": "1",
"ts": 0
},
{
"pid": "P1326",
"value": "1",
"ts": 0
},
{
"pid": "P1327",
"value": "0",
"ts": 0
},
{
"pid": "P1328",
"value": "0",
"ts": 0
},
{
"pid": "P1329",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P2",
"value": "0",
"ts": 0
},
{
"pid": "P4",
"value": "1",
"ts": 0
},
{
"pid": "P5",
"value": "1",
"ts": 1591121805351
},
{
"pid": "P6",
"value": "0",
"ts": 0
}
]
}
}
```
method: POST
body:
mimeType: application/json
text: >-
{
"target_pid_list": [],
"phone_id": "{{ _.phone_guid }}",
"app_name": "{{ _.app_name }}",
"app_version": "{{ _.app_version }}",
"device_mac": "{{ _.vacuum1_mac }}",
"device_model": "{{ _.vacuum1_model }}",
"app_ver": "{{ _.app_ver }}",
"phone_system_type": 1,
"ts": "{% now 'millis', '' %}",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"sv": "22bd9023a23b4b0b9977e4297ca100dd",
"access_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLmFjY2Vzc190b2tlbg==::46b', 'always', 60 %}",
"refresh_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnJlZnJlc2hfdG9rZW4=::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_102df4e9d7dc40cab84135feb49cebe2
authentication: {}
metaSortKey: -1616091762216
isPrivate: false
settingStoreCookies: false
settingSendCookies: false
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_4645809cbeb5448ea731743d1d68f4d4
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616101991329
created: 1616087453959
url: https://api.wyzecam.com/app/user/login
name: /app/user/login
description: >
Source:
https://github.com/JoshuaMulliken/ha-wyzeapi/wiki/Wyzecam-API-(unofficial,-reverse-engineered-for-experimental-use-only).#1-login-method
1. Login method.
URL POST: https://api.wyzecam.com/app/user/login
JSON payload :
```json
{
"phone_id":"bc151f39-787b-4871-be27-5a20fd0a1937",
"app_name":"com.hualai.WyzeCam",
"app_ver":"com.hualai.WyzeCam___2.6.62",
"app_version":"2.6.62",
"sc":"9f275790cab94a72bd206c8876429f3c",
"sv":"41267de22d1847c8b99bfba2658f88d7",
"ts":"1575955440030",
"password":"c991ddddfaed476feced186ae0f3428ac",
"user_name":"email@domain.com",
"two_factor_auth":"",
"phone_system_type":"1",
"access_token": ""
}
```
| Field Key | Field Type | Details |
| :--- | :--- | :--- |
| phone_id | GUID | A unique phone identifier. For that purpose, you may generate a new GUID. As example, here is a valid GUID : bc151f39-787b-4871-be27-5a20fd0a1937. |
| app_name | String | Mobile App Name. Currently using com.hualai.WyzeCam. |
| app_ver | String | Mobile app version. Currently using com.hualai___2.6.62. |
| sc | String (32 char length) | TBD. |
| sv | String (32 char length) | TBD. |
| ts | Time | Current time in milliseconds. |
| user_name | String | Your Wyzecam email. |
| password | String | Your Wyzecam password. Hash is made of MD5(MD5(password)). |
| access_token | String | For the login request, this field is empty. Upon successful login, the access_token is returned as a JSON value. |
Example with cURL:
> TBD
JSON response example :
```json
{
"ts": 1591107521474,
"code": "1",
"msg": "",
"data": {
"user_center_id": "368d248673fa3a859ae4334244bb767b",
"access_token": "access_token",
"refresh_token": "refresh_token"
}
}
```
JSON login error :
```json
{
"ts": 1591107468085,
"code": "2000",
"msg": "UserNameOrPasswordError",
"data": {}
}
```
JSON account locked error :
> TBD
method: POST
body:
mimeType: application/json
text: |-
{
"phone_id": "{{ _.phone_guid }}",
"phone_system_type": 1,
"app_name": "{{ _.app_name }}",
"app_ver": "{{ _.app_ver }}",
"app_version": "{{ _.app_version }}",
"password": "{{ _.password_md5_md5 }}",
"user_name": "{{ _.email }}",
"two_factor_auth": "",
"sc": "9f275790cab94a72bd206c8876429f3c",
"sv": "41267de22d1847c8b99bfba2658f88d7",
"ts": "{% now 'millis', '' %}",
"access_token": ""
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_be87bb570f434d1f956780f3fc045076
authentication: {}
metaSortKey: -1616087453959
isPrivate: false
settingStoreCookies: false
settingSendCookies: false
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_3a488e620e2d4d5685acadf06aced390
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616093154916
created: 1616087651246
url: https://api.wyzecam.com/app/v2/home_page/get_object_list
name: /app/v2/home_page/get_object_list
description: >-
Source:
https://github.com/JoshuaMulliken/ha-wyzeapi/wiki/Wyzecam-API-(unofficial,-reverse-engineered-for-experimental-use-only).#2-list-devices-get-a-list-of-wyze-devices
2. List devices (get a list of Wyze Devices).
URL: POST https://api.wyzecam.com/app/v2/home_page/get_object_list
JSON payload:
```json
{
"sv": "01463873df804629b15694df13126d31",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"ts": 1525365683583,
"app_ver": "com.hualai.WyzeCam___1.3.116",
"phone_id": "bc151f39-787b-4871-be27-5a20fd0a1937",
"access_token": "ACQUIRED_AT_LOGIN",
"refresh_token": "ACQUIRED_AT_LOGIN"
}
```
| Field Key | Field Type | Details
| :--- | :--- | :---
| sc | String (32 char length) | TBD.
| sv | String (32 char length) | TBD.
| app_ver | String | Mobile app version. Currently using com.hualai___1.1.52.
| ts | Time | Current time in milliseconds.
| access_token | String | An access token acquired at login.
| refresh_token | String | An access token acquired at login.
| phone_id| GUID | A unique phone identifier. For that purpose, you may generate a new GUID. As example, here is a valid GUID : bc151f39-787b-4871-be27-5a20fd0a1937.
Example with cURL:
> curl -H 'Host: api.wyzecam.com:8443' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'User-Agent: HLHome/1.3.116 (iPhone; iOS 11.3; Scale/3.00)' -H 'Accept-Language: en-US;q=1' --data-binary '{"sv":"01463873df804629b15694df13126d31","sc":"01dd431d098546f9baf5233724fa2ee2","ts":1525365683583,"app_ver":"com.hualai.WyzeCam___1.1.52","phone_id":"bc151f39-787b-4871-be27-5a20fd0a1937","access_token":"ACQUIRED_AT_LOGIN"}' --compressed 'https://api.wyzecam.com/app/v2/home_page/get_object_list'
JSON response example:
```json
{
"ts": 1525365690660,
"code": "1",
"msg": "",
"data": {
"device_info_list": [{
"mac": "CAMERA_MAC_ADDRESS",
"enr": "TBD",
"p2p_id": "PEER_TO_PEER_IDENTIFIER",
"p2p_type": 3,
"product_model": "WYZEC1-JZ",
"product_type": "Camera",
"hardware_ver": "0.0.0.0",
"firmware_ver": "4.9.1.42",
"role": 1,
"nickname": "LilCam",
"device_logo": "",
"device_timezone": "",
"binding_user_nickname": "ACCOUNT_EMAIL_ADDRESS",
"ssid": "CAMERA_CONNECTED_WIFI_SSIDE",
"ip": "CAMERA_IP_ADDRESS",
"conn_state": 1,
"power_switch": 1
}],
"device_sort_list": [{
"device_id": "CAMERA_ID",
"product_model": "WYZEC1-JZ"
}]
}
}
```
method: POST
body:
mimeType: application/json
text: >-
{
"app_ver": "{{ _.app_ver }}",
"phone_id": "{{ _.phone_guid }}",
"ts": "{% now 'millis', '' %}",
"sv": "01463873df804629b15694df13126d31",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"access_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLmFjY2Vzc190b2tlbg==::46b', 'always', 60 %}",
"refresh_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnJlZnJlc2hfdG9rZW4=::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_176381aca5894217adc3b83e0c08bcb1
authentication: {}
metaSortKey: -1616087453946.5
isPrivate: false
settingStoreCookies: false
settingSendCookies: false
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_55628a1cbf57430ca3007c0999117668
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616295442492
created: 1616295395030
url: https://api.wyzecam.com/app/v2/device/get_property_list
name: band1 get_property_list
description: >-
Source:
https://github.com/JoshuaMulliken/ha-wyzeapi/wiki/Wyzecam-API-(unofficial,-reverse-engineered-for-experimental-use-only).#3-get-the-property-list
3. Get the Property List.
URL: POST https://api.wyzecam.com/app/v2/device/get_property_list
JSON payload:
```json
{
"target_pid_list":[],
"phone_id":"bc151f39-787b-4871-be27-5a20fd0a1937",
"device_model": "PIR3U",
"app_name":"com.hualai.WyzeCam",
"app_version":"2.6.62",
"sc":"01dd431d098546f9baf5233724fa2ee2",
"sv":"22bd9023a23b4b0b9977e4297ca100dd",
"device_mac": "777F1FB1",
"app_ver":"com.hualai.WyzeCam___2.6.62",
"phone_system_type":"1",
"ts":"1575955054511",
"access_token": "ACQUIRED_AT_LOGIN",
"refresh_token": "ACQUIRED_AT_LOGIN"
}
```
| Field Key | Field Type | Details
| :--- | :--- | :---
| taraget_pid_list | TBD | TBD
| phone_id | GUID | A unique phone identifiant. For that purpose, you may generate a new GUID. As example, here is a valid GUID : bc151f39-787b-4871-be27-5a20fd0a1937.
| device_model | String | Device model number.
| app_name | String | Mabile App Name. Currenly using com.hualai.WyzeCam.
| app_ver | String | Mobile app version. Currently using com.hualai___2.6.62.
| sc | String (32 char length) | TBD.
| sv | String (32 char length) | TBD.
| device_mac | String | Device Mac.
| app_ver | String | Mobile app version. Curently using com.hualai___2.6.62.
| ts | Time | Current time in milliseconds.
| access_token | String | An access token acquired at login.
| refresh_token | String | An access token acquired at login.
Example with cURL:
> TBD
JSON response example for Motion Sensor:
| PID | Value | Details
| :--- | :--- | :---
| P1302 | 0/1 | 0 = No Motion 1 = Motion
| P1303 | 0/100 | Current reported Battery Voltage.
| P1304 | 0/100 | Current reported RSSI. Lower the Number, the better.
| P5 | 0/1 | 0 = Offline 1 = Online
```json
{
"ts": 1591122613649,
"code": "1",
"msg": "",
"data": {
"property_list": [
{
"pid": "P1",
"value": "0",
"ts": 1588815051461
},
{
"pid": "P1300",
"value": "0",
"ts": 0
},
{
"pid": "P1302",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P1303",
"value": "93",
"ts": 1591122605885
},
{
"pid": "P1304",
"value": "71",
"ts": 1591122605885
},
{
"pid": "P1314",
"value": "1",
"ts": 0
},
{
"pid": "P1315",
"value": "1",
"ts": 0
},
{
"pid": "P1316",
"value": "0",
"ts": 0
},
{
"pid": "P1317",
"value": "0",
"ts": 0
},
{
"pid": "P1318",
"value": "0",
"ts": 0
},
{
"pid": "P1319",
"value": "0",
"ts": 0
},
{
"pid": "P1320",
"value": "0",
"ts": 0
},
{
"pid": "P1325",
"value": "1",
"ts": 0
},
{
"pid": "P1326",
"value": "1",
"ts": 0
},
{
"pid": "P1327",
"value": "0",
"ts": 0
},
{
"pid": "P1328",
"value": "0",
"ts": 0
},
{
"pid": "P1329",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P2",
"value": "0",
"ts": 0
},
{
"pid": "P4",
"value": "1",
"ts": 0
},
{
"pid": "P5",
"value": "1",
"ts": 1591121805351
},
{
"pid": "P6",
"value": "0",
"ts": 0
}
]
}
}
```
method: POST
body:
mimeType: application/json
text: >-
{
"target_pid_list": [],
"phone_id": "{{ _.phone_guid }}",
"app_name": "{{ _.app_name }}",
"app_version": "{{ _.app_version }}",
"device_mac": "{{ _.band1_mac }}",
"device_model": "{{ _.band1_model }}",
"app_ver": "{{ _.app_ver }}",
"phone_system_type": 1,
"ts": "{% now 'millis', '' %}",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"sv": "22bd9023a23b4b0b9977e4297ca100dd",
"access_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLmFjY2Vzc190b2tlbg==::46b', 'always', 60 %}",
"refresh_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnJlZnJlc2hfdG9rZW4=::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_102df4e9d7dc40cab84135feb49cebe2
authentication: {}
metaSortKey: -1613044811063.25
isPrivate: false
settingStoreCookies: false
settingSendCookies: false
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: req_c615552bb74e42589ebe22057413db62
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616295432167
created: 1616295420191
url: https://api.wyzecam.com/app/v2/device/get_property_list
name: outdoorplug1 get_property_list
description: >-
Source:
https://github.com/JoshuaMulliken/ha-wyzeapi/wiki/Wyzecam-API-(unofficial,-reverse-engineered-for-experimental-use-only).#3-get-the-property-list
3. Get the Property List.
URL: POST https://api.wyzecam.com/app/v2/device/get_property_list
JSON payload:
```json
{
"target_pid_list":[],
"phone_id":"bc151f39-787b-4871-be27-5a20fd0a1937",
"device_model": "PIR3U",
"app_name":"com.hualai.WyzeCam",
"app_version":"2.6.62",
"sc":"01dd431d098546f9baf5233724fa2ee2",
"sv":"22bd9023a23b4b0b9977e4297ca100dd",
"device_mac": "777F1FB1",
"app_ver":"com.hualai.WyzeCam___2.6.62",
"phone_system_type":"1",
"ts":"1575955054511",
"access_token": "ACQUIRED_AT_LOGIN",
"refresh_token": "ACQUIRED_AT_LOGIN"
}
```
| Field Key | Field Type | Details
| :--- | :--- | :---
| taraget_pid_list | TBD | TBD
| phone_id | GUID | A unique phone identifiant. For that purpose, you may generate a new GUID. As example, here is a valid GUID : bc151f39-787b-4871-be27-5a20fd0a1937.
| device_model | String | Device model number.
| app_name | String | Mabile App Name. Currenly using com.hualai.WyzeCam.
| app_ver | String | Mobile app version. Currently using com.hualai___2.6.62.
| sc | String (32 char length) | TBD.
| sv | String (32 char length) | TBD.
| device_mac | String | Device Mac.
| app_ver | String | Mobile app version. Curently using com.hualai___2.6.62.
| ts | Time | Current time in milliseconds.
| access_token | String | An access token acquired at login.
| refresh_token | String | An access token acquired at login.
Example with cURL:
> TBD
JSON response example for Motion Sensor:
| PID | Value | Details
| :--- | :--- | :---
| P1302 | 0/1 | 0 = No Motion 1 = Motion
| P1303 | 0/100 | Current reported Battery Voltage.
| P1304 | 0/100 | Current reported RSSI. Lower the Number, the better.
| P5 | 0/1 | 0 = Offline 1 = Online
```json
{
"ts": 1591122613649,
"code": "1",
"msg": "",
"data": {
"property_list": [
{
"pid": "P1",
"value": "0",
"ts": 1588815051461
},
{
"pid": "P1300",
"value": "0",
"ts": 0
},
{
"pid": "P1302",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P1303",
"value": "93",
"ts": 1591122605885
},
{
"pid": "P1304",
"value": "71",
"ts": 1591122605885
},
{
"pid": "P1314",
"value": "1",
"ts": 0
},
{
"pid": "P1315",
"value": "1",
"ts": 0
},
{
"pid": "P1316",
"value": "0",
"ts": 0
},
{
"pid": "P1317",
"value": "0",
"ts": 0
},
{
"pid": "P1318",
"value": "0",
"ts": 0
},
{
"pid": "P1319",
"value": "0",
"ts": 0
},
{
"pid": "P1320",
"value": "0",
"ts": 0
},
{
"pid": "P1325",
"value": "1",
"ts": 0
},
{
"pid": "P1326",
"value": "1",
"ts": 0
},
{
"pid": "P1327",
"value": "0",
"ts": 0
},
{
"pid": "P1328",
"value": "0",
"ts": 0
},
{
"pid": "P1329",
"value": "0",
"ts": 1591122605885
},
{
"pid": "P2",
"value": "0",
"ts": 0
},
{
"pid": "P4",
"value": "1",
"ts": 0
},
{
"pid": "P5",
"value": "1",
"ts": 1591121805351
},
{
"pid": "P6",
"value": "0",
"ts": 0
}
]
}
}
```
method: POST
body:
mimeType: application/json
text: >-
{
"target_pid_list": [],
"phone_id": "{{ _.phone_guid }}",
"app_name": "{{ _.app_name }}",
"app_version": "{{ _.app_version }}",
"device_mac": "{{ _.outdoorplug1_mac }}",
"device_model": "{{ _.outdoorplug1_model }}",
"app_ver": "{{ _.app_ver }}",
"phone_system_type": 1,
"ts": "{% now 'millis', '' %}",
"sc": "01dd431d098546f9baf5233724fa2ee2",
"sv": "22bd9023a23b4b0b9977e4297ca100dd",
"access_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLmFjY2Vzc190b2tlbg==::46b', 'always', 60 %}",
"refresh_token": "{% response 'body', 'req_4645809cbeb5448ea731743d1d68f4d4', 'b64::JC5kYXRhLnJlZnJlc2hfdG9rZW4=::46b', 'always', 60 %}"
}
parameters: []
headers:
- name: Content-Type
value: application/json
id: pair_102df4e9d7dc40cab84135feb49cebe2
authentication: {}
metaSortKey: -1606959525303
isPrivate: false
settingStoreCookies: false
settingSendCookies: false
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
_type: request
- _id: env_79fc8e8e2d272e6b5d270f35db40f05981dcb18c
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616092795855
created: 1616087361418
name: Base Environment
data:
email: bri...@...net
wyzeapi_password: 12345678
dataPropertyOrder:
"&":
- email
- wyzeapi_password
color: null
isPrivate: false
metaSortKey: 1616087361418
_type: environment
- _id: jar_79fc8e8e2d272e6b5d270f35db40f05981dcb18c
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616089121246
created: 1616087361420
name: Default Jar
cookies: []
_type: cookie_jar
- _id: spc_f27e72b893fc4f51bb266a8ee182c742
parentId: wrk_f5f97221852b416e893b302a03d38058
modified: 1616087361210
created: 1616087361210
fileName: WyzeAPI
contents: ""
contentType: yaml
_type: api_spec
- _id: env_3be2f0cb12344f06afebf998583b6724
parentId: env_79fc8e8e2d272e6b5d270f35db40f05981dcb18c
modified: 1616295369873
created: 1616089059822
name: WyzeAPI
data:
app_name: com.hualai.WyzeCam
app_ver: com.hualai.WyzeCam___2.6.62
app_version: 2.6.62
password: "{{ _.wyzeapi_password }}"
password_md5: "{% hash 'md5', 'hex', _.password %}"
password_md5_md5: "{% hash 'md5', 'hex', _.password_md5 %}"
nonce: "{% now 'millis', '' %}"
salt: "{% hash 'md5', 'hex', _.app_ver %}"
signature2: ""
phone_guid: bc151f39-787b-4871-be27-5a20fd0a1937
band1_model: RY.HP1
band1_mac: RY.HP1.637827
camera1_mac: 2CAA8E077DE8
camera1_model: WYZEC1-JZ
outdoorplug1_mac: 2CAA8EF0A329
outdoorplug1_model: WLPPO
vacuum1_mac: JA_RO2_7C78B20A64F3
vacuum1_model: JA_RO2
dataPropertyOrder:
"&":
- app_name
- app_ver
- app_version
- password
- password_md5
- password_md5_md5
- nonce
- salt
- signature2
- phone_guid
- band1_model
- band1_mac
- camera1_mac
- camera1_model
- outdoorplug1_mac
- outdoorplug1_model
- vacuum1_mac
- vacuum1_model
color: null
isPrivate: false
metaSortKey: 1616089059822
_type: environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment