Teslemetry · Schema

automationConditionResult

CompanyTeslaFleet APIHome AutomationEnergy
View JSON Schema on GitHub

JSON Schema

teslemetry-def-15-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teslemetry/json-schema/teslemetry-def-15-schema.json",
  "title": "automationConditionResult",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teslemetry-openapi.json#/components/schemas/def-15",
  "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
        },
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "actual": {
          "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
        }
      },
      "required": [
        "type",
        "state",
        "vin",
        "passed"
      ],
      "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": {},
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "actual": {
          "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
        }
      },
      "required": [
        "type",
        "vin",
        "field",
        "operator",
        "value",
        "passed"
      ],
      "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
        },
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "actual": {
          "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
        }
      },
      "required": [
        "type",
        "passed"
      ],
      "minProperties": 2,
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "and"
          ]
        },
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/def-15"
          }
        }
      },
      "required": [
        "type",
        "passed",
        "conditions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "or"
          ]
        },
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/def-15"
          }
        }
      },
      "required": [
        "type",
        "passed",
        "conditions"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "not"
          ]
        },
        "passed": {
          "type": "boolean",
          "description": "Whether the condition passed"
        },
        "error": {
          "type": "string",
          "description": "Why the condition could not be checked; such a run is failed"
        },
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/def-15"
          }
        }
      },
      "required": [
        "type",
        "passed",
        "conditions"
      ],
      "additionalProperties": false
    }
  ],
  "$defs": {
    "def-15": {
      "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
            },
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "actual": {
              "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
            }
          },
          "required": [
            "type",
            "state",
            "vin",
            "passed"
          ],
          "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": {},
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "actual": {
              "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
            }
          },
          "required": [
            "type",
            "vin",
            "field",
            "operator",
            "value",
            "passed"
          ],
          "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
            },
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "actual": {
              "description": "What the check read: the vehicle state, the field's cached value, or the local day and HH:MM"
            }
          },
          "required": [
            "type",
            "passed"
          ],
          "minProperties": 2,
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "and"
              ]
            },
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "conditions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/def-15"
              }
            }
          },
          "required": [
            "type",
            "passed",
            "conditions"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "or"
              ]
            },
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "conditions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/def-15"
              }
            }
          },
          "required": [
            "type",
            "passed",
            "conditions"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "not"
              ]
            },
            "passed": {
              "type": "boolean",
              "description": "Whether the condition passed"
            },
            "error": {
              "type": "string",
              "description": "Why the condition could not be checked; such a run is failed"
            },
            "conditions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/def-15"
              }
            }
          },
          "required": [
            "type",
            "passed",
            "conditions"
          ],
          "additionalProperties": false
        }
      ],
      "title": "automationConditionResult"
    }
  }
}

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-15"
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.