Last Updated on : 2023-06-21 07:12:54download
Generate a temperature control scene template. When the human presence sensor detects a person and the temperature sensor detects the temperature is lower than the threshold, the air conditioner is automatically powered on to achieve the specified temperature.
POST: /v1.0/iot-03/scene-templates/10010
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
env_temp | Integer | false | The ambient temperature. | |
device_temp | Integer | false | The specified temperature of 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/10010
{
"prototype_name": "AC Under Low Temperature",
"prototype_desc": "The air conditioner is switched on under low temperature.",
"effect_days": "1111111",
"begin_time": "00:00",
"end_time": "23:59",
"env_temp": 10,
"device_temp": 20
}
{
"result": true,
"t": 1623838958213,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback