Teslemetry · Schema

automationCondition

CompanyTeslaFleet APIHome AutomationEnergy
View JSON Schema on GitHub

JSON Schema

teslemetry-def-12-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teslemetry/json-schema/teslemetry-def-12-schema.json",
  "title": "automationCondition",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teslemetry-openapi.json#/components/schemas/def-12",
  "if": {
    "type": "object",
    "properties": {
      "type": {
        "enum": [
          "and",
          "or",
          "not"
        ]
      }
    },
    "required": [
      "type"
    ]
  },
  "then": {
    "type": "object",
    "properties": {
      "type": {
        "type": "string",
        "enum": [
          "and",
          "or",
          "not"
        ],
        "description": "and passes when every member passes, or when any member passes, not when no member passes"
      },
      "conditions": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/def-13"
        },
        "minItems": 1,
        "maxItems": 10
      }
    },
    "required": [
      "type",
      "conditions"
    ],
    "additionalProperties": false
  },
  "else": {
    "$ref": "#/$defs/def-11"
  },
  "$defs": {
    "def-11": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "state"
              ]
            },
            "state": {
              "type": "string",
              "enum": [
                "online"
              ]
            },
            "vin": {
              "type": "string",
              "description": "The vehicle the condition reads. It must be one of yours.",
              "minLength": 17,
              "maxLength": 17
            }
          },
          "required": [
            "type",
            "state",
            "vin"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "value"
              ]
            },
            "vin": {
              "type": "string",
              "description": "The vehicle the condition reads. It must be one of yours.",
              "minLength": 17,
              "maxLength": 17
            },
            "field": {
              "type": "string",
              "enum": [
                "ACChargingEnergyIn",
                "ACChargingPower",
                "AccessoryRail",
                "AutoSeatClimateLeft",
                "AutoSeatClimateRight",
                "AutomaticBlindSpotCamera",
                "AutomaticEmergencyBrakingOff",
                "BMSState",
                "BatteryHeaterOn",
                "BatteryLevel",
                "BlindSpotCollisionWarningChime",
                "BmsFullchargecomplete",
                "BrakePedal",
                "BrakePedalPos",
                "BrickSocMinPercent",
                "BrickVoltageMax",
                "BrickVoltageMin",
                "Cabin12vPortKeepOn",
                "Cabin48vPortKeepOn",
                "CabinOverheatProtectionMode",
                "CabinOverheatProtectionTemperatureLimit",
                "CarType",
                "CenterDisplay",
                "ChargeAmps",
                "ChargeCurrentRequest",
                "ChargeCurrentRequestMax",
                "ChargeEnableRequest",
                "ChargeLimitSoc",
                "ChargePort",
                "ChargePortColdWeatherMode",
                "ChargePortDoorOpen",
                "ChargePortLatch",
                "ChargeRateMilePerHour",
                "ChargeState",
                "ChargerPhases",
                "ChargerVoltage",
                "ChargingCableType",
                "ClimateKeeperMode",
                "ClimateSeatCoolingFrontLeft",
                "ClimateSeatCoolingFrontRight",
                "CruiseFollowDistance",
                "CruiseSetSpeed",
                "CurrentLimitMph",
                "DCChargingEnergyIn",
                "DCChargingPower",
                "DCDCEnable",
                "DefrostForPreconditioning",
                "DefrostMode",
                "DestinationLocation",
                "DestinationName",
                "DetailedChargeState",
                "DiAxleSpeedF",
                "DiAxleSpeedR",
                "DiAxleSpeedREL",
                "DiAxleSpeedRER",
                "DiHeatsinkTF",
                "DiHeatsinkTR",
                "DiHeatsinkTREL",
                "DiHeatsinkTRER",
                "DiInverterTF",
                "DiInverterTR",
                "DiInverterTREL",
                "DiInverterTRER",
                "DiMotorCurrentF",
                "DiMotorCurrentR",
                "DiMotorCurrentREL",
                "DiMotorCurrentRER",
                "DiSlaveTorqueCmd",
                "DiStateF",
                "DiStateR",
                "DiStateREL",
                "DiStateRER",
                "DiStatorTempF",
                "DiStatorTempR",
                "DiStatorTempREL",
                "DiStatorTempRER",
                "DiTorqueActualF",
                "DiTorqueActualR",
                "DiTorqueActualREL",
                "DiTorqueActualRER",
                "DiTorquemotor",
                "DiVBatF",
                "DiVBatR",
                "DiVBatREL",
                "DiVBatRER",
                "DoorState",
                "DriveRail",
                "DriverSeatBelt",
                "DriverSeatOccupied",
                "EfficiencyPackage",
                "EmergencyLaneDepartureAvoidance",
                "EnergyRemaining",
                "EstBatteryRange",
                "EstimatedHoursToChargeTermination",
                "EuropeVehicle",
                "ExpectedEnergyPercentAtTripArrival",
                "ExteriorColor",
                "FastChargerPresent",
                "FastChargerType",
                "FdWindow",
                "ForwardCollisionWarning",
                "FpWindow",
                "Gear",
                "GpsAccuracyMeters",
                "GpsHeading",
                "GpsState",
                "GradeEstimatePercent",
                "GuestModeEnabled",
                "GuestModeMobileAccessState",
                "HomelinkDeviceCount",
                "HomelinkNearby",
                "HvacACEnabled",
                "HvacAutoMode",
                "HvacFanSpeed",
                "HvacFanStatus",
                "HvacLeftTemperatureRequest",
                "HvacPower",
                "HvacRightTemperatureRequest",
                "HvacSteeringWheelHeatAuto",
                "HvacSteeringWheelHeatLevel",
                "Hvil",
                "IdealBatteryRange",
                "InsideTemp",
                "IsolationResistance",
                "LaneDepartureAvoidance",
                "LateralAcceleration",
                "LifetimeEnergyChargedKwh",
                "LifetimeEnergyGainedRegen",
                "LifetimeEnergyUsed",
                "LightsHazardsActive",
                "LightsHighBeams",
                "LightsTurnSignal",
                "LocatedAtFavorite",
                "LocatedAtHome",
                "LocatedAtWork",
                "Location",
                "Locked",
                "LongitudinalAcceleration",
                "MaxSpeedToReachDestinationMph",
                "MediaAudioVolume",
                "MediaAudioVolumeIncrement",
                "MediaAudioVolumeMax",
                "MediaNowPlayingAlbum",
                "MediaNowPlayingArtist",
                "MediaNowPlayingDuration",
                "MediaNowPlayingElapsed",
                "MediaNowPlayingStation",
                "MediaNowPlayingTitle",
                "MediaPlaybackSource",
                "MediaPlaybackStatus",
                "MilesSinceReset",
                "MilesToArrival",
                "MinutesToArrival",
                "ModuleTempMax",
                "ModuleTempMin",
                "NominalFullPackEnergyKwh",
                "NotEnoughPowerToHeat",
                "NumBrickVoltageMax",
                "NumBrickVoltageMin",
                "NumModuleTempMax",
                "NumModuleTempMin",
                "Odometer",
                "OffroadLightbarPresent",
                "OriginLocation",
                "OutsideTemp",
                "PackCurrent",
                "PackVoltage",
                "PairedPhoneKeyAndKeyFobQty",
                "PassengerSeatBelt",
                "PedalPosition",
                "PinToDriveEnabled",
                "PowershareHoursLeft",
                "PowershareInstantaneousPowerKW",
                "PowershareStatus",
                "PowershareStopReason",
                "PowershareType",
                "PreconditioningEnabled",
                "RatedRange",
                "RdWindow",
                "RearDefrostEnabled",
                "RearDisplayHvacEnabled",
                "RearSeatHeaters",
                "RemoteStartActive",
                "RemoteStartEnabled",
                "RightHandDrive",
                "RoofColor",
                "RouteLine",
                "RouteTrafficMinutesDelay",
                "RpWindow",
                "ScheduledChargingMode",
                "ScheduledChargingPending",
                "ScheduledChargingStartTime",
                "ScheduledDepartureTime",
                "SeatHeaterLeft",
                "SeatHeaterRearCenter",
                "SeatHeaterRearLeft",
                "SeatHeaterRearRight",
                "SeatHeaterRight",
                "SeatVentEnabled",
                "SelfDrivingMilesSinceReset",
                "SelfDrivingSoftwareVersion",
                "SemiCruiseSpeedLimitMph",
                "SemiTrailerLatched",
                "SemiVehicleMassKg",
                "SemitruckPassengerSeatFoldPosition",
                "SemitruckTpmsPressureRe1L0",
                "SemitruckTpmsPressureRe1L1",
                "SemitruckTpmsPressureRe1R0",
                "SemitruckTpmsPressureRe1R1",
                "SemitruckTpmsPressureRe2L0",
                "SemitruckTpmsPressureRe2L1",
                "SemitruckTpmsPressureRe2R0",
                "SemitruckTpmsPressureRe2R1",
                "SemitruckTractorParkBrakeStatus",
                "SemitruckTrailerParkBrakeStatus",
                "SentryMode",
                "ServiceMode",
                "Setting24HourTime",
                "SettingChargeUnit",
                "SettingDistanceUnit",
                "SettingTemperatureUnit",
                "SettingTirePressureUnit",
                "Soc",
                "SoftwareUpdateAvailable",
                "SoftwareUpdateDownloadPercentComplete",
                "SoftwareUpdateExpectedDurationMinutes",
                "SoftwareUpdateInProgress",
                "SoftwareUpdateInstallationPercentComplete",
                "SoftwareUpdateScheduledStartTime",
                "SoftwareUpdateVersion",
                "SpeedLimitMode",
                "SpeedLimitWarning",
                "SunroofInstalled",
                "SuperchargerSessionTripPlanner",
                "TimeToFullCharge",
                "TonneauOpenPercent",
                "TonneauPosition",
                "TonneauTentMode",
                "TpmsHardWarnings",
                "TpmsLastSeenPressureTimeFl",
                "TpmsLastSeenPressureTimeFr",
                "TpmsLastSeenPressureTimeRl",
                "TpmsLastSeenPressureTimeRr",
                "TpmsPressureFl",
                "TpmsPressureFr",
                "TpmsPressureRl",
                "TpmsPressureRr",
                "TpmsSoftWarnings",
                "Trim",
                "ValetModeEnabled",
                "VehicleName",
                "VehicleSpeed",
                "Version",
                "WheelType",
                "WiperHeatEnabled"
              ],
              "description": "A telemetry field name, as in /api/1/vehicles/{vin}/telemetry. The vehicle's latest cached value is read; the vehicle is never woken."
            },
            "operator": {
              "type": "string",
              "enum": [
                "equal",
                "not_equal",
                "above",
                "below"
              ],
              "description": "equal and not_equal compare as text; above and below are strict number bounds."
            },
            "value": {}
          },
          "required": [
            "type",
            "vin",
            "field",
            "operator",
            "value"
          ],
          "additionalProperties": false,
          "if": {
            "properties": {
              "operator": {
                "enum": [
                  "above",
                  "below"
                ]
              }
            }
          },
          "then": {
            "properties": {
              "value": {
                "type": "number"
              }
            }
          },
          "else": {
            "properties": {
              "value": {
                "type": "string",
                "maxLength": 256
              }
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "time"
              ]
            },
            "after": {
              "type": "string",
              "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
              "description": "Local HH:MM in the rule's time zone, inclusive"
            },
            "before": {
              "type": "string",
              "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
              "description": "Local HH:MM in the rule's time zone, exclusive"
            },
            "days": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "mon",
                  "tue",
                  "wed",
                  "thu",
                  "fri",
                  "sat",
                  "sun"
                ]
              },
              "minItems": 1,
              "maxItems": 7,
              "uniqueItems": true
            }
          },
          "required": [
            "type"
          ],
          "minProperties": 2,
          "additionalProperties": false
        }
      ],
      "title": "automationConditionLeaf"
    },
    "def-13": {
      "if": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "and",
              "or",
              "not"
            ]
          }
        },
        "required": [
          "type"
        ]
      },
      "then": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "and",
              "or",
              "not"
            ],
            "description": "and passes when every member passes, or when any member passes, not when no member passes"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/def-14"
            },
            "minItems": 1,
            "maxItems": 10
          }
        },
        "required": [
          "type",
          "conditions"
        ],
        "additionalProperties": false
      },
      "else": {
        "$ref": "#/$defs/def-11"
      },
      "title": "automationCondition1"
    },
    "def-14": {
      "if": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "and",
              "or",
              "not"
            ]
          }
        },
        "required": [
          "type"
        ]
      },
      "then": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "and",
              "or",
              "not"
            ],
            "description": "and passes when every member passes, or when any member passes, not when no member passes"
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/def-11"
            },
            "minItems": 1,
            "maxItems": 10
          }
        },
        "required": [
          "type",
          "conditions"
        ],
        "additionalProperties": false
      },
      "else": {
        "$ref": "#/$defs/def-11"
      },
      "title": "automationCondition2"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/teslemetry-def-12"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.