Start the vehicle with an optional configuration setting. For EVs, this only starts with air conditioning.
start(startConfig: VehicleStartOptions): Promise<string>
VehicleStartOptions
Name | Type | Comment |
---|---|---|
hvac | string | Turn on the HVAC |
duration | string | How long to run the vehicle's engine (max 10) |
temperature | integer | Temp in Fahrenheit for the HVAC |
defrost | boolean | Turn on defrosters and side mirrors |
heatedFeatures | boolean | Heated features like the steering wheel and rear window |
unit | string | Use celcius or farenhight for HVAC temp |
Code Examples
How to start an ICE vehicle with the HVAC set to 70F for 10 minutes.
const BlueLinky = require("bluelinky");
const client = new BlueLinky({
username: '[email protected]',
password: 'hunter1',
brand: 'hyundai',
region: 'US',
pin: '1234'
});
client.on("ready", async () => {
const vehicle = client.getVehicle("5NMS55555555555555");
const response = await vehicle.start({
airCtrl: false,
igniOnDuration: 10,
airTempvalue: 70,
defrost: false,
heating1: false,
});
});