iobroker.hue 3.6.3 → 3.7.1
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 +9 -0
- package/admin/i18n/de/translations.json +5 -5
- package/admin/i18n/zh-cn/translations.json +1 -1
- package/admin/words.js +6 -6
- package/io-package.json +37 -37
- package/lib/gulptools.js +8 -4
- package/lib/hueHelper.js +279 -260
- package/main.js +275 -99
- package/package.json +14 -11
package/README.md
CHANGED
|
@@ -73,6 +73,15 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie
|
|
|
73
73
|
Placeholder for the next version (at the beginning of the line):
|
|
74
74
|
### __WORK IN PROGRESS__
|
|
75
75
|
-->
|
|
76
|
+
### 3.7.1 (2022-07-12)
|
|
77
|
+
* (Eistee82) also update state for `CLIPGenericFlag` sensors
|
|
78
|
+
|
|
79
|
+
### 3.7.0 (2022-05-30)
|
|
80
|
+
* (foxriver76) support software sensor `CLIPGenericFlag` (closes #328)
|
|
81
|
+
|
|
82
|
+
### 3.6.5 (2022-01-11)
|
|
83
|
+
* (foxriver76) correctly identify third party switches (closes #273)
|
|
84
|
+
|
|
76
85
|
### 3.6.3 (2022-01-09)
|
|
77
86
|
* (foxriver76) added `info.connection` state (closes #268)
|
|
78
87
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"\"Legacy\" structure": "\"Legacy\"-Struktur",
|
|
3
|
-
"Auto setup": "
|
|
3
|
+
"Auto setup": "Automatisches Setup",
|
|
4
4
|
"Bridge Address": "Bridge-Adresse",
|
|
5
5
|
"Bridge User": "Bridge-Benutzer",
|
|
6
6
|
"Bridge port": "Bridge-Port",
|
|
7
7
|
"Cannot find bridge": "Kann keine Bridge finden",
|
|
8
8
|
"Close": "Schließen",
|
|
9
9
|
"Create User": "Erstelle User",
|
|
10
|
-
"Enable adapter first": "
|
|
11
|
-
"Find Bridge": "
|
|
10
|
+
"Enable adapter first": "Adapter bitte zuerst aktivieren",
|
|
11
|
+
"Find Bridge": "Bridge suchen",
|
|
12
12
|
"Ignore groups": "Gruppen ignorieren",
|
|
13
13
|
"Ignore scenes": "Szenen ignorieren",
|
|
14
|
-
"Instruction": "Bitte Link
|
|
14
|
+
"Instruction": "Bitte Link-Knopf der Bridge drücken! <br />Sie haben 30 Sekunden.",
|
|
15
15
|
"Minimal polling interval is 2 seconds": "Das minimale Abfrageintervall beträgt 2 Sekunden",
|
|
16
16
|
"Native turn off/on behaviour": "Natives Ein- und Ausschaltverhalten",
|
|
17
17
|
"Ok": "Ok",
|
|
18
|
-
"Philips HUE adapter settings": "Philips HUE
|
|
18
|
+
"Philips HUE adapter settings": "Philips HUE Adaptereinstellungen",
|
|
19
19
|
"Please wait, searching for bridge.": "Bitte warten, suche nach Bridge.",
|
|
20
20
|
"Polling": "Polling",
|
|
21
21
|
"Polling interval (sec)": "Pollintervall(sek)",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"Instruction": "请立即按下链接按钮! ",
|
|
15
15
|
"Minimal polling interval is 2 seconds": "最小轮询间隔为2秒",
|
|
16
16
|
"Native turn off/on behaviour": "本机关闭/打开行为",
|
|
17
|
-
"Ok": "
|
|
17
|
+
"Ok": "确定",
|
|
18
18
|
"Philips HUE adapter settings": "飞利浦 HUE 适配器设置",
|
|
19
19
|
"Please wait, searching for bridge.": "请稍候,正在寻找桥梁。",
|
|
20
20
|
"Polling": "轮询",
|
package/admin/words.js
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
systemDictionary = {
|
|
5
5
|
"\"Legacy\" structure": { "en": "\"Legacy\" structure", "de": "\"Legacy\"-Struktur", "ru": "\"Наследие\" структура", "pt": "Estrutura \"herdada\"", "nl": "\"Legacy\"-structuur", "fr": "\"Legacy\" structure", "it": "Struttura \"legacy\"", "es": "Estructura \"heredada\"", "pl": "Struktura „Legacy”", "zh-cn": "“传统”结构"},
|
|
6
|
-
"Auto setup": { "en": "Auto setup", "de": "
|
|
6
|
+
"Auto setup": { "en": "Auto setup", "de": "Automatisches Setup", "ru": "Авто настройка", "pt": "Configuração automática", "nl": "Auto setup", "fr": "Auto setup", "it": "Auto setup", "es": "Auto setup", "pl": "Auto setup", "zh-cn": "自动设置"},
|
|
7
7
|
"Bridge Address": { "en": "Bridge Address", "de": "Bridge-Adresse", "ru": "Адрес HUE bridge", "pt": "Bridge Address", "nl": "Bridge Address", "fr": "Bridge Address", "it": "Bridge Address", "es": "Bridge Address", "pl": "Bridge Address", "zh-cn": "网桥地址"},
|
|
8
8
|
"Bridge User": { "en": "Bridge User", "de": "Bridge-Benutzer", "ru": "Пользователь hue bridge", "pt": "Bridge User", "nl": "Bridge User", "fr": "Bridge User", "it": "Bridge User", "es": "Bridge User", "pl": "Bridge User", "zh-cn": "网桥用户"},
|
|
9
9
|
"Bridge port": { "en": "Bridge port", "de": "Bridge-Port", "ru": "Порт HUE bridge", "pt": "Bridge port", "nl": "Bridge port", "fr": "Bridge port", "it": "Bridge port", "es": "Bridge port", "pl": "Bridge port", "zh-cn": "桥口"},
|
|
10
10
|
"Cannot find bridge": { "en": "Cannot find bridge", "de": "Kann keine Bridge finden", "ru": "Не удается найти хаб", "pt": "Não é possível encontrar bridge", "nl": "Ik kan bridge niet vinden", "fr": "Impossible de trouver le bridge", "it": "Non riesci a trovare il bridge", "es": "No se puede encontrar el bridge", "pl": "Nie mogę znaleźć bridge", "zh-cn": "找不到桥"},
|
|
11
11
|
"Close": { "en": "Close", "de": "Schließen", "ru": "Закрыть", "pt": "Perto", "nl": "Dichtbij", "fr": "Fermer", "it": "Vicino", "es": "Cerca", "pl": "Blisko", "zh-cn": "关闭"},
|
|
12
12
|
"Create User": { "en": "Create User", "de": "Erstelle User", "ru": "Создать пользователя", "pt": "Create User", "nl": "Create User", "fr": "Create User", "it": "Create User", "es": "Create User", "pl": "Create User", "zh-cn": "创建用户"},
|
|
13
|
-
"Enable adapter first": { "en": "Enable adapter first", "de": "
|
|
14
|
-
"Find Bridge": { "en": "Find Bridge", "de": "
|
|
13
|
+
"Enable adapter first": { "en": "Enable adapter first", "de": "Adapter bitte zuerst aktivieren", "ru": "Сначала надо активировать драйвер", "pt": "Primeiro ative o adaptador", "nl": "Enable adapter first", "fr": "Enable adapter first", "it": "Enable adapter first", "es": "Enable adapter first", "pl": "Enable adapter first", "zh-cn": "首先启用适配器"},
|
|
14
|
+
"Find Bridge": { "en": "Find Bridge", "de": "Bridge suchen", "ru": "Найти HUE bridge", "pt": "Procurar Bridge", "nl": "Find Bridge", "fr": "Find Bridge", "it": "Find Bridge", "es": "Find Bridge", "pl": "Find Bridge", "zh-cn": "找桥"},
|
|
15
15
|
"Ignore groups": { "en": "Ignore groups", "de": "Gruppen ignorieren", "ru": "Игнорировать группы", "pt": "Ignorar grupos", "nl": "Negeer groepen", "fr": "Ignorer les groupes", "it": "Ignora gruppi", "es": "Ignorar grupos", "pl": "Ignoruj grupy", "zh-cn": "忽略组"},
|
|
16
16
|
"Ignore scenes": { "en": "Ignore scenes", "de": "Szenen ignorieren", "ru": "Игнорировать сцены", "pt": "Ignorar cenas", "nl": "Negeer scènes", "fr": "Ignorer les scènes", "it": "Ignora le scene", "es": "Ignorar escenas", "pl": "Ignoruj sceny", "zh-cn": "忽略场景"},
|
|
17
|
-
"Instruction": { "en": "Please press link button now! <br />You have 30 seconds.", "de": "Bitte Link
|
|
17
|
+
"Instruction": { "en": "Please press link button now! <br />You have 30 seconds.", "de": "Bitte Link-Knopf der Bridge drücken! <br />Sie haben 30 Sekunden.", "ru": "Нажмите ссылку снизу кнопки в течении следующих 30 секунд.", "pt": "Please press link button now! <br />You have 30 seconds.", "nl": "Please press link button now! <br />You have 30 seconds.", "fr": "Please press link button now! <br />You have 30 seconds.", "it": "Please press link button now! <br />You have 30 seconds.", "es": "Please press link button now! <br />You have 30 seconds.", "pl": "Please press link button now! <br />You have 30 seconds.", "zh-cn": "请立即按下链接按钮! "},
|
|
18
18
|
"Minimal polling interval is 2 seconds": { "en": "Minimal polling interval is 2 seconds", "de": "Das minimale Abfrageintervall beträgt 2 Sekunden", "ru": "Минимальный интервал опроса составляет 2 секунды", "pt": "O intervalo mínimo de pesquisa é de 2 segundos", "nl": "Minimaal polling-interval is 2 seconden", "fr": "L'intervalle d'interrogation minimal est de 2 secondes", "it": "L'intervallo di polling minimo è di 2 secondi", "es": "El intervalo mínimo de sondeo es de 2 segundos.", "pl": "Minimalny interwał odpytywania wynosi 2 sekundy", "zh-cn": "最小轮询间隔为2秒"},
|
|
19
19
|
"Native turn off/on behaviour": { "en": "Native turn off/on behaviour", "de": "Natives Ein- und Ausschaltverhalten", "ru": "Родное поведение включения / выключения", "pt": "Comportamento de ativação / desativação nativo", "nl": "Eigen in- / uitschakelgedrag", "fr": "Comportement natif d'activation / désactivation", "it": "Disattivazione / attivazione nativa del comportamento", "es": "Comportamiento nativo de apagado / encendido", "pl": "Natywne zachowanie wyłączania / włączania", "zh-cn": "本机关闭/打开行为"},
|
|
20
|
-
"Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "Ok", "fr": "Ok", "it": "Ok", "es": "Ok", "pl": "Ok", "zh-cn": "
|
|
21
|
-
"Philips HUE adapter settings": { "en": "Philips HUE adapter settings", "de": "Philips HUE
|
|
20
|
+
"Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "Ok", "fr": "Ok", "it": "Ok", "es": "Ok", "pl": "Ok", "zh-cn": "确定"},
|
|
21
|
+
"Philips HUE adapter settings": { "en": "Philips HUE adapter settings", "de": "Philips HUE Adaptereinstellungen", "ru": "Настройки драйвера Philips HUE", "pt": "Philips HUE adapter settings", "nl": "Philips HUE adapter settings", "fr": "Philips HUE adapter settings", "it": "Philips HUE adapter settings", "es": "Philips HUE adapter settings", "pl": "Philips HUE adapter settings", "zh-cn": "飞利浦 HUE 适配器设置"},
|
|
22
22
|
"Please wait, searching for bridge.": { "en": "Please wait, searching for bridge.", "de": "Bitte warten, suche nach Bridge.", "ru": "Подождите, ищу хаб.", "pt": "Por favor aguarde, procurando por bridge.", "nl": "Even geduld, op zoek naar bridge.", "fr": "Veuillez patienter, recherche de bridge.", "it": "Per favore aspetta, cercando il bridge.", "es": "Por favor espera, busca bridge.", "pl": "Proszę czekać, szukając bridge.", "zh-cn": "请稍候,正在寻找桥梁。"},
|
|
23
23
|
"Polling": { "en": "Polling", "de": "Polling", "ru": "Опрос", "pt": "Polling", "nl": "Polling", "fr": "Polling", "it": "Polling", "es": "Polling", "pl": "Polling", "zh-cn": "轮询"},
|
|
24
24
|
"Polling interval (sec)": { "en": "Polling interval(sec)", "de": "Pollintervall(sek)", "ru": "Интервал опроса(сек)", "pt": "Polling interval(sec)", "nl": "Polling interval(sec)", "fr": "Polling interval(sec)", "it": "Polling interval(sec)", "es": "Polling interval(sec)", "pl": "Polling interval(sec)", "zh-cn": "轮询间隔(秒)"},
|
package/io-package.json
CHANGED
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "hue",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.7.1",
|
|
5
5
|
"tier": 2,
|
|
6
6
|
"news": {
|
|
7
|
+
"3.7.1": {
|
|
8
|
+
"en": "also update state for `CLIPGenericFlag` sensors",
|
|
9
|
+
"de": "auch Zustand für CLIPGenericFlag Sensoren aktualisieren",
|
|
10
|
+
"ru": "также обновить состояние для датчиков CLIPGenericFlag",
|
|
11
|
+
"pt": "também atualizar estado para sensores CLIPGenericFlag",
|
|
12
|
+
"nl": "ook updates voor CLIPGenericFlag sensoren",
|
|
13
|
+
"fr": "également mettre à jour l'état pour les capteurs CLIPGenericFlag",
|
|
14
|
+
"it": "anche aggiornare lo stato per i sensori CLIPGenericFlag",
|
|
15
|
+
"es": "también actualización estado para sensores CLIPGenericFlag",
|
|
16
|
+
"pl": "zaktualizowano również stan CLIPGenericFlag",
|
|
17
|
+
"zh-cn": "还更新了克里米尔的传感器状况"
|
|
18
|
+
},
|
|
19
|
+
"3.7.0": {
|
|
20
|
+
"en": "support software sensor `CLIPGenericFlag` (closes #328)",
|
|
21
|
+
"de": "Support-Software-Sensor `CLIPGenericFlag` (schließt #328)",
|
|
22
|
+
"ru": "датчик поддержки программного обеспечения `CLIPGenericFlag` (закрывает #328)",
|
|
23
|
+
"pt": "sensor de software de suporte `CLIPGenericFlag` (fecha #328)",
|
|
24
|
+
"nl": "ondersteuningssoftware sensor `CLIPGenericFlag` (sluit #328)",
|
|
25
|
+
"fr": "prend en charge le capteur logiciel `CLIPGenericFlag` (ferme #328)",
|
|
26
|
+
"it": "supporto software sensore `CLIPGenericFlag` (chiude #328)",
|
|
27
|
+
"es": "sensor de software de soporte `CLIPGenericFlag` (cierra #328)",
|
|
28
|
+
"pl": "obsługa czujnika oprogramowania `CLIPGenericFlag` (zamyka #328)",
|
|
29
|
+
"zh-cn": "支持软件传感器“CLIPGenericFlag”(关闭#328)"
|
|
30
|
+
},
|
|
31
|
+
"3.6.5": {
|
|
32
|
+
"en": "correctly identify third party switches (closes #273)",
|
|
33
|
+
"de": "Schalter von Drittanbietern richtig identifizieren (schließt #273)",
|
|
34
|
+
"ru": "правильно идентифицировать сторонние переключатели (закрывает # 273)",
|
|
35
|
+
"pt": "identificar corretamente os switches de terceiros (fecha o nº 273)",
|
|
36
|
+
"nl": "identificeer schakelaars van derden correct (sluit #273 af)",
|
|
37
|
+
"fr": "identifier correctement les commutateurs tiers (ferme #273)",
|
|
38
|
+
"it": "identificare correttamente gli interruttori di terze parti (chiude il n. 273)",
|
|
39
|
+
"es": "identificar correctamente los interruptores de terceros (cierra #273)",
|
|
40
|
+
"pl": "poprawnie zidentyfikować przełączniki firm trzecich (zamyka #273)",
|
|
41
|
+
"zh-cn": "正确识别第三方开关(关闭 #273)"
|
|
42
|
+
},
|
|
7
43
|
"3.6.3": {
|
|
8
44
|
"en": "added `info.connection` state (closes #268)",
|
|
9
45
|
"de": "Status `info.connection` hinzugefügt (schließt #268)",
|
|
@@ -51,42 +87,6 @@
|
|
|
51
87
|
"es": "permite activar escenas a través del estado `comando`, esto permite iniciar una escena con` tiempo de transición`",
|
|
52
88
|
"pl": "pozwala na wyzwalanie scen poprzez stan `command`, pozwala to na uruchomienie sceny z `transitiontime`",
|
|
53
89
|
"zh-cn": "允许通过 `command` 状态触发场景,这允许使用 `transitiontime` 启动场景"
|
|
54
|
-
},
|
|
55
|
-
"3.5.31": {
|
|
56
|
-
"en": "ct value fix of #234 ported for 0 (All) group",
|
|
57
|
-
"de": "ct-Wert-Fix von #234 portiert für 0 (Alle) Gruppe",
|
|
58
|
-
"ru": "Исправлено значение ct # 234, перенесенное для группы 0 (All)",
|
|
59
|
-
"pt": "correção do valor ct de # 234 portado para o grupo 0 (todos)",
|
|
60
|
-
"nl": "ct-waarde fix van #234 geport voor 0 (Alle) groep",
|
|
61
|
-
"fr": "Correction de la valeur ct de #234 porté pour le groupe 0 (Tous)",
|
|
62
|
-
"it": "Correzione del valore ct di #234 portato per il gruppo 0 (Tutti)",
|
|
63
|
-
"es": "Corrección del valor ct de # 234 portado para el grupo 0 (Todos)",
|
|
64
|
-
"pl": "Ustalona wartość ct z #234 przeniesiona dla grupy 0 (Wszystkie)",
|
|
65
|
-
"zh-cn": "为 0(所有)组移植的 #234 的 ct 值修复"
|
|
66
|
-
},
|
|
67
|
-
"3.5.30": {
|
|
68
|
-
"en": "we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
69
|
-
"de": "wir reparierten Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
70
|
-
"ru": "мы исправили Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
71
|
-
"pt": "consertamos Sentinela IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
72
|
-
"nl": "we hebben Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J gerepareerd",
|
|
73
|
-
"fr": "nous avons corrigé Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
74
|
-
"it": "abbiamo riparato Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
75
|
-
"es": "arreglamos Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
76
|
-
"pl": "naprawiliśmy Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
|
|
77
|
-
"zh-cn": "我们修复了 Sentry IOBROKER-HUE-1K、IOBROKER-HUE-A、IOBROKER-HUE-1J"
|
|
78
|
-
},
|
|
79
|
-
"3.5.29": {
|
|
80
|
-
"en": "Caught SENTRY error.",
|
|
81
|
-
"de": "SENTRY-Fehler abgefangen.",
|
|
82
|
-
"ru": "Обнаружена ошибка SENTRY.",
|
|
83
|
-
"pt": "Erro SENTRY detectado.",
|
|
84
|
-
"nl": "SENTRY-fout gedetecteerd.",
|
|
85
|
-
"fr": "Erreur SENTRY détectée.",
|
|
86
|
-
"it": "Rilevato errore SENTRY.",
|
|
87
|
-
"es": "Error de SENTRY detectado.",
|
|
88
|
-
"pl": "Wykryto błąd SENTRY.",
|
|
89
|
-
"zh-cn": "发现哨兵错误。"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"titleLang": {
|
package/lib/gulptools.js
CHANGED
|
@@ -56,8 +56,10 @@ async function translateYandex(text, targetLang, yandex) {
|
|
|
56
56
|
targetLang = 'zh';
|
|
57
57
|
}
|
|
58
58
|
try {
|
|
59
|
-
const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${yandex}&text=${encodeURIComponent(
|
|
60
|
-
|
|
59
|
+
const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${yandex}&text=${encodeURIComponent(
|
|
60
|
+
text
|
|
61
|
+
)}&lang=en-${targetLang}`;
|
|
62
|
+
const response = await axios({ url, timeout: 15000 });
|
|
61
63
|
if (response.data && response.data['text']) {
|
|
62
64
|
return response.data['text'][0];
|
|
63
65
|
}
|
|
@@ -75,8 +77,10 @@ async function translateYandex(text, targetLang, yandex) {
|
|
|
75
77
|
*/
|
|
76
78
|
async function translateGoogle(text, targetLang) {
|
|
77
79
|
try {
|
|
78
|
-
const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(
|
|
79
|
-
|
|
80
|
+
const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(
|
|
81
|
+
text
|
|
82
|
+
)}&ie=UTF-8&oe=UTF-8`;
|
|
83
|
+
const response = await axios({ url, timeout: 15000 });
|
|
80
84
|
if (isArray(response.data)) {
|
|
81
85
|
// we got a valid response
|
|
82
86
|
return response.data[0][0][0];
|