Get device status

Last Updated on : 2023-06-20 15:36:49download

Query the latest status of the device based on the device ID. To query the firmware to be upgraded, please call the [Get device upgrade information] interface.

API address

GET: /v1.0/devices/{device_id}/status

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription

Description of result

Parameter nameTypeDescription
codeStringStatus Code
valueObjectCurrent Value

Request example

GET: /v1.0/devices/xxxx/status

Return example

        "code": "switch_led",
        "value": true
        "code": "work_mode",
        "value": "scene_2 "

Error code

For more information, see error code.