get_realtime_data
Fetch real-time solar inverter data: power output, energy yields, battery status, and grid import/export.
Instructions
Fetch real-time solar inverter data from SolaX Developer Platform.
Retrieves the latest readings including power output, energy yields, battery status, and grid import/export data from the SolaX Developer Platform API. All power values are in Watts (W), energy in kWh, voltage in Volts (V), current in Amps (A), and temperature in Celsius (°C).
Args: device_sn: Serial number of the inverter to query (the device SN, not WiFi dongle SN). If omitted, defaults to SOLAX_DEVICE_SN environment variable.
Returns: A structured dictionary with decoded status values and grouped data fields: - device: inverter identifiers (SN, registration number, timestamps) - status: inverter operating status (code + human-readable description) - pv: list of active PV strings with voltage/current/power - mppt: MPPT tracker data (individual trackers + total power) - ac: AC output phases, total power, reactive power, power factor, grid frequency - energy: daily/total yield and AC output - meter1: grid power and energy (import/export) - meter2: secondary meter data (import/export) - battery: battery voltage/current/power/soc/status (None if no battery) - eps: emergency power supply data (3-phase voltage/current/power) - temperature: inverter temperature - misc: line-to-line voltages
Raises: ToolError: if credentials are invalid, the device is not found, or the API fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_sn | No |