Last Updated on : 2023-06-20 14:54:03download
Add scheduled tasks to a remote control based on the entered conditions.
POST: /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. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
power | Integer | false | The power supply. Valid values:
| |
mode | Integer | false | The working mode. Valid values:
| |
temp | Integer | false | The temperature. | |
swing | Integer | false | The swing mode (not supported currently). | |
wind | Integer | false | The wind speed. Valid values:
| |
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 | Long | The ID of a scheduled task. |
POST: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/timers
{
"key": 1,
"loops": "0000000",
"timezone_id": "Asia/Shanghai",
"time_zone": "+8:00",
"time": "19:06"
}
{
"result": 12072546,
"t": 1631175719525,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback