Method Signature
Parameters
The unique identifier of the plant to retrieve MIX devices from
Returns
Type:Result<serde_json::Value>
Returns a JSON value containing an array of MIX inverter devices. Each device object typically includes:
- Device serial number
- Device type information
- Status indicators
- Additional device-specific metadata
Errors
This method can return the following errors:GrowattError::NotLoggedIn- User is not authenticatedGrowattError::RequestError- HTTP request failedGrowattError::InvalidResponse- Empty response or invalid structureGrowattError::JsonError- Failed to parse JSON response
Example
API Endpoint
POST/panel/getDevicesByPlant?plantId={plant_id}
Notes
This method automatically handles session management. If the session has expired, it will attempt to re-authenticate using stored credentials before making the request.
The method specifically extracts the “mix” array from the API response structure
obj.mix. If no MIX devices are found, it returns an InvalidResponse error.