From d613cdc7ea95a62eb57c923001eaba2159142701 Mon Sep 17 00:00:00 2001 From: Moritz Heusinger Date: Mon, 3 May 2021 11:01:36 +0200 Subject: [PATCH] chore: release v3.5.13 we fixed some more types --- README.md | 2 +- io-package.json | 26 +++++++++++++------------- main.js | 14 +++++++++----- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 57fdfda9..5925ad59 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie ### __WORK IN PROGRESS__ --> -### __WORK IN PROGRESS__ +### 3.5.13 (2021-05-03) * (foxriver76) we fixed some more types ### 3.5.12 (2021-05-02) diff --git a/io-package.json b/io-package.json index 555ff5ab..e8d69ba1 100644 --- a/io-package.json +++ b/io-package.json @@ -1,9 +1,21 @@ { "common": { "name": "hue", - "version": "3.5.12", + "version": "3.5.13", "tier": 2, "news": { + "3.5.13": { + "en": "we fixed some more types", + "de": "Wir haben einige weitere Typen behoben", + "ru": "мы исправили еще несколько типов", + "pt": "nós consertamos mais alguns tipos", + "nl": "we hebben nog wat meer soorten gerepareerd", + "fr": "nous avons corrigé d'autres types", + "it": "abbiamo corretto altri tipi", + "es": "arreglamos algunos tipos más", + "pl": "naprawiliśmy kilka innych typów", + "zh-cn": "我们修复了更多类型" + }, "3.5.12": { "en": "we give skipped switches common.type 'mixed' instead of none\nwe have corrected the min max of color temperature (empirically found)", "de": "Wir geben übersprungene Schalter common.type 'gemischt' anstelle von keiner\nWir haben das minimale Maximum der Farbtemperatur korrigiert (empirisch gefunden).", @@ -231,18 +243,6 @@ "es": " introduzca el estado `allOn` para grupos,` anyOn` y `allOn` ahora son controlables y actúan como el estado` on`, cuando se usa el comportamiento nativo de encendido / apagado, el cambio de brillo de los grupos parcialmente activados no se activa", "pl": " wprowadzamy stan „allOn” dla grup, „anyOn” i „allOn” są teraz sterowane i działają jak stan „on”, gdy stosowane jest natywne zachowanie włączania / wyłączania, zmiana jasności częściowo włączonych grup nie zmieni się", "zh-cn": " 为组引入“ allOn”状态,“ anyOn”和“ allOn”现在是可控的,就像“ on”状态一样,当使用本机打开/关闭行为时,部分打开的组的亮度变化不会打开" - }, - "3.2.9": { - "en": "fixed issues on user creation", - "de": "Probleme bei der Benutzererstellung behoben", - "ru": "исправлены ошибки при создании пользователя", - "pt": "problemas corrigidos na criação do usuário", - "nl": "opgeloste problemen bij het maken van gebruikers", - "fr": "correction de problèmes lors de la création d'utilisateurs", - "it": "risolti i problemi relativi alla creazione dell'utente", - "es": "problemas resueltos en la creación de usuarios", - "pl": "naprawiono problemy z tworzeniem użytkowników", - "zh-cn": "解决了用户创建方面的问题" } }, "titleLang": { diff --git a/main.js b/main.js index a1c308b3..55b006a9 100644 --- a/main.js +++ b/main.js @@ -1163,8 +1163,8 @@ async function connect() { lobj.common.type = 'number'; lobj.common.role = 'level.color.temperature'; lobj.common.unit = '°K'; - lobj.common.min = 2200; // 500 - lobj.common.max = 6500; // 153 + lobj.common.min = 2179; // 500 + lobj.common.max = 6536; // 153 value = Math.round(1e6 / value); break; case 'alert': @@ -1349,6 +1349,8 @@ async function connect() { gobj.common.unit = '°'; gobj.common.min = 0; gobj.common.max = 360; + // rescale to max of 360 instead of max 65535 + group.action[action] = Math.round(group.action[action] / 65535 * 360); break; case 'sat': gobj.common.type = 'number'; @@ -1364,15 +1366,17 @@ async function connect() { gobj.common.type = 'number'; gobj.common.role = 'level.color.temperature'; gobj.common.unit = '°K'; - gobj.common.min = 2200; // 500 - gobj.common.max = 6500; // 153 + gobj.common.min = 2179; // 500 + gobj.common.max = 6536; // 153 + // mired to kelvin + group.action[action] = Math.round(1e6 / group.action[action]); break; case 'alert': gobj.common.type = 'string'; gobj.common.role = 'switch'; break; case 'effect': - gobj.common.type = 'boolean'; + gobj.common.type = 'string'; gobj.common.role = 'switch'; break; case 'colormode': diff --git a/package-lock.json b/package-lock.json index 0d14dc7d..b73f6190 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.hue", - "version": "3.5.12", + "version": "3.5.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iobroker.hue", - "version": "3.5.12", + "version": "3.5.13", "license": "Apache-2.0", "dependencies": { "@iobroker/adapter-core": "^2.4.0", diff --git a/package.json b/package.json index a6d5beb6..b4da3562 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.hue", - "version": "3.5.12", + "version": "3.5.13", "description": "Connects Philips Hue LED Bulbs, Friends of Hue LED Lamps and Stripes and other SmartLink capable Devices (LivingWhites, some LivingColors) via Philips Hue Bridges", "author": "hobbyquaker ", "contributors": [