{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teslemetry/json-schema/teslemetry-def-6-schema.json",
  "title": "Live Status",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teslemetry-openapi.json#/components/schemas/def-6",
  "type": "object",
  "properties": {
    "solar_power": {
      "type": "number",
      "description": "Power currently being generated by solar panels in watts. Always zero or positive."
    },
    "percentage_charged": {
      "type": "number",
      "description": "Powerwall battery state of charge as a percentage (0-100)."
    },
    "battery_power": {
      "type": "number",
      "description": "Power flowing to/from the Powerwall battery in watts. Positive = discharging (powering home/grid), negative = charging."
    },
    "load_power": {
      "type": "number",
      "description": "Total power consumption of the home in watts. Always zero or positive."
    },
    "grid_status": {
      "type": "string",
      "enum": [
        "Active",
        "Inactive",
        "Unknown"
      ],
      "description": "Current status of the utility grid connection."
    },
    "grid_power": {
      "type": "number",
      "description": "Power flowing to/from the utility grid in watts. Positive = importing (buying from grid), negative = exporting (selling to grid)."
    },
    "generator_power": {
      "type": "integer",
      "description": "Power from a backup generator in watts, if present. Always zero or positive."
    },
    "grid_services_power": {
      "type": "number",
      "description": "Power delivered to grid services (e.g. a virtual power plant) in watts. Rare; only present when Tesla reports it."
    },
    "wall_connectors": {
      "type": "array",
      "description": "Array of Tesla Wall Connectors at the energy site.",
      "items": {
        "type": "object",
        "properties": {
          "din": {
            "type": "string",
            "description": "Device Identification Number, a unique identifier for the Wall Connector."
          },
          "vin": {
            "type": "string",
            "description": "Vehicle Identification Number of the connected vehicle, if any."
          },
          "wall_connector_state": {
            "type": "integer",
            "description": "Operational state: 1 = charging, 2 = not plugged in, 3 = plugged in (not charging), 4 = plugged in (paused)."
          },
          "wall_connector_fault_state": {
            "type": "integer",
            "description": "Fault condition code. 0 indicates no fault."
          },
          "wall_connector_power": {
            "type": "number",
            "description": "Power being delivered to the vehicle in watts."
          },
          "ocpp_status": {
            "type": "integer",
            "description": "Open Charge Point Protocol status code."
          },
          "powershare_session_state": {
            "type": "integer",
            "description": "Powershare (vehicle-to-home) session state code."
          }
        },
        "required": [
          "din",
          "wall_connector_power",
          "wall_connector_state"
        ]
      }
    },
    "island_status": {
      "type": "string",
      "enum": [
        "on_grid",
        "island_status_unknown",
        "off_grid_intentional",
        "off_grid_unintentional"
      ],
      "description": "Whether the site is islanded (operating independently from the grid). off_grid_intentional = user-initiated (e.g., Go Off-Grid test), off_grid_unintentional = grid outage."
    },
    "storm_mode_active": {
      "type": "boolean",
      "description": "Whether Storm Watch is currently active, charging the battery to 100% in preparation for a potential outage."
    },
    "timestamp": {
      "type": "string",
      "description": "ISO 8601 timestamp when this data was captured."
    },
    "storm_mode_states": {
      "type": "array",
      "description": "Active Storm Watch events with timing and storm type information.",
      "items": {
        "type": "object",
        "properties": {
          "watch_event_id": {
            "type": "string",
            "description": "Unique identifier for the storm watch event."
          },
          "start_time": {
            "type": "string",
            "description": "ISO 8601 timestamp when the storm watch begins."
          },
          "end_time": {
            "type": "string",
            "description": "ISO 8601 timestamp when the storm watch ends."
          },
          "storm_type": {
            "type": "string",
            "description": "Type of storm (e.g., winter storm, hurricane, thunderstorm)."
          },
          "opted_out": {
            "type": "boolean",
            "description": "Whether the user has opted out of this storm watch event."
          }
        },
        "required": [
          "end_time",
          "start_time",
          "storm_type",
          "watch_event_id"
        ]
      }
    },
    "battery_breaker_open": {
      "type": "boolean",
      "description": "Whether the battery breaker is open, meaning the Powerwall is electrically disconnected from the system."
    }
  }
}