Query the power generation of Inverters or other power generation Device in a certain year
| Parameter | Description | Required |
|---|---|---|
| action | queryDeviceEnergyYear | True |
| pn | Datalogger number | True |
| devcode | Device protocol encoding | True |
| devaddr | Device address (485 bus) | True |
| sn | Device serial number | True |
| date | Date to query, format: yyyy, Date is considered as the time zone where the Device is located | True |
response:
| Parameter | Description | Required |
|---|---|---|
| energy | Power generation, Standardized units | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"energy":"10.0001"
}
}
Possible errors:
| Response error code | Description | Details |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | Parameter error |
| 0x000C | ERR_NO_RECORD | No records (no data reported by the Device was found) |
| 0x0102 | ERR_NOT_FOUND_DEVICE | Device not found |