# HEMSystemEnergyStatsBucket

Schema: #/components/schemas/HEMSystemEnergyStatsBucket

Method: SCHEMA
Version: 2.0
Security: oauth2

## Schema fields:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

