获取场景联动详情
开发中GET
/api/v1/scene_automations/detail/{id}请求参数
Path 参数
id
string
必需
示例值:
59e6fab9-448f-26bb-b608-3566b716ff72
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
actions
array [object {5}]
必需
creator
string
必需
description
string
必需
enabled
string
必需
id
string
必需
name
string
必需
tenant_id
string
必需
trigger_condition_groups
array [array]
必需
updator
string
必需
示例
{
"code": 200,
"message": "get scene detail successfully",
"data": {
"actions": [
{
"action_param": "temperature",
"action_param_type": "TEL",
"action_target": "设备id",
"action_type": "10",
"action_value": "20"
},
{
"action_param": "temperature",
"action_param_type": "TEL",
"action_target": "设备配置id",
"action_type": "11",
"action_value": "20"
},
{
"action_param": "",
"action_param_type": "",
"action_target": "场景id",
"action_type": "20",
"action_value": ""
},
{
"action_param": "",
"action_param_type": "",
"action_target": "告警id",
"action_type": "30",
"action_value": ""
}
],
"creator": "",
"description": "xxx",
"enabled": "Y",
"id": "59e6fab9-448f-26bb-b608-3566b716ff72",
"name": "222",
"tenant_id": "2f4306df",
"trigger_condition_groups": [
[
{
"params": "22:00+08:00",
"task_type": "HOUR"
}
],
[
{
"params": "11:22:00+08:00",
"task_type": "DAY"
}
],
[
{
"params": "123|11:22:00+07:00",
"task_type": "WEEK"
}
],
[
{
"params": "12T11:22:00+08:00",
"task_type": "MONTH"
}
],
[
{
"execution_time": "2024-04-01T11:22:00Z",
"expiration_time": "2024-04-01T11:22:00Z"
}
],
[
{
"group_id": "f8d3f495-4f81-69f1-2461-145b9f3a4f60",
"id": "d6159add-f8ad-2e9d-3189-dc931bcdd85a",
"trigger_conditions_type": "10",
"trigger_operator": ">",
"trigger_param": "temperature",
"trigger_param_type": "TEL",
"trigger_source": "设备id",
"trigger_value": "20"
}
],
[
{
"group_id": "ee31682e-5079-b3e3-d8a4-e681e558fe29",
"id": "2aa1c838-28dd-2b92-5305-c3762ab147bd",
"trigger_conditions_type": "11",
"trigger_operator": ">",
"trigger_param": "temperature",
"trigger_param_type": "TEL",
"trigger_source": "设备配置id",
"trigger_value": "20"
},
{
"group_id": "ee31682e-5079-b3e3-d8a4-e681e558fe29",
"id": "b191d529-2913-0c8e-6d72-106e5dd6347c",
"trigger_conditions_type": "22",
"trigger_operator": null,
"trigger_param": null,
"trigger_param_type": null,
"trigger_source": null,
"trigger_value": "137|22:01:00+08:00|23:00:00+08:00"
}
]
],
"updator": "e7cc3359-54f3-e23b-801b-e3b82446378e"
}
}
最后修改时间: 10 个月前