diff --git a/README.md b/README.md index 4d198a1d..e633e181 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,10 @@ If you enjoyed this project — or just feeling generous, consider buying me a b ! Note that missing version entries are typically dependency updates for improved security. -### 3.4.7 (2024-08-09) +### 3.4.7 (2024-08-10) - (HombachC) adapter checker detected optimizations (#493) +- (HombachC) improved error message (#490) ### 3.4.6 (2024-08-07) diff --git a/build/lib/tibberAPICaller.js b/build/lib/tibberAPICaller.js index 3af24ddf..10743030 100644 --- a/build/lib/tibberAPICaller.js +++ b/build/lib/tibberAPICaller.js @@ -164,11 +164,9 @@ class TibberAPICaller extends tibberHelper_1.TibberHelper { today.setHours(0, 0, 0, 0); // sets clock to 0:00 if (!exDate || exDate <= today || forceUpdate) { const pricesToday = await this.tibberQuery.getTodaysEnergyPrices(homeId); - // POTENTIAL 2.3.1 better error logging if (!(Array.isArray(pricesToday) && pricesToday.length > 0 && pricesToday[2] && pricesToday[2].total)) { - throw new Error(`Got invalid data structure from Tibber`); + throw new Error(`Got invalid data structure from Tibber [you might not have a valid (or fully confirmed) contract]`); } - // WIP this.adapter.log.debug(`Got prices today from tibber api: ${JSON.stringify(pricesToday)} Force: ${forceUpdate}`); this.checkAndSetValue(this.getStatePrefix(homeId, "PricesToday", "json"), JSON.stringify(pricesToday), "The prices today as json"); // write also it might be empty this.fetchPriceAverage(homeId, `PricesToday.average`, pricesToday); @@ -319,7 +317,6 @@ class TibberAPICaller extends tibberHelper_1.TibberHelper { ]; for (const { type, state, numCons, description } of resolutions) { if (numCons && numCons > 0) { - //WiP #405 change call to get also obsolete data let consumption; if (this.adapter.config.UseObsoleteStats) { consumption = await this.getConsumptionObs(type, numCons, homeID); @@ -327,7 +324,6 @@ class TibberAPICaller extends tibberHelper_1.TibberHelper { else { consumption = await this.tibberQuery.getConsumption(type, numCons, homeID); } - //WiP #405 this.checkAndSetValue(this.getStatePrefix(homeID, `Consumption`, state), JSON.stringify(consumption), `Historical consumption last ${description}s as json)`); } else { diff --git a/build/lib/tibberAPICaller.js.map b/build/lib/tibberAPICaller.js.map index 9e506d43..79872a7e 100644 --- a/build/lib/tibberAPICaller.js.map +++ b/build/lib/tibberAPICaller.js.map @@ -1 +1 @@ -{"version":3,"file":"tibberAPICaller.js","sourceRoot":"","sources":["../../src/lib/tibberAPICaller.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAOlD,uFAAoF;AACpF,iDAAyD;AAEzD,MAAa,eAAgB,SAAQ,2BAAY;IAIhD,YAAY,YAAqB,EAAE,OAA8B;QAChE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,IAAI,wBAAW,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,kBAAkB;QACvB,IAAI,CAAC;YACJ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAChD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,8BAA8B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC9E,MAAM,YAAY,GAAgB,EAAE,CAAC;YACrC,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;gBAC3B,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;gBACjC,YAAY,CAAC,IAAI,CAAC;oBACjB,EAAE,EAAE,WAAW,CAAC,EAAE;oBAClB,SAAS,EAAE,WAAW,CAAC,WAAW;oBAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,0BAA0B;oBACzD,UAAU,EAAE,KAAK;oBACjB,mBAAmB,EAAE,IAAI;iBACzB,CAAC,CAAC;gBACH,mDAAmD;gBACnD,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAC;gBAC1C,eAAe;gBACf,IAAI,CAAC,gBAA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AAC,SAAS,CAAC,CAAC;IACvG,CAAC;IAED,8DAA8D;IAE9D;;;;;;;OAOG;IACH,KAAK,CAAC,iBAAiB,CAAC,UAA4B,EAAE,SAAiB,EAAE,MAAc;QACtF,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;GAqB7B,CAAC;QAEF,MAAM,SAAS,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;QACpD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;QAC9E,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACnD,MAAM,IAAI,GAAU,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACvC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5F,CAAC;QACD,OAAO,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,4DAA4D,EAAE,CAAC;IAClH,CAAC;CAED;AAjlBD,0CAilBC"} \ No newline at end of file diff --git a/io-package.json b/io-package.json index 1e61299f..81de5f31 100644 --- a/io-package.json +++ b/io-package.json @@ -4,17 +4,17 @@ "version": "3.4.7", "news": { "3.4.7": { - "en": "adapter checker detected optimizations (#493)", - "de": "Adapter-Checker erkannte Optimierungen (#493)", - "ru": "оптимизации, обнаруженные проверяющим адаптера (#493)", - "pt": "otimizações detectadas pelo verificador de adaptadores (#493)", - "nl": "door adapter checker gedetecteerde optimalisaties (#493)", - "fr": "optimisations détectées par le vérificateur d'adaptateurs (#493)", - "it": "ottimizzazioni rilevate dal controllo dell'adattatore (#493)", - "es": "optimizaciones detectadas por el verificador de adaptadores (#493)", - "pl": "optymalizacje wykryte przez sprawdzanie adaptera (#493)", - "uk": "оптимізації, виявлені перевіряючим адаптера (#493)", - "zh-cn": "适配器检查器检测到的优化 (#493)" + "en": "adapter checker detected optimizations (#493)\nimproved error message (#490)", + "de": "Adapter-Checker erkannte Optimierungen (#493)\nverbesserte Fehlermeldung (#490)", + "ru": "оптимизации, обнаруженные проверяющим адаптера (#493)\nулучшенное сообщение об ошибке (#490)", + "pt": "otimizações detectadas pelo verificador de adaptadores (#493)\nmensagem de erro aprimorada (#490)", + "nl": "door adapter checker gedetecteerde optimalisaties (#493)\nverbeterde foutmelding (#490)", + "fr": "optimisations détectées par le vérificateur d'adaptateurs (#493)\nmessage d'erreur amélioré (#490)", + "it": "ottimizzazioni rilevate dal controllo dell'adattatore (#493)\nmessaggio di errore migliorato (#490)", + "es": "optimizaciones detectadas por el verificador de adaptadores (#493)\nmensaje de error mejorado (#490)", + "pl": "optymalizacje wykryte przez sprawdzanie adaptera (#493)\nulepszona wiadomość o błędzie (#490)", + "uk": "оптимізації, виявлені перевіряючим адаптера (#493)\nпокращене повідомлення про помилку (#490)", + "zh-cn": "适配器检查器检测到的优化 (#493)\n改进的错误消息 (#490)" }, "3.4.6": { "en": "Catch wrong OBIS Codes, probably caused by Pulse communication errors", diff --git a/src/lib/tibberAPICaller.ts b/src/lib/tibberAPICaller.ts index 69a85003..c9e9a189 100644 --- a/src/lib/tibberAPICaller.ts +++ b/src/lib/tibberAPICaller.ts @@ -188,11 +188,9 @@ export class TibberAPICaller extends TibberHelper { today.setHours(0, 0, 0, 0); // sets clock to 0:00 if (!exDate || exDate <= today || forceUpdate) { const pricesToday = await this.tibberQuery.getTodaysEnergyPrices(homeId); - // POTENTIAL 2.3.1 better error logging if (!(Array.isArray(pricesToday) && pricesToday.length > 0 && pricesToday[2] && pricesToday[2].total)) { - throw new Error(`Got invalid data structure from Tibber`); + throw new Error(`Got invalid data structure from Tibber [you might not have a valid (or fully confirmed) contract]`); } - // WIP this.adapter.log.debug(`Got prices today from tibber api: ${JSON.stringify(pricesToday)} Force: ${forceUpdate}`); this.checkAndSetValue(this.getStatePrefix(homeId, "PricesToday", "json"), JSON.stringify(pricesToday), "The prices today as json"); // write also it might be empty this.fetchPriceAverage(homeId, `PricesToday.average`, pricesToday); @@ -363,14 +361,12 @@ export class TibberAPICaller extends TibberHelper { ]; for (const { type, state, numCons, description } of resolutions) { if (numCons && numCons > 0) { - //WiP #405 change call to get also obsolete data let consumption: IConsumption[]; if (this.adapter.config.UseObsoleteStats) { consumption = await this.getConsumptionObs(type, numCons, homeID); } else { consumption = await this.tibberQuery.getConsumption(type, numCons, homeID); } - //WiP #405 this.checkAndSetValue( this.getStatePrefix(homeID, `Consumption`, state), JSON.stringify(consumption),