Overview
Retrieves weekly battery charging and discharging statistics for a specific MIX inverter at a plant. This method provides insights into battery performance over a weekly period.Method Signature
Parameters
The unique identifier of the plant containing the MIX inverter.
The serial number of the MIX inverter device.
Returns
Returns aResult<serde_json::Value> containing the weekly battery statistics data on success, or a GrowattError on failure.
Errors
This method may return the following errors:GrowattError::InvalidResponse- If the response is empty or null (typically indicates the user is not logged in)GrowattError::NetworkError- If there is a network communication errorGrowattError::AuthenticationError- If the session has expired or authentication failed
Example
Response Structure
The response contains weekly battery statistics including charging and discharging data. The exact structure depends on the Growatt API response format.This method automatically checks if you are logged in before making the request. If the session has expired, you will need to call
login() again.