文档
测试

初始化自动控制

POST
autoControlGet

响应参数

参数名
类型
描述
必填
autoStatus
Int
状态 0. 禁用 1. 启用
必填
autoControl
[Obect]
总动控制
必填
taskId
Long
自动任务id
必填
enable
Int
使能(0关闭,1启用)
必填
taskName
String
任务名称
必填
timeMode
Int
模式(0每天执行一次,1某天执行一次,2某段时间内循环执行)
必填
excuteTime
String
执行时间,必填(HH:mm:ss)
必填
excuteDate
String
执行日期,timeMode为1时有值(yyyy-MM-dd)
必填
startTime
String
开始日期,timeMode为2时有值(yyyy-MM-dd)
必填
stopTime
String
结束日期,timeMode为2时有值(yyyy-MM-dd)
必填
taskType
Int
任务类型
必填
isExcute
Int
是否执行(0未执行,1执行)
必填
excuteDetail
String
任务详情
必填
excutes
[Object]
任务执行详情
必填
channel
String
通道号
必填
name
String
名称(任务名称 , 默认为 通道名称)
必填
sort
Int
排序
必填
value
String
设置值(传感器需要设置数值时使用,无参数设置设备,值为 FF,控制型可设置流速设备比如肥泵,需要用到这个值)
必填
status
Int
状态(0关闭,1开启,0000通道时该参数值失效)
必填

说明 / 示例

{ "autoStatus": 0, "autoControl": { "taskId": 0, "eqCode": "CODE123", "enable": 1, "taskName": "定时任务1", "timeMode": 0, "excuteTime": "12:00:00", "excuteDate": "2021-05-01", "startTime": "2021-05-01", "stopTime": "2022-05-01", "taskType": 0, "isExcute": 0, "excuteDetail": "", "excutes": [ { "channel": "3001", "name": "开启电磁阀1", "sort": 0, "value": "FF", "status": 1 }, { "channel": "0000", "name": "延迟1分钟", "sort": 1, "value": "1", "status": -1 }, { "channel": "3001", "name": "关闭电磁阀1", "sort": 2, "value": "FF", "status": 0 }, { "channel": "3002", "name": "打开电磁阀2", "sort": 3, "value": "FF", "status": 1 }, { "channel": "0000", "name": "延迟1分钟", "sort": 4, "value": "1", "status": -1 }, { "channel": "3002", "name": "关闭电磁阀2", "sort": 5, "value": "FF", "status": 0 } ] } }