Last Updated on : 2023-06-15 05:30:15
Send a command of setting an electricity consumption alert value to a circuit breaker. On receiving the command, the circuit breaker will set the electricity consumption alert value.
POST: /v1.0/electric-energy/{device_id}/actions/electric-warn
| Parameter name | Type | IN | Required | Description | 
|---|---|---|---|---|
| device_id | String | uri | true | The ID of a Tuya device. | 
Description of body
| Parameter name | Type | IN | Required | Description | 
|---|---|---|---|---|
| electric_warn | Integer | true | The alert of the remaining battery capacity. Unit: kW. | 
| Parameter name | Type | Description | 
|---|---|---|
| result | CmdIssueResultResponse | The returned result. | 
Description of result
| Parameter name | Type | Description | 
|---|---|---|
| sn | String | The ID of a specified command record. | 
POST: /v1.0/electric-energy/6ce****/actions/electric-warn
{
  "electricWarn": 10
}
{
    "result": {
        "sn": "133****"
    },
    "t": 1561456817168,
    "success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback