# ScheduleInterval

Schema: #/components/schemas/ScheduleInterval

Method: SCHEMA
Version: 2.0
Security: oauth2

## Schema fields:

  - `started_at` (string)
    The start time of the period this schedule applies to. Always aligned to half-hour boundaries (:00 or :30).
    Example: 2024-01-01T02:00:00Z

  - `interval_seconds` (integer | null)
    The duration of this schedule in seconds. Currently always 1800 seconds (30 minutes), or null for boost sessions which have no defined end time.
    Example: 1800

  - `current_milliamps` (integer)
    The charging current in milliamps that should be applied during this period. A value of 0 means no charging.
    Example: 7400

  - `schedule_type` (string)
    The type of scheduling that generated this instruction.
- INITIAL_CHARGE_TIME: Initial charge to condition the battery
- BATTERY_WARMING: Pre-warming the hour before the ready-by-time
- SMART: Optimised smart charging
- BOOST: Immediate charging at maximum rate
- SOLAR_ONLY: Charging only from solar generation
- SOLAR_SMART: Combined solar and smart charging
- V2G_DISCHARGE: Vehicle-to-grid discharge
- V2G_CHARGEBACK: Charging back after V2G discharge
- LEGACY: Legacy schedules from before type tracking
    Enum: "INITIAL_CHARGE_TIME", "BATTERY_WARMING", "SMART", "BOOST", "SOLAR_ONLY", "SOLAR_SMART", "V2G_DISCHARGE", "V2G_CHARGEBACK", "LEGACY"

  - `dispatched_at` (string | null)
    When this schedule was last sent to the device. Null if not yet dispatched.
    Example: 2024-01-01T02:00:15Z

  - `created_at` (string)
    When this schedule was created.
    Example: 2024-01-01T01:55:00Z

