Query Devices Supporting Scene

Last Updated on : 2023-12-07 03:33:49download

Based on the home ID, query a list of devices that support scenes in the specified home.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
home_idStringuritrueThe home ID.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
device_idStringThe device ID.
uuidStringThe universally unique identifier (UUID) of the specified device.
nameStringThe name.
home_idStringThe home ID.
product_idStringThe product ID.

Request example

GET: /v1.0/homes/242****/scene/devices

Return example

{
    "tid": "aeb798b67d3b11eeaf40161d72836dc2",
    "result": [
        {
            "device_id": "6cf0ca9****ab76bfjntj",
            "uuid": "tuyaac****14d253",
            "product_id": "tu****14d",
            "name": "Fingerbot Plus",
            "home_id": "169****15"
        },
        {
            "device_id": "6856054****b62e90e",
            "uuid": "685605****3eb62e90e",
            "product_id": "tu****143",
            "name": "Strip Lights in Bedroom",
            "home_id": "169****15"
        }
    ],
    "t": 1699340578365,
    "success": true
}

Error code

For more information, see error code.