Send Standard Command

Last Updated on : 2023-06-20 14:54:05download

Send standard commands to control the specified device.

API address

POST: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/command

Request parameter

Parameter nameTypeINRequiredDescription
infrared_idStringuritrueThe device ID.
remote_idStringuritrueThe ID of the specified remote control.

Description of body

Parameter nameTypeINRequiredDescription
remote_indexInteger falseThe index ID of the specified remote control.
category_idInteger trueThe ID of the specified product category.
keyString trueThe key.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

POST: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/command
{
  "categoryId": 2,
  "remoteIndex": 147,
  "key": "Power"
}

Return example

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

Error code

For more information, see error code.