Get a List of Locks with Offline Password Feature

Last Updated on : 2021-07-16 07:39:21download

Get a list of door locks under a specified device with the offline password feature.

API address

GET: /v1.0/devices/{device_id}/offline-pwd-locks

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Return parameter

Parameter name Type Description
result List The list of door locks with an offline password feature for the same home.

Description of result

Parameter name Type Description
id String The device ID.
owner_id String The ID of the home where a specified device is deployed. The value is a string of digits.
product_id String The product ID.
status Boolean Status.
name String The device name.
custom_name String The custom device name.
uid String The ID of the user who performs device pairing.
online Boolean Indicates whether the device is online.
icon String The device icon.

Request example

GET: /v1.0/devices/6cdb36b2e489885fa57lzm/offline-pwd-locks

Return example

{ "result": [ { "owner_id": "8704463", "icon": "", "uid": "ay1576552611051nGD7y", "custom_name": "", "product_id": "pr8o1tue", "name": "New standard Zigbee door lock-vdevo", "online": true, "id": "vdevo162346372935455", "status": true }, { "owner_id": "8704463", "icon": "", "uid": "ay1576552611051nGD7y", "custom_name": "", "product_id": "jaatleq0", "name": "Bluetooth door lock v1.0.8-vdevo", "online": true, "id": "vdevo160456524122548", "status": true } ], "t": 1623746312141, "success": true }

Error code

For more information, see error code.