Last Updated on : 2023-12-07 03:33:57
This API applies to scene switch devices. Query a list of scenes bound with the specified device based on the device ID.
GET: /v1.0/devices/{device_id}/scenes
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Parameter name | Type | Description |
---|---|---|
result | Map | The returned result. |
GET: /v1.0/devices/6c294c2ad22e4fac2f7qb***/scenes
{
"result": {
"device_id": "vdevo15758****13095",
"scenes": [
{
"code": "scene_2",
"scene_id": "ilCZllmb***POY36",
"name": "Test of Adding Scene G-Turn off Light",
"value": "scene"
},
{
"code": "scene_1",
"scene_id": "EqFkQ79u***jlkTm",
"name": "Scene of Turning on Light",
"value": "scene"
}
]
},
"t": 1576036860284,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback