Query the list of devices under the family

Last Updated on : 2023-06-01 06:20:18download

Query the device list under the family according to the family ID.

API address

GET: /v1.0/homes/{home_id}/devices

Request parameter

Parameter name Type IN Required Description
home_id Long uri true Family ID

Return parameter

Parameter name Type Description
result List

Description of result

Parameter name Type Description
id String Device ID
uuid String Unique Device ID
uid String User ID
biz_type Integer App bizType
name String Device Name
time_zone String Time Zone
ip String Device ip
local_key String Key
sub Boolean Judging whether it is a sub-device, true is true, false is not
model String Product Model
create_time Long The time when the device was first allocated to the network
update_time Long Device status update time
active_time Long The last time the device was networked
status List Device function status
owner_id String Device Owner ID
product_id String Product ID
product_name String Product Name
category String Product Category
icon String Device Icon
online Boolean Whether online, true online, false not online
node_id String Exists when sub=true, that is, the sub-device stores the value

Description of status

Parameter name Type Description
code String Function code
value Object Function Value

Request example

GET: /v1.0/homes/3196002/devices
{}

Error code

For more information, see error code.