From 3e554af5af0302c279a9055bccc6c5a06b18eed8 Mon Sep 17 00:00:00 2001 From: Moritz Heusinger Date: Fri, 30 Apr 2021 09:08:07 +0200 Subject: [PATCH] chore: release v3.0.22 parse the dutyCycle state to int (fixes #144) update dependencies removed unneeded dependency --- README.md | 3 ++- hm-rega.js | 6 +++--- io-package.json | 26 +++++++++++++------------- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 73eda9d..c0684c9 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,8 @@ with the ioBroker CLI. You can change the port via `iob set hm-rega. - ### __WORK IN PROGRESS__ --> -### __WORK IN PROGRESS__ +### 3.0.22 (2021-04-30) +* (foxriver76) parse the dutyCycle state to int (fixes #144) * (foxriver76) update dependencies * (foxriver76) removed unneeded dependency diff --git a/hm-rega.js b/hm-rega.js index e5605ca..17fed09 100644 --- a/hm-rega.js +++ b/hm-rega.js @@ -497,8 +497,8 @@ async function pollDutyCycle() { // DUTY_CYCLE State: if (dp.DUTY_CYCLE) { - updateNewState(`${adapter.namespace}.${id}.0.DUTY_CYCLE`, dp.DUTY_CYCLE); - adapter.log.debug(`Dutycycle: ${adapter.namespace}.${id}.0.DUTY_CYCLE => ${dp.DUTY_CYCLE}`); + updateNewState(`${adapter.namespace}.${id}.0.DUTY_CYCLE`, parseInt(dp.DUTY_CYCLE)); + adapter.log.debug(`Dutycycle: ${adapter.namespace}.${id}.0.DUTY_CYCLE => ${parseInt(dp.DUTY_CYCLE)}`); } // CONNECTED State: @@ -1862,7 +1862,7 @@ async function getDutyCycle() { CONTROL: 'NONE' } }; - await addNewStateOrObject(stateDutycycle, dp.DUTY_CYCLE); + await addNewStateOrObject(stateDutycycle, parseInt(dp.DUTY_CYCLE)); } //CONNECTED State: diff --git a/io-package.json b/io-package.json index be8c5fa..f90c0ff 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,20 @@ { "common": { "name": "hm-rega", - "version": "3.0.21", + "version": "3.0.22", "news": { + "3.0.22": { + "en": "parse the dutyCycle state to int (fixes #144)\nupdate dependencies\nremoved unneeded dependency", + "de": "Analysieren Sie den DutyCycle-Status auf int (Fixes # 144).\nAbhängigkeiten aktualisieren\nnicht benötigte Abhängigkeit entfernt", + "ru": "разобрать состояние dutyCycle на int (исправления # 144)\nобновить зависимости\nудалена ненужная зависимость", + "pt": "analisar o estado dutyCycle para int (corrige # 144)\natualizar dependências\ndependência desnecessária removida", + "nl": "parseer de dutyCycle-status naar int (fixes # 144)\nupdate afhankelijkheden\nonnodige afhankelijkheid verwijderd", + "fr": "analyser l'état dutyCycle en int (corrections # 144)\nmettre à jour les dépendances\nsuppression des dépendances inutiles", + "it": "analizza lo stato dutyCycle su int (correzioni # 144)\naggiornare le dipendenze\nha rimosso la dipendenza non necessaria", + "es": "analizar el estado dutyCycle en int (arreglos # 144)\nactualizar dependencias\neliminado dependencia innecesaria", + "pl": "przeanalizuj stan dutyCycle na int (poprawki # 144)\nzależności aktualizacji\nusunięto niepotrzebną zależność", + "zh-cn": "将占空比状态解析为int(修复#144)\n更新依赖\n删除了不需要的依赖" + }, "3.0.21": { "en": "bring back io-package json readme attribute, admin does not fall back to docs as expected (fixes #135)", "de": "Bringen Sie das Ready-Attribut io-package json zurück. Der Administrator greift nicht wie erwartet auf die Dokumente zurück (Fixes # 135).", @@ -230,18 +242,6 @@ "es": "Se corrigieron los alias que se eliminaron de las enumeraciones si contienen \"hm-rpc\".", "pl": "naprawiono usuwanie aliasów z wyliczeń, jeśli zawierają one „hm-rpc”.", "zh-cn": "固定别名(如果它们包含“ hm-rpc”)将从枚举中删除。" - }, - "2.6.24": { - "en": "now states will be accordingly marked to indicate that rega is down when receiving invalid responses", - "de": "Jetzt werden Zustände entsprechend markiert, um anzuzeigen, dass die Rega beim Empfang ungültiger Antworten nicht verfügbar ist", - "ru": "Теперь состояния будут соответственно отмечены, чтобы указать, что rega не работает при получении неверных ответов", - "pt": "agora os estados serão devidamente marcados para indicar que rega está inativo ao receber respostas inválidas", - "nl": "Nu worden staten dienovereenkomstig gemarkeerd om aan te geven dat rega down is bij het ontvangen van ongeldige antwoorden", - "fr": "maintenant les états seront marqués en conséquence pour indiquer que rega est en panne lors de la réception de réponses invalides", - "it": "ora gli stati saranno contrassegnati di conseguenza per indicare che la rega è inattiva quando si ricevono risposte non valide", - "es": "ahora los estados se marcarán en consecuencia para indicar que rega está inactivo cuando se reciben respuestas no válidas", - "pl": "teraz stany będą odpowiednio oznaczone, aby wskazać, że rega nie działa podczas otrzymywania nieprawidłowych odpowiedzi", - "zh-cn": "现在状态将相应地标记为指示接收到无效响应时rega已关闭" } }, "title": "HomeMatic ReGaHSS", diff --git a/package-lock.json b/package-lock.json index 7e5efc3..7bb84db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.hm-rega", - "version": "3.0.21", + "version": "3.0.22", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iobroker.hm-rega", - "version": "3.0.21", + "version": "3.0.22", "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^2.4.0", diff --git a/package.json b/package.json index 1758f64..aaf5394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.hm-rega", - "version": "3.0.21", + "version": "3.0.22", "engines": { "node": ">=10.0.0" },