Skip to content

Commit

Permalink
chore: release v3.0.40
Browse files Browse the repository at this point in the history
* (foxriver76) if LGW is not reachable we now set duty cycle to `null` instead of `-1`
  • Loading branch information
foxriver76 committed Apr 3, 2022
1 parent 4273ae4 commit 23d551e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 22 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ with the ioBroker CLI. You can change the port via `iob set hm-rega.<instance> -
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### 3.0.40 (2022-04-03)
* (foxriver76) if LGW is not reachable we now set duty cycle to `null` instead of `-1`

### 3.0.39 (2022-03-26)
* (foxriver76) fixed another `ValueList` bug

Expand Down
26 changes: 13 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "hm-rega",
"version": "3.0.39",
"version": "3.0.40",
"news": {
"3.0.40": {
"en": "if LGW is not reachable we now set duty cycle to `null` instead of `-1`",
"de": "Wenn LGW nicht erreichbar ist, setzen wir jetzt den Arbeitszyklus auf \"Null\" anstelle von \"-1\".",
"ru": "если LGW недоступен, мы теперь устанавливаем рабочий цикл на «ноль» вместо «-1».",
"pt": "se LGW não for alcançável, agora definimos o ciclo de trabalho como `null` em vez de `-1`",
"nl": "als LGW niet bereikbaar is, stellen we de duty cycle nu in op `null` in plaats van `-1`",
"fr": "si LGW n'est pas accessible, nous définissons maintenant le rapport cyclique sur \"null\" au lieu de \"-1\"",
"it": "se LGW non è raggiungibile, ora impostiamo il duty cycle su `null` invece di `-1`",
"es": "si no se puede acceder a LGW, ahora establecemos el ciclo de trabajo en `nulo` en lugar de `-1`",
"pl": "jeśli LGW nie jest osiągalne, ustawiamy teraz cykl pracy na „null” zamiast „-1”",
"zh-cn": "如果无法访问 LGW,我们现在将占空比设置为“空”而不是“-1”"
},
"3.0.39": {
"en": "fixed another `ValueList` bug",
"de": "Ein weiterer `ValueList`-Bug wurde behoben",
Expand Down Expand Up @@ -74,18 +86,6 @@
"es": "(martin-herzog/foxriver76) arregló una llamada no necesaria que generaba advertencias en el registro de registro",
"pl": "(martin-herzog/foxriver76) naprawiono nieoczekiwane połączenie, które prowadziło do ostrzeżeń w dzienniku rega",
"zh-cn": "(martin-herzog/foxriver76) 修复了导致 rega 日志中警告的 unnedded 调用"
},
"3.0.33": {
"en": "if function or room names on CCU include dots, we replace them (fixes Sentry IOBROKER-HM-REGA-3H)",
"de": "Wenn Funktions- oder Raumnamen auf der CCU Punkte enthalten, ersetzen wir diese (behebt Sentry IOBROKER-HM-REGA-3H)",
"ru": "если в названиях функций или комнат на CCU есть точки, мы их заменяем (исправляет Sentry IOBROKER-HM-REGA-3H)",
"pt": "se os nomes da função ou da sala no CCU incluem pontos, nós os substituímos (corrige o Sentinela IOBROKER-HM-REGA-3H)",
"nl": "als functie- of kamernamen op CCU punten bevatten, vervangen we deze (repareert Sentry IOBROKER-HM-REGA-3H)",
"fr": "si les noms de fonction ou de pièce sur le CCU incluent des points, nous les remplaçons (corrige Sentry IOBROKER-HM-REGA-3H)",
"it": "se i nomi delle funzioni o delle stanze sulla CCU includono punti, li sostituiamo (corregge Sentry IOBROKER-HM-REGA-3H)",
"es": "si los nombres de función o sala en CCU incluyen puntos, los reemplazamos (corrige Sentry IOBROKER-HM-REGA-3H)",
"pl": "jeśli nazwy funkcji lub pomieszczeń na CCU zawierają kropki, zastępujemy je (poprawki Sentry IOBROKER-HM-REGA-3H)",
"zh-cn": "如果 CCU 上的功能或房间名称包含点,我们将替换它们(修复 Sentry IOBROKER-HM-REGA-3H)"
}
},
"title": "HomeMatic ReGaHSS",
Expand Down
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1907,22 +1907,24 @@ async function getDutyCycle() {
read: true,
write: false,
role: 'value',
min: -1,
min: 0,
max: 100,
unit: '%',
desc: 'Dutycycle'
},
native: {
ID: 'DUTYCYCLE',
TYPE: 'INTEGER',
MIN: -1,
MIN: 0,
MAX: 100,
UNIT: '%',
DEFAULT: 0,
CONTROL: 'NONE'
}
};
await addNewStateOrObject(stateDutycycle, parseInt(dp.DUTY_CYCLE));

const dutyCycle = parseInt(dp.DUTY_CYCLE);
await addNewStateOrObject(stateDutycycle, dutyCycle === -1 ? null : dutyCycle);
}

//CONNECTED State:
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.hm-rega",
"version": "3.0.39",
"version": "3.0.40",
"engines": {
"node": ">=10.0.0"
},
Expand Down Expand Up @@ -42,7 +42,7 @@
"eslint-plugin-prettier": "^4.0.0",
"gulp": "^4.0.2",
"mocha": "^9.2.0",
"prettier": "^2.6.1"
"prettier": "^2.6.2"
},
"bugs": {
"url": "https://github.com/ioBroker/ioBroker.hm-rega/issues"
Expand Down

0 comments on commit 23d551e

Please sign in to comment.