获取自动继电器设置信息
# 获取自动继电器设置信息
Path: /api/autorelay.json
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 获取自动继电器设置信息,是否自动开关,根据哪些值来开关等。
返回数据
| 名称 | 类型 | 示例 | 描述 |
|---|---|---|---|
| enbale | int | 1 | 是否自动控制继电器,1是,0否 |
| relay | int | 1 | 继电器编号,1~3 |
| isHumitureOnBoard | int | 0 | 使用板载/外接温湿度,1/0 |
| humidityLimitEnable | int | 0 | 湿度限制开关,1开,0关 |
| temperatureLimitEnable | int | 0 | 温度限制开关,1开,0关 |
| humidityLimitValue | int | 50 | 湿度阈值,0~100 |
| temperatureLimitValue | int | 40 | 温度阈值 |
| smokeLimitEnbale | int | 0 | 烟雾限制开关,1开,0关 |
| smokeLimitValue | int | 500 | 烟雾阈值 |
响应示例
[{
"enable": 1,
"humidityLimitEnable": 0,
"humidityLimitValue": 0,
"isHumitureOnBoard": 1,
"relay": 1,
"smokeLimitEnable": 0,
"smokeLimitValue": 0,
"temperatureLimitEnable": 0,
"temperatureLimitValue": 0
},
{
"enable": 0,
"humidityLimitEnable": 0,
"humidityLimitValue": 80,
"isHumitureOnBoard": 1,
"relay": 2,
"smokeLimitEnable": 1,
"smokeLimitValue": 500,
"temperatureLimitEnable": 1,
"temperatureLimitValue": 70
},
{
"enable": 0,
"humidityLimitEnable": 0,
"humidityLimitValue": 80,
"isHumitureOnBoard": 1,
"relay": 3,
"smokeLimitEnable": 1,
"smokeLimitValue": 500,
"temperatureLimitEnable": 1,
"temperatureLimitValue": 70
}]