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.
POST: /v1.0/iot-03/scene-templates/50001
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. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | The operation result. |
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
}
{
"result": true,
"t": 1624949595997,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback