Energy history
sunsynk_energy_historyFetch historical solar plant energy data by day, month, year, or total. Get intraday power curves or aggregated kWh totals for PV, battery, grid, load, and SOC.
Instructions
Energy history for a plant. period='day' returns intraday power curves (PV, battery, grid, load, SOC) for the given date (YYYY-MM-DD); 'month' returns daily kWh totals for a month (YYYY-MM); 'year' returns monthly totals for a year (YYYY); 'total' returns yearly totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD for day, YYYY-MM for month, YYYY for year; defaults to today/current | |
| period | Yes | Granularity | |
| plant_id | No | Plant id; omit for the first plant |