{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evcc/json-schema/evcc-rates-schema.json",
  "title": "Rates",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evcc-tariffs-api-openapi.yml#/components/schemas/Rates",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Rate"
  },
  "$defs": {
    "Rate": {
      "description": "A time slot with an associated price or emission value.",
      "type": "object",
      "properties": {
        "start": {
          "description": "Start of the time slot.",
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "description": "End of the time slot.",
          "type": "string",
          "format": "date-time"
        },
        "value": {
          "description": "Price per kWh in the configured currency or emissions in g/kWh.",
          "type": "number"
        }
      },
      "required": [
        "start",
        "end",
        "value"
      ]
    }
  }
}