Get Energy Consumption Trend of a Device
POST/ems/trend/device
Get the statistics of the energy consumption trend of a specified device within a set time interval, segmented by time dimension (1h/1d/month). The API returns the energy consumption value for each time segment.
tip
Only devices that provide energy consumption data can be queried. For details, refer to the Aqara Studio documentation on Energy Management.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 503
Request succeeded.
Request parameter error
Unauthorized or authentication expired
No permission to access
Resource not found
Request frequency too high
Internal server error
Service unavailable; usually indicates the current environment is Edge, or the Cloud service 'cloudlinkcloud' is not loaded