更新时间:2023-07-06 08:27:18
本文介绍查询一键执行详情的 API。
根据一键执行 ID查询一键执行详情。
GET: /v2.0/iot-03/scenes/{scene_id}
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| scene_id | String | uri | true | 一键执行 ID |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | SceneDetailRes | 返回结果 |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| name | String | 一键执行名称 |
| dsl | SceneDSLRes | 一键执行规则语言。见下方 dsl 详细说明。 |
dsl 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| actions | List | 一键执行动作列表 |
actions 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| execution_type | String | 执行类型 |
| execution_rule | ActionExecutionRuleRes | 执行规则 |
GET: /v2.0/iot-03/scenes/fuNo0KVjeK9e****
参考 错误码。
| 参数名 | 类型 | 说明 | 必填 |
|---|---|---|---|
| actions | List | 自动化动作列表。见actions详细说明。 | 是 |
| 参数名 | 类型 | 说明 | 必填 |
|---|---|---|---|
| execution_type | String | 执行类型: deviceIssue:设备下发 deviceGroupIssue:设备群组下发 delay:延时动作 | 是 |
| execution_rule | Object | 执行规则。见execution_rule详细说明。 | 是 |
1、当execution_type为delay时:
| 参数名 | 类型 | 说明 | 必填 |
|---|---|---|---|
| delay_seconds | Long | 延时时间,取值范围1~5 * 60 * 60,单位:秒。 | 是 |
2、当execution_type为deviceIssue或deviceGroupIssue时:
| 参数名 | 类型 | 说明 | 必填 |
|---|---|---|---|
| execution_id | String | 设备或设备群组 ID | 是 |
| function_code | String | 设备或设备群组指令码 | 是 |
| function_value | Object | 设备或设备群组指令值 | 是 |
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈