Last Updated on : 2023-07-06 08:28:23download
Query the standard instruction set supported by the automation and tap-to-run of a specified device.
GET: /v2.0/iot-03/automations/devices/{device_id}/specifications
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Parameter name | Type | Description |
---|---|---|
result | LinkageDevicePropertiesRes | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
device_id | String | The device ID. |
functions | List | Standard instructions for performing actions. |
status | List | The standard status that triggers an action. |
Description of functions
Parameter name | Type | Description |
---|---|---|
code | String | The code of the standard data point (DP). |
name | String | The code name. |
type | String | The type of data sent to a device. Currently, it supports the following three types:
|
values | JSONObject | The value range of the code. |
Description of status
Parameter name | Type | Description |
---|---|---|
code | String | The code of the standard data point (DP). |
name | String | The code name. |
type | String | The type of data sent to a device. Currently, it supports the following three types:
|
values | JSONObject | The value range of the code. |
GET: /v2.0/iot-03/automations/devices/vdevo162755161767***/specifications
{
"result": {
"device_id": "vdevo16275516176****",
"functions": [
{
"code": "switch_1",
"values": {
},
"type": "Boolean",
"name": "Switch 1"
},
{
"code": "countdown_1",
"values": {
"max": 86400,
"scale": 0,
"unit": "s",
"min": 0,
"step": 1
},
"type": "Integer",
"name": "Switch 1 Countdown"
},
{
"code": "relay_status",
"values": {
"range": [
"power_off",
"power_on",
"last"
]
},
"type": "Enum",
"name": "Restart Status Setting"
},
{
"code": "light_mode",
"values": {
"range": [
"relay",
"pos",
"none"
]
},
"type": "Enum",
"name": "Indicator Light Mode"
},
{
"code": "child_lock",
"values": {
},
"type": "Boolean",
"name": "Child Lock"
}
],
"status": [
{
"code": "switch_1",
"values": {
},
"type": "Boolean",
"name": "Switch 1"
},
{
"code": "countdown_1",
"values": {
"max": 86400,
"scale": 0,
"unit": "s",
"min": 0,
"step": 1
},
"type": "Integer",
"name": "Switch 1 Countdown"
},
{
"code": "relay_status",
"values": {
"range": [
"power_off",
"power_on",
"last"
]
},
"type": "Enum",
"name": "Restart Status Setting"
},
{
"code": "light_mode",
"values": {
"range": [
"relay",
"pos",
"none"
]
},
"type": "Enum",
"name": "Indicator Light Mode"
},
{
"code": "child_lock",
"values": {
},
"type": "Boolean",
"name": "Child Lock"
}
]
},
"t": 1635390721468,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback