Query Electricity Safety Rules

Last Updated on : 2023-06-15 05:59:07

Query the electricity safety rules supported by a specified electrical device based on the device ID.

API address

GET: /v1.0/iot-03/power-devices/{device_id}/support-safety-rules

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Return parameter

Parameter nameTypeDescription
resultListThe type of safety rules. Multiple rules are separated with commas (,). Valid values:
  • ov_cr: overcurrent rule, ranging from 10 to 100A. Unit: A.
  • ov_vol: overvoltage rule, ranging from 100 to 270V. Unit: V.
  • undervoltage: undervoltage rule, ranging from 90 to 250V. Unit: V.
  • overload: overload rule, ranging from 1 to 25 kW. Unit: kW.

Request example

GET: /v1.0/iot-03/power-devices/6c814919a3f54fb4eb****/support-safety-rules

Return example

{
    "result": [
        "overload",
        "ov_cr",
        "ov_vol",
        "undervoltage"
    ],
    "t": 1637833893307,
    "success": true
}

Error code

For more information, see error code.