查询场景详情
接口地址:/v2/cep/enduserapi/selectSceneDetail
请求方式:GET
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
接口描述:
查询场景详情
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
sceneId | 场景ID | query | true | string | |
Authorization | header | false | string | ||
fid | 家庭ID,开启家居模式必填,否则不填 | query | false | string |
响应状态:
状态码 | 说明 | schema |
---|---|---|
200 | OK | ApiResult«场景参数» |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
响应参数:
参数名称 | 参数说明 | 类型 | schema |
---|---|---|---|
code | integer(int32) | integer(int32) | |
data | 场景参数Res | 场景参数Res | |
fid | 家庭ID | string | |
isCommon | 是否常用 | boolean | |
sceneInfo | 场景信息 | 场景信息 | 场景信息 |
icon | 场景图标 | string | |
id | 场景主键ID | integer | |
metaDataList | 联动数据 | array | 联动数据 |
actionList | 执行动作 | array | 执行动作 |
actionId | 执行动作ID | integer | |
code | 物模型标识符 | string | |
dataType | 物模型数据类型 | string | |
id | 物模型功能ID | integer | |
name | 物模型功能名称 | string | |
subName | string | ||
subType | 读写类型 | string | |
type | 物模型功能类型 | string | |
unit | 物模型单位 | string | |
value | 物模型值 | object | |
deviceKey | 设备/群组ID | string | |
deviceName | 设备名称/群组名称 | string | |
deviceType | 设备类型,1:普通设备,2:群组 | integer | |
logoImage | 场景LOGO | string | |
productKey | 产品KEY | string | |
name | 场景名称 | string | |
sceneId | 场景ID | string | |
uid | 终端用户ID | string | |
extMsg | string | ||
msg | string |
响应示例:
javascript
{
"code": 0,
"data": {
"fid": "",
"isCommon": true,
"sceneInfo": {
"icon": "",
"id": 0,
"metaDataList": [
{
"actionList": [
{
"actionId": 0,
"code": "",
"dataType": "",
"id": 0,
"name": "",
"subName": "",
"subType": "",
"type": "",
"unit": "",
"value": {}
}
],
"deviceKey": "",
"deviceName": "",
"deviceType": 0,
"logoImage": "",
"productKey": ""
}
],
"name": "",
"sceneId": "",
"uid": ""
}
},
"extMsg": "",
"msg": ""
}