Method Signature
Parameters
The year for which to retrieve 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 yearly energy statistics including monthly breakdownErr(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 monthly energy data for each month in the specified year
- Throws
InvalidResponseerror if the response is empty or null