# HEMSystemEnergyStatsResponse

Schema: #/components/schemas/HEMSystemEnergyStatsResponse

Method: SCHEMA
Version: 2.0
Security: oauth2

## Schema fields:

  - `resolution` (string, required)
    The aggregation resolution: PT5M (5 minutes), PT15M (15 minutes), PT30M (30 minutes), P1D (1 day), or P1M (1 month).
    Enum: "PT5M", "PT15M", "PT30M", "P1D", "P1M"

  - `start` (string, required)
    Start of the requested time range.
    Example: 2024-06-01T00:00:00Z

  - `end` (string, required)
    End of the requested time range.
    Example: 2024-06-30T23:59:59Z

  - `buckets` (array, required)
    List of aggregated energy statistics buckets.

  - `buckets.period_start` (string, required)
    Start of the aggregation period.
    Example: 2024-06-01T00:00:00Z

  - `buckets.period_end` (string, required)
    End of the aggregation period.
    Example: 2024-06-01T00:30:00Z

  - `buckets.generation_wh` (integer | null, required)
    Solar generation energy in watt-hours. Null if unavailable.
    Example: 1500

  - `buckets.consumption_wh` (integer | null, required)
    Household consumption energy in watt-hours. Null if unavailable.
    Example: 1200

  - `buckets.import_wh` (integer | null, required)
    Energy imported from the grid in watt-hours. Null if unavailable.
    Example: 600

  - `buckets.export_wh` (integer | null, required)
    Energy exported to the grid in watt-hours. Null if unavailable.
    Example: 300

  - `buckets.charge_wh` (integer | null, required)
    Battery charging energy in watt-hours. Null if unavailable.
    Example: 900

  - `buckets.discharge_wh` (integer | null, required)
    Battery discharging energy in watt-hours. Null if unavailable.
    Example: 450

  - `buckets.avg_battery_state_of_charge_percentage` (integer | null, required)
    Average battery state of charge as a percentage (0-100). Null if unavailable.
    Example: 75

  - `buckets.solar_to_home_wh` (integer | null, required)
    Energy flow from solar to home in watt-hours. Null if unavailable.
    Example: 750

  - `buckets.solar_to_battery_wh` (integer | null, required)
    Energy flow from solar to battery in watt-hours. Null if unavailable.
    Example: 500

  - `buckets.solar_to_grid_wh` (integer | null, required)
    Energy flow from solar to grid in watt-hours. Null if unavailable.
    Example: 250

  - `buckets.battery_to_home_wh` (integer | null, required)
    Energy flow from battery to home in watt-hours. Null if unavailable.
    Example: 350

  - `buckets.battery_to_grid_wh` (integer | null, required)
    Energy flow from battery to grid in watt-hours. Null if unavailable.
    Example: 100

  - `buckets.grid_to_home_wh` (integer | null, required)
    Energy flow from grid to home in watt-hours. Null if unavailable.
    Example: 100

  - `buckets.grid_to_battery_wh` (integer | null, required)
    Energy flow from grid to battery in watt-hours. Null if unavailable.
    Example: 50

