Send Key Combination

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

During pairing, send the key combination of a specified air conditioner.

API address

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

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
remote_index Integer false The ID of a specified remote control index.
category_id Integer false The ID of a specified category.
power Integer false The power supply. Valid values:
  • 0: power-off.
  • 1: power-on.
mode Integer false The working mode. Valid values:
  • 0: cooling.
  • 1: heating.
  • 2: automatic.
  • 3: air supply.
  • 4: dehumidification.
temp Integer false The temperature.
swing Integer false The swing mode (not supported currently).
wind Integer false The wind speed. Valid values:
  • 0: automatic.
  • 1: low speed.
  • 2: medium speed.
  • 3: high speed.

Return parameter

Parameter name Type Description
result Boolean The operation result.

Request example

POST: /v2.0/infrareds/vdevo15345926009****/air-conditioners/testing/scenes/command
{ "categoryId": 5, "remoteIndex": 5277, "power": 1, "mode": 0, "temp": 26, "wind": 1 }

Return example

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

Error code

For more information, see error code.