执行场景
接口地址:/v2/cep/enduserapi/sceneExecute
请求方式:POST
请求数据类型:application/json
响应数据类型:*/*
接口描述:
执行场景
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
sceneId | 场景ID | body | true | string | |
Authorization | header | false | string | ||
fid | 家庭ID,开启家居模式必填,否则不填 | body | false | string |
响应状态:
状态码 | 说明 | schema |
---|---|---|
200 | OK | ApiResult«ExecutionResultCO» |
201 | Created | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found |
响应参数:
参数名称 | 参数说明 | 类型 | schema |
---|---|---|---|
code | integer(int32) | integer(int32) | |
data | ExecutionResultCO | ExecutionResultCO | |
callType | 调用方式 | string | |
executeResult | 执行结果。成功:true,失败:false | boolean | |
executeTime | 执行时间 | integer(int64) | |
executionId | 执行记录ID | integer(int64) | |
failActionList | 失败原因 | array | ExecuteFailedCO |
deviceKey | string | ||
deviceName | string | ||
deviceType | integer | ||
logoImage | string | ||
productKey | string | ||
reason | string | ||
failCount | 失败数量 | AtomicInteger | AtomicInteger |
andDecrement | integer | ||
andIncrement | integer | ||
successCount | 成功数量 | AtomicInteger | AtomicInteger |
andDecrement | integer | ||
andIncrement | integer | ||
extMsg | string | ||
msg | string |
响应示例:
javascript
{
"code": 0,
"data": {
"callType": "",
"executeResult": true,
"executeTime": 0,
"executionId": 0,
"failActionList": [
{
"deviceKey": "",
"deviceName": "",
"deviceType": 0,
"logoImage": "",
"productKey": "",
"reason": ""
}
],
"failCount": {
"andDecrement": 0,
"andIncrement": 0
},
"successCount": {
"andDecrement": 0,
"andIncrement": 0
}
},
"extMsg": "",
"msg": ""
}