GET
Plant energy series

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

plantId
string
required

Plant id as returned by list_plants, e.g. huawei:3f2a9c1e:NE=33554875.

Query Parameters

metric
enum<string>
required

pv_yield (PV production), consumption, grid_export, grid_import, self_consumption, battery_charge, battery_discharge, inverter_yield (kWh); irradiation (kWh/m²); performance_ratio (%, not summed); specific_yield (kWh/kWp); income (plant currency). Deye: battery_charge includes charging from the grid, and grid_import does NOT include the grid energy bought to charge the battery — do not derive one flow by subtracting others.

Available options:
pv_yield,
inverter_yield,
consumption,
grid_export,
grid_import,
self_consumption,
battery_charge,
battery_discharge,
irradiation,
performance_ratio,
specific_yield,
income
granularity
enum<string>
required
Available options:
5min,
hour,
day,
month,
year
from
string

First day, YYYY-MM-DD, inclusive.

to
string

Last day, YYYY-MM-DD, inclusive. Defaults to today; from = to for a single day.

lastHours
integer

The last N hours up to now, in the plant's time. Only with 5min or hour; not with from/to.

Required range: 1 <= x <= 744

Response

Successful response: the same result as the MCP tool, inside data

data
object
required
requestId
string<uuid>
required