iobroker.hue 3.5.29 → 3.5.30
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 +9 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -58,6 +58,9 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie
|
|
|
58
58
|
Placeholder for the next version (at the beginning of the line):
|
|
59
59
|
### __WORK IN PROGRESS__
|
|
60
60
|
-->
|
|
61
|
+
### 3.5.30 (2021-11-14)
|
|
62
|
+
* (foxriver76) we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J
|
|
63
|
+
|
|
61
64
|
### 3.5.29 (2021-11-14)
|
|
62
65
|
* (bluefox) Caught SENTRY error.
|
|
63
66
|
|
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.30",
|
|
5
5
|
"tier": 2,
|
|
6
6
|
"news": {
|
|
7
|
+
"3.5.30": {
|
|
8
|
+
"en": "we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
9
|
+
"de": "wir reparierten Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
10
|
+
"ru": "мы исправили Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
11
|
+
"pt": "consertamos Sentinela IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
12
|
+
"nl": "we hebben Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J gerepareerd",
|
|
13
|
+
"fr": "nous avons corrigé Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
14
|
+
"it": "abbiamo riparato Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
15
|
+
"es": "arreglamos Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
16
|
+
"pl": "naprawiliśmy Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
17
|
+
"zh-cn": "我们修复了 Sentry IOBROKER-HUE-1K、IOBROKER-HUE-A、IOBROKER-HUE-1J"
|
|
18
|
+
},
|
|
7
19
|
"3.5.29": {
|
|
8
20
|
"en": "Caught SENTRY error.",
|
|
9
21
|
"de": "SENTRY-Fehler abgefangen.",
|
|
@@ -75,18 +87,6 @@
|
|
|
75
87
|
"es": "si no podemos determinar el valor de ct correcto, no lo configuraremos (arreglos # 234)",
|
|
76
88
|
"pl": "jeśli nie możemy określić prawidłowej wartości ct, nie ustawimy jej (poprawki #234)",
|
|
77
89
|
"zh-cn": "如果我们无法确定正确的 ct 值,我们将不会设置它(修复 #234)"
|
|
78
|
-
},
|
|
79
|
-
"3.5.23": {
|
|
80
|
-
"en": "fix for third party devices delivering wrong ct values",
|
|
81
|
-
"de": "Fix für Geräte von Drittanbietern, die falsche ct-Werte liefern",
|
|
82
|
-
"ru": "исправить для сторонних устройств, доставляющих неправильные значения ct",
|
|
83
|
-
"pt": "correção para dispositivos de terceiros que fornecem valores CT incorretos",
|
|
84
|
-
"nl": "oplossing voor apparaten van derden die verkeerde ct-waarden leveren",
|
|
85
|
-
"fr": "correctif pour les appareils tiers fournissant des valeurs de ct erronées",
|
|
86
|
-
"it": "correzione per dispositivi di terze parti che forniscono valori ct errati",
|
|
87
|
-
"es": "corrección para dispositivos de terceros que entregan valores de CT incorrectos",
|
|
88
|
-
"pl": "poprawka dla urządzeń firm trzecich dostarczających błędne wartości ct",
|
|
89
|
-
"zh-cn": "修复提供错误 ct 值的第三方设备"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -319,8 +319,12 @@ function startAdapter(options) {
|
|
|
319
319
|
// create lightState from ls and check values
|
|
320
320
|
let lightState = /(LightGroup)|(Room)|(Zone)|(Entertainment)/g.test(obj.common.role) ? new v3.lightStates.GroupLightState() : new v3.lightStates.LightState();
|
|
321
321
|
if (parseInt(ls.bri) > 0) {
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
const bri = Math.min(254, ls.bri);
|
|
323
|
+
if (isNaN(bri)) {
|
|
324
|
+
throw new Error(`Error on converting value for bri: ${bri} - ${ls.bri} (${typeof ls.bri})`);
|
|
325
|
+
}
|
|
326
|
+
lightState = lightState.bri(bri);
|
|
327
|
+
finalLS.bri = bri;
|
|
324
328
|
// if nativeTurnOnOffBehaviour -> only turn group on if no lamp is on yet on brightness change
|
|
325
329
|
if (!adapter.config.nativeTurnOffBehaviour || !alls['anyOn']) {
|
|
326
330
|
finalLS.on = true;
|
|
@@ -439,9 +443,9 @@ function startAdapter(options) {
|
|
|
439
443
|
|
|
440
444
|
// only available in command state
|
|
441
445
|
if ('transitiontime' in ls) {
|
|
442
|
-
const transitiontime = parseInt(ls.transitiontime);
|
|
446
|
+
const transitiontime = Math.max(0, Math.min(65535, parseInt(ls.transitiontime)));
|
|
443
447
|
if (!isNaN(transitiontime)) {
|
|
444
|
-
finalLS.transitiontime =
|
|
448
|
+
finalLS.transitiontime = transitiontime
|
|
445
449
|
lightState = lightState.transitiontime(transitiontime);
|
|
446
450
|
}
|
|
447
451
|
}
|
|
@@ -883,7 +887,7 @@ async function connect() {
|
|
|
883
887
|
});
|
|
884
888
|
} // endCatch
|
|
885
889
|
|
|
886
|
-
if (!config) {
|
|
890
|
+
if (!config || !config.config) {
|
|
887
891
|
adapter.log.warn(`Could not get configuration from HUE bridge (${adapter.config.bridge}:${adapter.config.port})`);
|
|
888
892
|
await new Promise(resolve => {
|
|
889
893
|
reconnectTimeout = setTimeout(connect, 5000, resolve);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.hue",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.30",
|
|
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": [
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"test:package": "mocha test/packageFiles --exit",
|
|
48
48
|
"test:integration": "mocha test/integrationAdapter --exit",
|
|
49
49
|
"test": "mocha --exit",
|
|
50
|
-
"release": "release-script
|
|
50
|
+
"release": "release-script",
|
|
51
|
+
"release-patch": "release-script patch --yes",
|
|
51
52
|
"release-minor": "release-script minor --yes",
|
|
52
53
|
"release-major": "release-script major --yes"
|
|
53
54
|
},
|