Generate Humidity Control Template (High Humidity)

Last Updated on : 2023-06-21 07:13:05download

Generate a humidity control scene template. When the human presence sensor detects a person and the humidity sensor detects a humidity is greater than the threshold, the dehumidifier will be automatically powered on.

API address

POST: /v1.0/iot-03/scene-templates/50001

Request parameter

Description of body

Parameter name Type IN Required Description
env_humidity String false The ambient humidity.
device_humidity String false The humidity that is set on the device.
prototype_name String false The name of the template.
prototype_desc String false The description of the template.
effect_days String false The days in a week when the template is effective. The 7-digit string represents Sunday to Saturday in sequence. Valid values: 0: ineffective. 1: effective.
begin_time String false The start time.
end_time String false The end time.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

POST: /v1.0/iot-03/scene-templates/50001
{ "prototype_name": "Human Presence and Dehumidifier On", "prototype_desc": "Power on the dehumidifier when human presence is detected.", "effect_days": "1111111", "begin_time": "00:00", "end_time": "23:59", "env_humidity": 50, "device_humidity": 35 }

Return example

{ "result": true, "t": 1624949595997, "success": true }

Error code

For more information, see error code.