There are two possible ways to discover Ezviz cameras:
The plugin script that handles the camera discovery is:
It has one mandatory parameter: action.
The possible values for the action parameter are:
After the plugin finds a camera and creates a device, it will broadcast this info to the websocket:
{
"id": "ui_broadcast",
"msg_subclass": "hub.device.added",
"result": {
"_id": "5efda8a913f97f257a614db9",
"batteryPowered": false,
"category": "camera",
"deviceTypeId": "ezviz_camera",
"gatewayId": "5ef4c5baabd97f6ee8c55e5f",
"info": {
"firmware": "V5.2.7 build 200528",
"mac": "44:47:cc:0d:df:03",
"manufacturer": "Ezlo",
"model": "VistaCam702",
"serial_number": "85000001",
"uuid": "e9b92ac0-df8d-11e9-91cd-273af3fa6fc6"
},
"name": "VistaCam702_85000001",
"parentDeviceId": "",
"reachable": true,
"ready": true,
"roomId": "",
"security": "no",
"serviceNotification": false,
"status": "idle",
"subcategory": "indoor_cam",
"syncNotification": true,
"type": "camera"
}
}