From 3166a24c4e16f48064a38a537d84bf4c876c234b Mon Sep 17 00:00:00 2001 From: Hombach Date: Fri, 8 Nov 2024 17:13:52 +0100 Subject: [PATCH] 0.3.0 --- README.md | 1 + build/lib/teslafiAPICaller.js | 7 +++++++ build/lib/teslafiAPICaller.js.map | 2 +- io-package.json | 28 ++++++++++++++-------------- package.json | 2 +- src/lib/teslafiAPICaller.ts | 6 ++++++ 6 files changed, 30 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ed82c9c..ccc85c0 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ If you enjoyed this project — or just feeling generous, consider buying me a b - (hombach) implement string for time to finish charge (#42) - (hombach) reorganize data in folders (#43) - (hombach) show 3rd row seat heater only if 3rd row is available (#40) +- (hombach) implement 'charging_state' (#37) ### 0.2.1 (2024-11-08) diff --git a/build/lib/teslafiAPICaller.js b/build/lib/teslafiAPICaller.js index 93a127f..fc0fe62 100644 --- a/build/lib/teslafiAPICaller.js +++ b/build/lib/teslafiAPICaller.js @@ -141,6 +141,13 @@ class TeslaFiAPICaller extends projectUtils_1.ProjectUtils { //"online" this.checkAndSetValue(`vehicle-state.${stVD.state.key}`, stVD.state.value, stVD.state.desc); } + if (stVD.charging_state.value !== null) { + //"NoPower", "Charging", null + this.checkAndSetValue(`vehicle-state.${stVD.charging_state.key}`, stVD.charging_state.value, stVD.charging_state.desc); + } + else { + this.checkAndSetValue(`vehicle-state.${stVD.charging_state.key}`, "Unknown", stVD.charging_state.desc); + } if (stVD.car_version.value !== null) { //"2024.32.7 3f0d0fff88" this.checkAndSetValue(`vehicle-state.${stVD.car_version.key}`, stVD.car_version.value, stVD.car_version.desc); diff --git a/build/lib/teslafiAPICaller.js.map b/build/lib/teslafiAPICaller.js.map index 8b38095..432b8f2 100644 --- a/build/lib/teslafiAPICaller.js.map +++ b/build/lib/teslafiAPICaller.js.map @@ -1 +1 @@ -{"version":3,"file":"teslafiAPICaller.js","sourceRoot":"","sources":["../../src/lib/teslafiAP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CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCACvB,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gCAC/C,MAAM,CAAC,cAAc,CAAC,kBAAkB,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;4BACpE,CAAC,CAAC,CAAC;wBACJ,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;oBACrF,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;CACD;AA1VD,4CA0VC"} \ No newline at end of file diff --git a/io-package.json b/io-package.json index e7b23cc..fd92792 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,21 @@ { "common": { "name": "teslafi", - "version": "0.2.1", + "version": "0.3.0", "news": { + "0.3.0": { + "en": "Implement string for time to finish charge (#42)\nReorganize data in folders (#43)\nShow 3rd row seat heater only if 3rd row is available (#40)\nImplement 'charging_state' (#37)", + "de": "Implementiere Zeichenkette für die Zeit bis zum Abschluss des Ladens (#42)\nOrganisiere Daten in Ordnern neu (#43)\nZeige Sitzheizung der dritten Reihe nur an, wenn eine dritte Reihe vorhanden ist (#40)\nImplementiere 'charging_state' (#37)", + "ru": "Реализовать строку для времени до завершения зарядки (#42)\nРеорганизовать данные по папкам (#43)\nПоказывать обогрев сидений третьего ряда только если третий ряд доступен (#40)\nРеализовать 'charging_state' (#37)", + "pt": "Implementar string para tempo de conclusão da carga (#42)\nReorganizar dados em pastas (#43)\nMostrar aquecedor do assento da 3ª fila apenas se a 3ª fila estiver disponível (#40)\nImplementar 'charging_state' (#37)", + "nl": "Implementeer string voor tijd om op te laden (#42)\nHergeorganiseer gegevens in mappen (#43)\nToon stoelverwarming van de derde rij alleen als de derde rij beschikbaar is (#40)\nImplementeer 'charging_state' (#37)", + "fr": "Implémenter une chaîne pour le temps restant à charger (#42)\nRéorganiser les données dans des dossiers (#43)\nAfficher le chauffage des sièges de la 3e rangée uniquement si la 3e rangée est disponible (#40)\nImplémenter 'charging_state' (#37)", + "it": "Implementa stringa per il tempo di completamento della carica (#42)\nRiorganizza i dati nelle cartelle (#43)\nMostra il riscaldatore del sedile della terza fila solo se la terza fila è disponibile (#40)\nImplementa 'charging_state' (#37)", + "es": "Implementar cadena para el tiempo de finalización de la carga (#42)\nReorganizar datos en carpetas (#43)\nMostrar calefacción de asientos de la tercera fila solo si la tercera fila está disponible (#40)\nImplementar 'charging_state' (#37)", + "pl": "Wprowadź ciąg znaków dla czasu do zakończenia ładowania (#42)\nZorganizuj dane w folderach (#43)\nPokaż podgrzewanie siedzeń trzeciego rzędu tylko wtedy, gdy trzeci rząd jest dostępny (#40)\nWprowadź 'charging_state' (#37)", + "uk": "Реалізувати рядок для часу до завершення зарядки (#42)\nРеорганізувати дані в папках (#43)\nПоказувати обігрів сидінь третього ряду лише якщо третій ряд доступний (#40)\nРеалізувати 'charging_state' (#37)", + "zh-cn": "实现充电完成时间的字符串 (#42)\n将数据重新组织到文件夹中 (#43)\n仅在第三排可用时显示第三排座椅加热 (#40)\n实现 'charging_state' (#37)" + }, "0.2.1": { "en": "Change 'time_to_full_charge' type to number (#38)\nTotal rework of vehicle data parser\nSet speed to 0 if null in API data (#39)", "de": "Ändere den Typ von 'time_to_full_charge' auf Zahl (#38)\nKomplette Überarbeitung des Fahrzeugdatenparsers\nSetze Geschwindigkeit auf 0, wenn in den API-Daten null (#39)", @@ -80,19 +93,6 @@ "pl": "Wprowadzenie do najnowszego repozytorium ioBroker\nZaktualizuj zależności", "uk": "Введення в останнє репозиторій ioBroker\nОновити залежності", "zh-cn": "引入到 ioBroker 最新仓库\n更新依赖项" - }, - "0.1.1": { - "en": "Fix npm error", - "de": "NPM-Fehler behoben", - "ru": "Исправить ошибку npm", - "pt": "Corrigir erro npm", - "nl": "Los npm-fout op", - "fr": "Corriger l'erreur npm", - "it": "Correggere l'errore npm", - "es": "Corregir error de npm", - "pl": "Napraw błąd npm", - "uk": "Виправити помилку npm", - "zh-cn": "修复 npm 错误" } }, "titleLang": { diff --git a/package.json b/package.json index 90fb5ad..c7a9513 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.teslafi", - "version": "0.2.1", + "version": "0.3.0", "description": "Adapter to poll TeslaFi data of your car", "author": { "name": "Hombach", diff --git a/src/lib/teslafiAPICaller.ts b/src/lib/teslafiAPICaller.ts index bad30fa..5309d77 100644 --- a/src/lib/teslafiAPICaller.ts +++ b/src/lib/teslafiAPICaller.ts @@ -155,6 +155,12 @@ export class TeslaFiAPICaller extends ProjectUtils { //"online" this.checkAndSetValue(`vehicle-state.${stVD.state.key}`, stVD.state.value, stVD.state.desc); } + if (stVD.charging_state.value !== null) { + //"NoPower", "Charging", null + this.checkAndSetValue(`vehicle-state.${stVD.charging_state.key}`, stVD.charging_state.value, stVD.charging_state.desc); + } else { + this.checkAndSetValue(`vehicle-state.${stVD.charging_state.key}`, "Unknown", stVD.charging_state.desc); + } if (stVD.car_version.value !== null) { //"2024.32.7 3f0d0fff88"