Last Updated on : 2023-06-21 07:12:57download
Generate a human presence detection scene template (device off). When the human presence sensor does not detect a person, the specified device will be automatically powered off.
POST: /v1.0/iot-03/scene-templates/20000
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
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 | Indicates whether the operation is successful. |
POST: /v1.0/iot-03/scene-templates/20000
{
"prototype_name": "Device Off",
"prototype_desc": "Power off the device when no human presence is detected.",
"effect_days": "1111111",
"begin_time": "00:00",
"end_time": "23:59"
}
{
"result": true,
"t": 1623838903531,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback