Query the monthly data of important parameters of energy storage equipment for a certain year
| parameter | description | required |
|---|---|---|
| action | querySPDeviceKeyParameterYearPerMonth | true |
| parameter | Important parameters of the device | true |
| date | The date to query, format: yyyy, The date is considered asper project/a>The time zone in which it is located, If you do not pass this parameter, it defaults to the year | false |
Pass in important parameters for the device:
| parameter | description |
|---|---|
| BATTERY_ENERGY_TOTAL_DISCHARGE | Total battery discharge |
| BATTERY_ENERGY_TOTAL_CHARGE | Total battery charge |
| LOAD_ENERGY_TOTAL | Total load power consumption |
| ENERGY_TOTAL_TO_GRID | The total grid-connected electricity |
| ENERGY_TOTAL_FROM_GRID | Total electricity consumption of the grid |
response:
| parameter | description | required |
|---|---|---|
| option[x].val | value | true |
| option[x].gts | time | true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"option":[
{
"gts":"2018-01",
"val":"0.0000"
}
]
}
}
possible impacts:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | format error,parameter error |
| 0x0007 | ERR_MISSING_PARAMETER | The necessary parameters are missing |
| 0x0102 | ERR_NOT_FOUND_DEVICE | device not found |