Query Device Status

Last Updated on : 2023-06-15 05:05:33

Query the current status of a specified device. Currently, only infrared air-conditioners are supported.

API address

GET: /v2.0/iot-03/automations/infrared/ac/{device_id}/status

Request parameter

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

Return parameter

Parameter name Type Description
result AcStatusExtsRes The returned result.

Description of result

Parameter name Type Description
power_open Boolean Indicates whether a specified air conditioner is powered on. Valid values:
  • true: yes.
  • false: no.
power_name String The name of power-on status.
mode Integer The mode.
mode_name String The mode name.
temperature Integer The temperature.
temperature_name String The temperature name.
fan Integer The fan.
fan_name String The wind speed name.

Request example

GET: /v2.0/iot-03/automations/infrared/ac/6c819d650100a35f9e****/status

Return example

{ "result": { "fan_name": "Low speed", "power_name": "Power-on", "power_open": true, "mode": 1, "temperature_name": "temperature 22°C", "fan": 1, "temperature": "22", "mode_name": "Heating mode" }, "t": 1635734252399, "success": true }

Error code

For more information, see error code.