Last Updated on : 2023-06-20 14:54:04download
Modify a scheduled task based on the scheduled task ID, such as the scheduled time and operation.
PUT: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
infrared_id | String | uri | true | The device ID. |
remote_id | String | uri | true | The ID of a specified remote control. |
timer_id | Long | query | true | The ID of a scheduled task. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
power | Integer | false | The power supply. | |
mode | Integer | false | The mode. | |
temp | Integer | false | The temperature. | |
swing | Integer | false | The swing. | |
wind | Integer | false | The wind speed. | |
key | Integer | false | The key ID. | |
time | String | false | The specified execution time. | |
date | String | false | The date. When the date is entered, the value of loops is 0000000 , and the date format is 20181212 . | |
loops | String | false | The loop configuration. A seven-digit number consisting of 0 and 1. 0 means disabled and 1 means enabled. For example, 0000010 means that the scheduled task is disabled on Sunday, Monday, Tuesday, Wednesday, Thursday, and Friday, and it is enabled on Saturday. | |
timezone_id | String | false | The time zone ID. Example: Asia/Shanghai. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | The operation result. |
PUT: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/timers?timer_id=1111
{
"key": 1,
"loops": "0000000",
"timezone_id": "Asia/Shanghai",
"time_zone": "+8:00",
"time": "19:06"
}
{
"result": true,
"t": 1631239134759,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback