There are two possible ways to discover Ezviz cameras:

  1. Using UDP broadcast
  2. Using DHCP

The plugin script that handles the camera discovery is:

It has one mandatory parameter: action.

The possible values for the action parameter are:

  • udp_discovery : This makes the plugin send an UDP broadcast to find Ezviz cameras on the network.
  • start_dhcp_discovery : This puts the plugin in DHCP discovery mode. The plugin will listen to all DHCP request messages on the network, and if it finds an Ezviz camera, it will create a device for it.
  • stop_dhcp_discovery : This puts the plugin out of DHCP discovery mode; the plugin will stop listening to DHCP request messages.

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"