iobroker.bluelink
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -6,2 +6,14 @@ { | ||
"news": { | ||
"2.1.1": { | ||
"en": "Update lib bluelinky", | ||
"de": "Lib bluelinky aktualisiert", | ||
"ru": "Обновить lib bluelinky", | ||
"pt": "Atualizar lib bluelinky", | ||
"nl": "Update lib bluelinky", | ||
"fr": "Mettre à jour la bibliothèque bluelinky", | ||
"it": "Aggiorna lib bluelinky", | ||
"es": "Actualizar lib bluelinky", | ||
"pl": "Zaktualizuj bibliotekę bluelinky", | ||
"zh-cn": "更新库 bluelinky" | ||
}, | ||
"2.1.0": { | ||
@@ -8,0 +20,0 @@ "en": "Add Datapoints for doors etc", |
69
main.js
@@ -217,3 +217,7 @@ 'use strict'; | ||
this.log.error('Error in login/on function'); | ||
this.log.error(error.message); | ||
if (typeof error === 'string') { | ||
this.log.error(error); | ||
} else if (error instanceof Error) { | ||
this.log.error(error.message); | ||
} | ||
} | ||
@@ -249,3 +253,7 @@ } | ||
this.log.error('Error on API-Request GetFullStatus'); | ||
this.log.debug(error.message); | ||
if (typeof error === 'string') { | ||
this.log.error(error); | ||
} else if (error instanceof Error) { | ||
this.log.error(error.message); | ||
} | ||
} | ||
@@ -262,3 +270,3 @@ } | ||
async receiveEVInformation(vehicle, vin) { | ||
try { | ||
try { | ||
const driveHistory = await vehicle.driveHistory(); | ||
@@ -293,3 +301,8 @@ await this.setObjectNotExistsAsync(vin + '.driveHistory', { | ||
this.log.error('EV History fetching failed'); | ||
this.log.error(error); } | ||
if (typeof error === 'string') { | ||
this.log.error(error); | ||
} else if (error instanceof Error) { | ||
this.log.error(error.message); | ||
} | ||
} | ||
} | ||
@@ -373,20 +386,20 @@ | ||
//open / door | ||
await this.setStateAsync('vehicleStatus.doorLock', { val:newStatus.vehicleStatus.doorLock, ack: true }); | ||
await this.setStateAsync('vehicleStatus.trunkOpen', { val: newStatus.vehicleStatus.trunkOpen, ack: true }); | ||
await this.setStateAsync('vehicleStatus.hoodOpen', { val: newStatus.vehicleStatus.hoodOpen, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.doorLock', { val:newStatus.vehicleStatus.doorLock, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.trunkOpen', { val: newStatus.vehicleStatus.trunkOpen, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.hoodOpen', { val: newStatus.vehicleStatus.hoodOpen, ack: true }); | ||
if (newStatus.vehicleStatus.doorOpen != undefined) { | ||
await this.setStateAsync('vehicleStatus.doorOpen.frontLeft', { val: newStatus.vehicleStatus.doorOpen.frontLeft, ack: true }); | ||
await this.setStateAsync('vehicleStatus.doorOpen.frontRight', { val: newStatus.vehicleStatus.doorOpen.frontRight, ack: true }); | ||
await this.setStateAsync('vehicleStatus.doorOpen.backLeft', { val: newStatus.vehicleStatus.doorOpen.backLeft, ack: true }); | ||
await this.setStateAsync('vehicleStatus.doorOpen.backRight', { val: newStatus.vehicleStatus.doorOpen.backRight, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.doorOpen.frontLeft', { val: newStatus.vehicleStatus.doorOpen.frontLeft, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.doorOpen.frontRight', { val: newStatus.vehicleStatus.doorOpen.frontRight, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.doorOpen.backLeft', { val: newStatus.vehicleStatus.doorOpen.backLeft, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.doorOpen.backRight', { val: newStatus.vehicleStatus.doorOpen.backRight, ack: true }); | ||
} | ||
//status parameter | ||
await this.setStateAsync('vehicleStatus.airCtrlOn', { val: newStatus.vehicleStatus.airCtrlOn, ack: true }); | ||
await this.setStateAsync('vehicleStatus.smartKeyBatteryWarning', { val: newStatus.vehicleStatus.smartKeyBatteryWarning, ack: true }); | ||
await this.setStateAsync('vehicleStatus.washerFluidStatus', { val: newStatus.vehicleStatus.washerFluidStatus, ack: true }); | ||
await this.setStateAsync('vehicleStatus.breakOilStatus', { val: newStatus.vehicleStatus.breakOilStatus, ack: true }); | ||
await this.setStateAsync('vehicleStatus.steerWheelHeat', { val: newStatus.vehicleStatus.steerWheelHeat, ack: true }); | ||
await this.setStateAsync('vehicleStatus.sideBackWindowHeat', { val: newStatus.vehicleStatus.sideBackWindowHeat, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.airCtrlOn', { val: newStatus.vehicleStatus.airCtrlOn, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.smartKeyBatteryWarning', { val: newStatus.vehicleStatus.smartKeyBatteryWarning, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.washerFluidStatus', { val: newStatus.vehicleStatus.washerFluidStatus, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.breakOilStatus', { val: newStatus.vehicleStatus.breakOilStatus, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.steerWheelHeat', { val: newStatus.vehicleStatus.steerWheelHeat, ack: true }); | ||
await this.setStateAsync(vin + '.vehicleStatus.sideBackWindowHeat', { val: newStatus.vehicleStatus.sideBackWindowHeat, ack: true }); | ||
} | ||
@@ -533,3 +546,3 @@ | ||
//Doors open | ||
await this.setObjectNotExistsAsync('vehicleStatus.doorOpen.frontLeft', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.doorOpen.frontLeft', { | ||
type: 'state', | ||
@@ -546,3 +559,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.doorOpen.frontRight', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.doorOpen.frontRight', { | ||
type: 'state', | ||
@@ -559,3 +572,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.doorOpen.backLeft', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.doorOpen.backLeft', { | ||
type: 'state', | ||
@@ -572,3 +585,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.doorOpen.backRight', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.doorOpen.backRight', { | ||
type: 'state', | ||
@@ -585,3 +598,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.airCtrlOn', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.airCtrlOn', { | ||
type: 'state', | ||
@@ -599,3 +612,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.smartKeyBatteryWarning', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.smartKeyBatteryWarning', { | ||
type: 'state', | ||
@@ -612,3 +625,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.washerFluidStatus', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.washerFluidStatus', { | ||
type: 'state', | ||
@@ -625,3 +638,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.breakOilStatus', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.breakOilStatus', { | ||
type: 'state', | ||
@@ -638,3 +651,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.steerWheelHeat', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.steerWheelHeat', { | ||
type: 'state', | ||
@@ -651,3 +664,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.sideBackWindowHeat', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.sideBackWindowHeat', { | ||
type: 'state', | ||
@@ -664,3 +677,3 @@ common: { | ||
await this.setObjectNotExistsAsync('vehicleStatus.dte', { | ||
await this.setObjectNotExistsAsync(vin + '.vehicleStatus.dte', { | ||
type: 'state', | ||
@@ -667,0 +680,0 @@ common: { |
{ | ||
"name": "iobroker.bluelink", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Adapter to control Hyundai or Kia vehicle", | ||
@@ -33,3 +33,3 @@ "author": { | ||
"@iobroker/adapter-core": "^2.4.0", | ||
"bluelinky": "^7.5.0" | ||
"bluelinky": "^7.6.0" | ||
}, | ||
@@ -42,3 +42,3 @@ "devDependencies": { | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.35", | ||
"@types/node": "^14.17.32", | ||
"@types/proxyquire": "^1.3.28", | ||
@@ -45,0 +45,0 @@ "@types/sinon": "^9.0.11", |
@@ -21,2 +21,5 @@ ![Logo](admin/bluelink.png) | ||
## Changelog | ||
### 2.1.1 | ||
* (TA2k, Newan) Update lib bluelinky | ||
### 2.1 | ||
@@ -23,0 +26,0 @@ * (Newan) Add Datapoints for doors etc |
99298
1441
80
Updatedbluelinky@^7.6.0