Last Updated on : 2023-06-21 07:13:04download
Generate an air quality management scene template. When the human presence sensor detects a person and the environmental monitor detects the air quality is lower than threshold, the ventilation system and air purifier will be automatically powered on.
POST: /v1.0/iot-03/scene-templates/40001
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
env_air_quality | String | false | The air quality index, ranging from level_1 to level_6 . |
|
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/40001
{
"prototype_name": "Power on Ventilation and Air Purifier in Human Presence",
"prototype_desc": "Power on the ventilation system and air purifier when human presence is detected.",
"effect_days": "1111111",
"begin_time": "00:00",
"end_time": "23:59",
"env_air_quality": "level_3"
}
{
"result": true,
"t": 1624949595997,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback