bluelinky

bluelinky

  • Docs
  • API
  • Help

API Overview

NOTE: Docs are WIP and probably not updated fullly

Bluelinky Client

Bluelinky()

This is the client in which you interact.

Parameters:

NameTypeRequiredDefaultComment
usernamestringyesN/AUsername for the account
passwordstringyesN/APassword for the account
regionregionyesN/ARegion US/EU/CA
autoLoginbooleannotrueIf the client automatically logs in

login()

Send your credentials to the server, get auth tokens.

Returns

Promise<string>

getVehicles()

Get a list of all vehicles found on the account.

Returns

List<Vehicle>

getVehicle()

Get a vehicle instance based on the inputed vin number.

Returns

Vehicle

refreshAccessToken()

Allows you to request a new access token.

Returns

Promise<string>

Vehicle

start()

Start the vehicle with optional configuration setting. For EVs, this only starts airconditioning.

StartConfig:

NameTypeComment
airCtrlstringTurn on the HVAC
igniOnDurationstringHow long to run (max 10)
airTempvalueregionTemp in Fahrenheit
defrostbooleanTurn on defrosters, side mirrors, etc
heating1stringyes (EU)

stop()

Stop the vehicle. For EVs, this only stops airconditioning.

lock()

Lock the vehicle.

unlock()

Unlock the vehicle.

status()

Get the status of the vehicle.

location()

Get the location of the vehicle.

odometer()

Get the odometer of the vehicle.

Events

ready

The ready event is fired when the client has finished logging in to the BlueLink API. It also does a lookup to get all the vehicles associated with your account.

const client = new BlueLinky(config);

client.on('ready', (vehicles) => {
  // Client has logged in, and vehicles contains
  // all the logged inn users vehicles.
}));
Last updated on 10/20/2020 by Sean Boult
  • Bluelinky Client
  • Bluelinky()
  • login()
  • getVehicles()
  • getVehicle()
  • refreshAccessToken()
  • Vehicle
  • start()
  • stop()
  • lock()
  • unlock()
  • status()
  • location()
  • odometer()
  • Events
    • ready
bluelinky
Docs
Getting StartedAPI Reference
Community
Discord
More
GitHubStar
Facebook Open Source