List scenes
GET /clip/v2/resource/scene
List scenes on the gateway. To filter by room, pass the room UUID in room_uuid, as shown in the request body below.
Example request
json
{
"room_uuid": "string"
}Parameters
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
room_uuid | body | string | Yes | Room ID |
Example response
json
{
"code": 0,
"data": {
"arr": [
{
"id": "3EBD2DB5-B946-4BBA-B678-C7B7C6BA4D0F",
"type": "scene",
"parent_id": "2F84620F-C289-4AA3-8A1E-D6DE9C33D1F5",
"parent_type": "group_light",
"name": "端午龙舟",
"scene_type": 2,
"is_active": 1,
"picture_id": "E423E110-0398-4FFB-9E3D-E8E3A1CEEEEB",
"picture_type": "file",
"picture_url": "http://192.168.41.110:8000/20240829_173416_E423E110-0398-4FFB-9E3D-E8E3A1CEEEEB.png",
"icon": "",
"background": "",
"sequence": 0,
"colors": [
4293551661,
4292219417,
4293890993,
4283345655,
4288215906
]
}
],
"len": 1,
"obj": {}
},
"msg": "success"
}Responses
| Status code | Meaning |
|---|---|
| 200 | OK |
Response fields
HTTP 200 OK
| Field | Type | Required | Description |
|---|---|---|---|
code | integer | Yes | Result code. |
msg | string | Yes | Response message. |
data | object | Yes | Response payload. |
data.arr | object[] | Yes | Returned resources. |
data.arr[].id | string | Yes | Scene ID |
data.arr[].type | string | Yes | Always scene. |
data.arr[].parent_id | string | Yes | Parent resource |
data.arr[].parent_type | string | Yes | Always group_light. |
data.arr[].name | string | Yes | Name |
data.arr[].scene_type | integer | Yes | 1 for a color scene; 2 for an image scene. |
data.arr[].is_active | integer | Yes | 1 if active; otherwise 0. |
data.arr[].picture_id | string | Yes | Image. Used for image scenes. |
data.arr[].picture_type | string | Yes | Always file. |
data.arr[].picture_url | string | Yes | Image URL |
data.arr[].icon | string | Yes | For BweeApp use only. |
data.arr[].background | string | Yes | For BweeApp use only. |
data.arr[].sequence | integer | Yes | For BweeApp use only. |
data.arr[].colors | integer[] | Yes | For BweeApp use only. |