Last Updated on : 2023-06-15 05:59:03
Set up electricity safety rules for a specified electrical device, including overcurrent, overvoltage, undervoltage, and overload rules.
POST: /v1.0/iot-03/power-devices/{device_id}/safety-rules
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
rules | List | true | The list of safety rules. |
Description of rules
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
rule_type | String | true | The type of safety rules.
|
|
rule_threshold | Integer | true | The threshold of safety rules. | |
switch_off | Boolean | true |
|
Parameter name | Type | Description |
---|---|---|
result | Boolean |
|
POST: /v1.0/iot-03/power-devices/6c814919a3f54fb4eb****/safety-rules
{
"rules": [
{
"rule_type": "ov_cr",
"switch_off": true,
"rule_threshold": 65
},
{
"rule_type": "ov_vol",
"switch_off": true,
"rule_threshold": 255
}
]
}
{
"result": true,
"t": 1637835034024,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback