Skip to content

Instantly share code, notes, and snippets.

@michaelwoods
Created October 5, 2022 12:36
Show Gist options
  • Save michaelwoods/5d2696d6f2e6e79ad7a6591dfe66e5c5 to your computer and use it in GitHub Desktop.
Save michaelwoods/5d2696d6f2e6e79ad7a6591dfe66e5c5 to your computer and use it in GitHub Desktop.
{
"commands": {
"command": [
{
"name": "cancelAlert",
"description": "Cancel a vehicle alert (honk horns/flash lights).",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/cancelAlert",
"isPrivSessionRequired": "false"
},
{
"name": "getHotspotInfo",
"description": "Retrives the WiFi Hotspot info",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/hotspot/commands/getInfo",
"isPrivSessionRequired": "false"
},
{
"name": "lockDoor",
"description": "Locks the doors.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/lockDoor",
"isPrivSessionRequired": "false"
},
{
"name": "unlockDoor",
"description": "Unlocks the doors.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/unlockDoor",
"isPrivSessionRequired": "true"
},
{
"name": "alert",
"description": "Triggers a vehicle alert (honk horns/flash lights).",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/alert",
"isPrivSessionRequired": "true"
},
{
"name": "start",
"description": "Remotely starts the vehicle.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/start",
"isPrivSessionRequired": "true"
},
{
"name": "cancelStart",
"description": "Cancels previous remote start command.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/cancelStart",
"isPrivSessionRequired": "false"
},
{
"name": "diagnostics",
"description": "Retrieves diagnostic vehicle data.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/diagnostics",
"isPrivSessionRequired": "false",
"commandData": {
"supportedDiagnostics": {
"supportedDiagnostic": [
"LAST TRIP FUEL ECONOMY",
"ENERGY EFFICIENCY",
"HYBRID BATTERY MINIMUM TEMPERATURE",
"EV ESTIMATED CHARGE END",
"LIFETIME ENERGY USED",
"EV BATTERY LEVEL",
"EV PLUG VOLTAGE",
"HOTSPOT CONFIG",
"ODOMETER",
"HOTSPOT STATUS",
"LIFETIME EV ODOMETER",
"CHARGER POWER LEVEL",
"EV PLUG STATE",
"EV CHARGE STATE",
"TIRE PRESSURE",
"AMBIENT AIR TEMPERATURE",
"LAST TRIP DISTANCE",
"INTERM VOLT BATT VOLT",
"GET COMMUTE SCHEDULE",
"GET CHARGE MODE",
"EV SCHEDULED CHARGE START",
"VEHICLE RANGE"
]
}
}
},
{
"name": "sendTBTRoute",
"description": "Calculates route and initiate download of turn by turn directions to the vehicle.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/sendTBTRoute",
"isPrivSessionRequired": "false"
},
{
"name": "location",
"description": "Retrieves the vehicle's current location.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/location",
"isPrivSessionRequired": "true"
},
{
"name": "chargeOverride",
"description": "Sends Charge Override",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/chargeOverride",
"isPrivSessionRequired": "false"
},
{
"name": "getChargingProfile",
"description": "Gets the Charge Mode",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getChargingProfile",
"isPrivSessionRequired": "false"
},
{
"name": "getCommuteSchedule",
"description": "Gets the commuting schedule",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getCommuteSchedule",
"isPrivSessionRequired": "false"
},
{
"name": "sendNavDestination",
"description": "Calculate route and send it to the vehicle's nav unit.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/navUnit/commands/sendNavDestination",
"isPrivSessionRequired": "false"
},
{
"name": "connect",
"description": "Initiates a connection to the vehicle",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/connect",
"isPrivSessionRequired": "false"
},
{
"name": "setChargingProfile",
"description": "Sets the charging profile",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/setChargingProfile",
"isPrivSessionRequired": "false"
},
{
"name": "setCommuteSchedule",
"description": "Sets the commuting schedule",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/setCommuteSchedule",
"isPrivSessionRequired": "false"
},
{
"name": "stopFastCharge",
"description": "Stops the charge",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/stopFastCharge",
"isPrivSessionRequired": "true"
},
{
"name": "createTripPlan",
"description": "Create Trip Plan",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/createTripPlan",
"isPrivSessionRequired": "false"
},
{
"name": "getTripPlan",
"description": "Provides the ability to retrieve an existing trip plan for an electric vehicle",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getTripPlan",
"isPrivSessionRequired": "false"
},
{
"name": "getHotspotStatus",
"description": "Retrive WiFi status",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/hotspot/commands/getStatus",
"isPrivSessionRequired": "false"
},
{
"name": "setHotspotInfo",
"description": "update the WiFi SSID and passPhrase",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/hotspot/commands/setInfo",
"isPrivSessionRequired": "false"
},
{
"name": "disableHotspot",
"description": "Disable WiFi Hotspot",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/hotspot/commands/disable",
"isPrivSessionRequired": "false"
},
{
"name": "enableHotspot",
"description": "Enable WiFi Hotspot",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/hotspot/commands/enable",
"isPrivSessionRequired": "false"
},
{
"name": "stopCharge",
"description": "Sets the Stop Charge",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/stopCharge",
"isPrivSessionRequired": "true"
},
{
"name": "getChargerPowerLevel",
"description": " Get the charger level",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getChargerPowerLevel",
"isPrivSessionRequired": "false"
},
{
"name": "setChargerPowerLevel",
"description": " Set the charger level",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/setChargerPowerLevel",
"isPrivSessionRequired": "false"
},
{
"name": "setPriorityCharging",
"description": "Set priority charging",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/setPriorityCharging",
"isPrivSessionRequired": "false"
},
{
"name": "getPriorityCharging",
"description": "Get priority charging",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getPriorityCharging",
"isPrivSessionRequired": "false"
},
{
"name": "getRateSchedule",
"description": "Get EV Rate Schedule",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/getRateSchedule",
"isPrivSessionRequired": "true"
},
{
"name": "setRateSchedule",
"description": "Set EV Rate Schedule.",
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/setRateSchedule",
"isPrivSessionRequired": "true"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment