iobroker.bluelink
Advanced tools
Comparing version 3.0.1 to 3.0.3
@@ -0,0 +0,0 @@ { |
{ | ||
"common": { | ||
"name": "bluelink", | ||
"version": "3.0.1", | ||
"version": "3.0.3", | ||
"news": { | ||
"3.0.3": { | ||
"en": "add city to position text", | ||
"de": "stadt hinzufügen zum positionstext", | ||
"ru": "добавить город в положение текст", | ||
"pt": "adicionar cidade ao texto de posição", | ||
"nl": "stad toevoegen aan positietekst", | ||
"fr": "ajouter la ville au texte de position", | ||
"it": "aggiungere la città al testo di posizione", | ||
"es": "añadir ciudad a texto de posición", | ||
"pl": "dodaj tekst miasta do pozycji", | ||
"uk": "додати місто в позицію текст", | ||
"zh-cn": "在位置文本中添加城市" | ||
}, | ||
"3.0.2": { | ||
"en": "corr for hev", | ||
"de": "korr für hev", | ||
"ru": "для гев", | ||
"pt": "corante para hev", | ||
"nl": "corr voor hev", | ||
"fr": "pour hev", | ||
"it": "corr per hev", | ||
"es": "corr para hev", | ||
"pl": "corr for hev", | ||
"uk": "корр для геїв", | ||
"zh-cn": "为hv而战" | ||
}, | ||
"3.0.1": { | ||
@@ -114,3 +140,2 @@ "en": "activate jsonconfig", | ||
"platform": "Javascript/Node.js", | ||
"main": "main.js", | ||
"icon": "bluelink.png", | ||
@@ -117,0 +142,0 @@ "enabled": true, |
@@ -74,3 +74,4 @@ const axios = require('axios').default; | ||
const addrDetails = response.data.address; | ||
const addr = ([addrDetails.road ? addrDetails.road : null,addrDetails.house_number ? [' ',addrDetails.house_number,''].join('') : null,addrDetails.road ? ', ' : null,addrDetails.postcode ? String(addrDetails.postcode) + ' ' : null,addrDetails.town ? String(addrDetails.town) + '' : null,addrDetails.village ? [' (',addrDetails.village,')'].join('') : null,addrDetails.county ? ', ' + String(addrDetails.county) : null,addrDetails.state ? ', ' + String(addrDetails.state) : null,addrDetails.country ? ', ' + String(addrDetails.country) : null,!addrDetails.country ? 'not found' : null].join('')); | ||
const addr = ([addrDetails.road ? addrDetails.road : null,addrDetails.house_number ? [' ',addrDetails.house_number,''].join('') : null,addrDetails.road ? ', ' : null,addrDetails.postcode ? String(addrDetails.postcode) + ', ' : null,addrDetails.town ? String(addrDetails.town) + '' : null,addrDetails.village ? [' (',addrDetails.village,')'].join('') : null,addrDetails.county ? '' + String(addrDetails.county) : null, addrDetails.city ? '' + String(addrDetails.city) : null,addrDetails.state ? ', ' + String(addrDetails.state) : null,addrDetails.country ? ', ' + String(addrDetails.country) : null,!addrDetails.country ? 'not found' : null].join('')); | ||
return addr; | ||
@@ -77,0 +78,0 @@ } |
34
main.js
@@ -665,6 +665,8 @@ 'use strict'; | ||
await this.setStateAsync(vin + '.vehicleStatus.battery.soc', { | ||
val: newStatus.ccs2Status.state.Vehicle.Green.BatteryManagement.BatteryRemain.Ratio, | ||
ack: true | ||
}); | ||
if (newStatus.ccs2Status.state.Vehicle.Green.BatteryManagement.hasOwnProperty('BatteryRemain')) { | ||
await this.setStateAsync(vin + '.vehicleStatus.battery.soc', { | ||
val: newStatus.ccs2Status.state.Vehicle.Green.BatteryManagement.BatteryRemain.Ratio, | ||
ack: true | ||
}); | ||
} | ||
@@ -688,13 +690,15 @@ // hier nachschauen welcher DP | ||
//fast = 0 -> Index 0 ist fast | ||
slow_charging = newStatus.ccs2Status.state.Vehicle.Green.ChargingInformation.TargetSoC.Standard; | ||
await this.setStateAsync(vin + '.control.charge_limit_slow', { | ||
val: slow_charging, | ||
ack: true, | ||
}); | ||
fast_charging = newStatus.ccs2Status.state.Vehicle.Green.ChargingInformation.TargetSoC.Quick; | ||
await this.setStateAsync(vin + '.control.charge_limit_fast', { | ||
val: fast_charging, | ||
ack: true, | ||
}); | ||
if (newStatus.ccs2Status.state.Vehicle.Green.ChargingInformation.hasOwnProperty('TargetSoC')) { | ||
slow_charging = newStatus.ccs2Status.state.Vehicle.Green.ChargingInformation.TargetSoC.Standard; | ||
await this.setStateAsync(vin + '.control.charge_limit_slow', { | ||
val: slow_charging, | ||
ack: true, | ||
}); | ||
fast_charging = newStatus.ccs2Status.state.Vehicle.Green.ChargingInformation.TargetSoC.Quick; | ||
await this.setStateAsync(vin + '.control.charge_limit_fast', { | ||
val: fast_charging, | ||
ack: true, | ||
}); | ||
} | ||
} else { | ||
@@ -701,0 +705,0 @@ if (newStatus.vehicleStatus.hasOwnProperty('battery')) { |
{ | ||
"name": "iobroker.bluelink", | ||
"version": "3.0.1", | ||
"version": "3.0.3", | ||
"description": "Adapter to control Hyundai or Kia vehicle", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -37,3 +37,10 @@ ![Logo](admin/bluelink.png) | ||
## Changelog | ||
### 3.0.3 (2024-10-02) | ||
* (arteck) add city to position text | ||
### 3.0.2 (2024-10-01) | ||
* (arteck) corr for hev | ||
### 3.0.1 (2024-09-27) | ||
@@ -40,0 +47,0 @@ * (arteck) activate jsonconfig |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
117158
166
0
13
2150