English
English
简体中文
Contact Us
Register
Log In

Query the list of devices under the family

Last Updated on : 2022-04-29 05:34:43download

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

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idLonguritrueFamily ID

Return parameter

Parameter nameTypeDescription
resultList

Description of result

Parameter nameTypeDescription
idStringDevice ID
uuidStringUnique Device ID
uidStringUser ID
biz_typeIntegerApp bizType
nameStringDevice Name
time_zoneStringTime Zone
ipStringDevice ip
local_keyStringKey
subBooleanJudging whether it is a sub-device, true is true, false is not
modelStringProduct Model
create_timeLongThe time when the device was first allocated to the network
update_timeLongDevice status update time
active_timeLongThe last time the device was networked
statusListDevice function status
owner_idStringDevice Owner ID
product_idStringProduct ID
product_nameStringProduct Name
categoryStringProduct Category
iconStringDevice Icon
onlineBooleanWhether online, true online, false not online
node_idStringExists when sub=true, that is, the sub-device stores the value

Description of status

Parameter nameTypeDescription
codeStringFunction code
valueObjectFunction Value

Request example

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

Error code

For more information, see error code.