iobroker.hue 3.5.27 → 3.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/io-package.json +13 -13
- package/main.js +14 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,9 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie
|
|
|
59
59
|
Placeholder for the next version (at the beginning of the line):
|
|
60
60
|
### __WORK IN PROGRESS__
|
|
61
61
|
-->
|
|
62
|
+
### 3.5.28 (2021-11-04)
|
|
63
|
+
* (foxriver76) another fix for ivnalid ct values (fixes #234)
|
|
64
|
+
|
|
62
65
|
### 3.5.27 (2021-11-01)
|
|
63
66
|
* (foxriver76) we fixed missing object type of some scenes (closes #255)
|
|
64
67
|
|
package/io-package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "hue",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.28",
|
|
5
5
|
"tier": 2,
|
|
6
6
|
"news": {
|
|
7
|
+
"3.5.28": {
|
|
8
|
+
"en": "another fix for ivnalid ct values (fixes #234)",
|
|
9
|
+
"de": "ein weiterer Fix für ivnalid ct-Werte (Fixes #234)",
|
|
10
|
+
"ru": "еще одно исправление для значений ct ivnalid (исправления # 234)",
|
|
11
|
+
"pt": "outra correção para valores ivnalid ct (correções # 234)",
|
|
12
|
+
"nl": "een andere oplossing voor ivnalid ct-waarden (fixes #234)",
|
|
13
|
+
"fr": "un autre correctif pour les valeurs ivnalid ct (corrections #234)",
|
|
14
|
+
"it": "un'altra correzione per i valori ct ivnalid (correzioni #234)",
|
|
15
|
+
"es": "otra corrección para los valores de ivnalid ct (correcciones # 234)",
|
|
16
|
+
"pl": "kolejna poprawka dla wartości ivnalid ct (poprawki #234)",
|
|
17
|
+
"zh-cn": "ivnalid ct 值的另一个修复(修复 #234)"
|
|
18
|
+
},
|
|
7
19
|
"3.5.27": {
|
|
8
20
|
"en": "we fixed missing object type of some scenes (closes #255)",
|
|
9
21
|
"de": "wir haben den fehlenden Objekttyp einiger Szenen behoben (schließt #255)",
|
|
@@ -75,18 +87,6 @@
|
|
|
75
87
|
"es": "Se corrigieron varios problemas de centinela (cierra # 217, cierra # 218, cierra # 219, cierra # 220)",
|
|
76
88
|
"pl": "naprawiono kilka błędów wartowników (zamykanie #217, zamykanie #218, zamykanie #219, zamykanie #220)",
|
|
77
89
|
"zh-cn": "修复了几个哨兵问题(关闭#217,关闭#218,关闭#219,关闭#220)"
|
|
78
|
-
},
|
|
79
|
-
"3.5.20": {
|
|
80
|
-
"en": "we now define minimum ct of groups to 2000 instead of 2179 (fixes #216)",
|
|
81
|
-
"de": "wir definieren jetzt die minimale Anzahl von Gruppen auf 2000 statt 2179 (Fixes #216)",
|
|
82
|
-
"ru": "теперь мы определяем минимальный ct групп равным 2000 вместо 2179 (исправления # 216)",
|
|
83
|
-
"pt": "agora definimos o ct mínimo de grupos para 2.000 em vez de 2.179 (correções # 216)",
|
|
84
|
-
"nl": "we definiëren nu minimum ct van groepen tot 2000 in plaats van 2179 (fixes #216)",
|
|
85
|
-
"fr": "nous définissons maintenant le nombre minimum de groupes à 2000 au lieu de 2179 (corrections #216)",
|
|
86
|
-
"it": "ora definiamo il ct minimo di gruppi a 2000 invece di 2179 (correzioni #216)",
|
|
87
|
-
"es": "ahora definimos ct mínimo de grupos a 2000 en lugar de 2179 (arreglos # 216)",
|
|
88
|
-
"pl": "teraz definiujemy minimalny ct grup do 2000 zamiast 2179 (poprawki #216)",
|
|
89
|
-
"zh-cn": "我们现在将组的最小 ct 定义为 2000 而不是 2179(修复 #216)"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -1179,7 +1179,7 @@ async function connect() {
|
|
|
1179
1179
|
lobj.common.min = Math.round(1e6 / ctObj.max); // this way, because with higher Kelvin -> smaller Mired
|
|
1180
1180
|
lobj.common.max = Math.round(1e6 / ctObj.min);
|
|
1181
1181
|
value = Math.round(1e6 / value);
|
|
1182
|
-
if (
|
|
1182
|
+
if (!isFinite(value)) { // issue #234
|
|
1183
1183
|
// invalid value we cannot determine the meant value, fallback to max
|
|
1184
1184
|
value = lobj.common.max;
|
|
1185
1185
|
}
|
|
@@ -1393,6 +1393,10 @@ async function connect() {
|
|
|
1393
1393
|
gobj.common.max = 6536; // 153
|
|
1394
1394
|
// mired to kelvin
|
|
1395
1395
|
group.action[action] = Math.round(1e6 / group.action[action]);
|
|
1396
|
+
if (!isFinite(group.action[action])) { // issue #234
|
|
1397
|
+
// invalid value we cannot determine the meant value, fallback to max
|
|
1398
|
+
group.action[action] = gobj.common.max;
|
|
1399
|
+
}
|
|
1396
1400
|
break;
|
|
1397
1401
|
case 'alert':
|
|
1398
1402
|
gobj.common.type = 'string';
|
|
@@ -1817,7 +1821,7 @@ async function poll() {
|
|
|
1817
1821
|
states.ct = Math.round(1e6 / states.ct);
|
|
1818
1822
|
|
|
1819
1823
|
// some devices send 0 -> infinity (issue #234)
|
|
1820
|
-
if (
|
|
1824
|
+
if (!isFinite(states.ct)) {
|
|
1821
1825
|
// invalid value we cannot determine the meant value
|
|
1822
1826
|
adapter.log.debug(`Cannot determine ct value of "${light.name}", received value "${states.ct}"`);
|
|
1823
1827
|
delete states.ct;
|
|
@@ -1888,9 +1892,17 @@ async function poll() {
|
|
|
1888
1892
|
if (states.hue !== undefined) {
|
|
1889
1893
|
states.hue = Math.round(states.hue / 65535 * 360);
|
|
1890
1894
|
}
|
|
1895
|
+
|
|
1891
1896
|
if (states.ct !== undefined) {
|
|
1892
1897
|
// convert color temperature from mired to kelvin
|
|
1893
1898
|
states.ct = Math.round(1e6 / states.ct);
|
|
1899
|
+
|
|
1900
|
+
// some devices send 0 -> infinity (issue #234)
|
|
1901
|
+
if (!isFinite(states.ct)) {
|
|
1902
|
+
// invalid value we cannot determine the meant value
|
|
1903
|
+
adapter.log.debug(`Cannot determine ct value of "${groupName}", received value "${states.ct}"`);
|
|
1904
|
+
delete states.ct;
|
|
1905
|
+
}
|
|
1894
1906
|
}
|
|
1895
1907
|
|
|
1896
1908
|
// Next two are entertainment states
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.hue",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.28",
|
|
4
4
|
"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",
|
|
5
5
|
"author": "hobbyquaker <hq@ccu.io>",
|
|
6
6
|
"contributors": [
|