Set Up Balance Alert Threshold

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

Set up the balance alert threshold of an electrical device. An alert will be triggered if the account balance is lower than the threshold.

API address

POST: /v1.0/iot-03/power-devices/{device_id}/balance-threshold

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
threshold Integer true The balance alert threshold. Unit: kWh.

Return parameter

Parameter name Type Description
result Boolean
  • true: Set up successfully.
  • false: Failed to set it up.

Request example

POST: /v1.0/iot-03/power-devices/6c814919a3f54fb4eb****/balance-threshold

Error code

For more information, see error code.