Generate Scheduled Power-on Template

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

Generate a scheduled power-on scene template to a specified asset (device). The device will be automatically powered on at the specified time.

API address

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

Request parameter

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.
timing_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.
timing_time String false The start time of the schedule.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

POST: /v1.0/iot-03/scene-templates/30010
{ "prototype_name": "Scheduled Power-on", "prototype_desc": "Power on the device at the scheduled time.", "effect_days": "1111111", "begin_time": "00:01", "end_time": "23:59", "timing_days": "1111111", "timing_time": "00:00" }

Return example

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

Error code

For more information, see error code.