Relay Settings for Automatic Control

555

# Relay Settings for Automatic Control

Path:

/api/autorelay

Method: PUT

Content-type: application/json; charset=utf-8

API Description: This can be used to power on/off the relay according to temperature, humidity, and smoke.

Request

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 Indicate whether to enable the onboard/external temperature and humidity. 1: Enable onboard temperature and humidity; 0: Enable external temperature and humidity.
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
}]