Control Air Conditioner with Single Command

Last Updated on : 2023-06-15 05:17:31

Send the infrared codes to control the air conditioner based on the single command received.

API address

POST: /v2.0/infrareds/{infrared_id}/air-conditioners/{remote_id}/command

Request parameter

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

Description of body

Parameter nameTypeINRequiredDescription
codeStringbodytrueThe command.
valueObjectbodytrueThe value of the specified command.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

POST: /v2.0/infrareds/vdevo15345926009****/air-conditioners/d5s65ca55/command
{
  "code": "temp",
  "value": 26
}

Return example

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

Error code

For more information, see error code.