Method Signature
Parameters
The year up to which to retrieve total statistics.
Format:
YYYY (e.g., “2025”)The unique identifier of the plant.
The serial number of the MIX inverter.
Returns
Returns a
Result containing:Ok(serde_json::Value): JSON object with total cumulative energy statisticsErr(GrowattError): Error if the request fails, authentication is invalid, or response is empty
Example
API Endpoint
Notes
- Requires authentication via
login()before calling - Automatically checks login status before making the request
- Returns cumulative energy data from the beginning of system operation up to the specified year
- Useful for understanding lifetime energy production and consumption
- Throws
InvalidResponseerror if the response is empty or null