Retrieve Relay Settings for Automatic Control
# Retrieve Relay Settings for Automatic Control
Path: /api/autorelay.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to retrieve the relay settings for automatic control, including auto power status and switch triggers.
Response
| Name | Type | Example | Description |
|---|---|---|---|
| enbale | int | 1 | Automatic control of relay. 1: Yes; 0: No. |
| relay | int | 1 | Number of relays, ranging from 1 to 3. |
| isHumitureOnBoard | int | 0 | Use the onboard/external temperature/humidity, 1/0. |
| humidityLimitEnable | int | 0 | Humidity switch. 1: On; 0: Off. |
| temperatureLimitEnable | int | 0 | Temperature switch. 1: On; 0: Off. |
| humidityLimitValue | int | 50 | Humidity, ranging from 0 to 100. |
| temperatureLimitValue | int | 40 | Temperature limit. |
| smokeLimitEnbale | int | 0 | Smoke switch. 1: On; 0: Off. |
| smokeLimitValue | int | 500 | Smoke limit. |
Example
[{
"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
}]