iobroker.hue 3.5.28 → 3.6.0

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 CHANGED
@@ -1,6 +1,5 @@
1
1
  ![Logo](admin/hue.jpeg)
2
2
  # ioBroker Philips Hue Bridge Adapter
3
- ==============
4
3
 
5
4
  ![Number of Installations](http://iobroker.live/badges/hue-installed.svg)
6
5
  ![Number of Installations](http://iobroker.live/badges/hue-stable.svg)
@@ -25,7 +24,7 @@ This adapter connects your Philips Hue Bridges with ioBroker to control Philips
25
24
  Once you have installed this adapter within ioBroker, create an adapter instance accordingly. Next, you need to connect your Hue bridge with ioBroker within the adapter settings:
26
25
  1. If you are using another bridge than v2, configure port to 80 (non-https), else 443 (https) should be the way to go.
27
26
  2. Click on "Find Bridge" button to get the IP address of your bridge. This will search for all bridges in your environment. Then select the bridge to which you want to connect. The field "Bridge Address" will be populated with the IP address of your chosen Hue bridge.
28
- 3. Next, click on "Create User" button in the settings and then walk to your Hue bridge device, so your hardware, to push its round button. You'll gonna have 30 seconds to proceed. Once you pushed the button, the field "Bridge User" should be populated with a generated string.
27
+ 3. Next, click on "Create User" button in the settings and then walk to your Hue bridge device, so your hardware, to push its round button. You'll be going to have 30 seconds to proceed. Once you pushed the button, the field "Bridge User" should be populated with a generated string.
29
28
  4. Modify any other options in the adapter settings and then select "save and close".
30
29
  5. Finally, you should be all set: The adapter will generate all objects to control your Hue devices accordingly.
31
30
 
@@ -36,31 +35,58 @@ Please note: Adapter settings button "Find Bridge" will be inactive if field "Br
36
35
  |---|---|
37
36
  |__Bridge address__|IP address of your Hue bridge, you can try to detect it by pressing `Find Bridge` button.|
38
37
  |__Port__|Port of your Hue bridge, normally 443 (SSL) and 80 (non-SSL).|
39
- |__SSL__|If checked, connecton is secured via SSL, port will automatically change to 443 (it is strongly recommended to use SSL).|
38
+ |__SSL__|If checked, connection is secured via SSL, port will automatically change to 443 (it is strongly recommended to use SSL).|
40
39
  |__User__|Username of your bridge user. You can create it, by pressing `Create User` button and following the screen instructions.|
41
40
  |__Ignore scenes__|If checked, scenes will not be shown/controlled by the adapter.|
42
41
  |__Ignore groups__|If checked, groups will not be shown/controlled by the adapter.|
43
- |__"Legacy" structure__|To support backwards compatibility, it is possible to hold an old object structure in ioBroker. This old structure is `hue.<instance_number>.<brdige_name_channel>.<light_or_group_channel>.<state>`. The new structure removes `<brdige_name_channel>` and thus makes it necessary to adapt old scripts, etc. If an existing old strcuture is detected by the adapter, the structure will be used without checking the checkbox. However, if migration from old to new structure is desired, delete the whole `hue.<instance_number>` namespace once.
42
+ |__"Legacy" structure__|To support backwards compatibility, it is possible to hold an old object structure in ioBroker. This old structure is `hue.<instance_number>.<bridge_name_channel>.<light_or_group_channel>.<state>`. The new structure removes `<bridge_name_channel>` and thus makes it necessary to adapt old scripts, etc. If an existing old structure is detected by the adapter, the structure will be used without checking the checkbox. However, if migration from old to new structure is desired, delete the whole `hue.<instance_number>` namespace once.
44
43
  |__Native turn off/on behaviour__|If checked, the adapter will turn on/off lights in the same fashion as the native Hue app does. Otherwise, lamps will be set to a level of 100 % when switched on. Additionally when a group is already turned on, setting the brightness level will affect only the already turned on lamps and will not turn the lamps on, which are currently turned off.|
45
44
  |__Sync software sensors__|Also sync software sensors. These are virtual sensors, e.g. created by Hue Labs scenes. By controlling the `status` datapoint of such a sensor you can start/stop scenes which follow this logic. In most cases `0` turns scene off and `1` turns it on.|
46
45
  |__Polling__|If checked, the adapter will poll state changes, otherwise it can only be used to control lamps, not to show their status.|
47
46
  |__Polling interval__|Defines how often the states will be polled, and thus updated in ioBroker. Low polling intervals can cause performance issues in some settings. Hence, the minimum allowed polling interval is 2 seconds. If polling interval is set to less than 2 seconds it will be set to 2 seconds during runtime.|
48
47
 
48
+ ### Commands
49
+ Command states (e.g. `hue.0.All.command`) can be used to set multiple commands to the bridge.
50
+ This allows to set a group or a light to a specific state using e.g. a transiton time.
51
+
52
+ ```javascript
53
+ setState('hue.0.All.command', { "bri": 50, "transitiontime": 30 }, false);
54
+ ```
55
+
56
+ For groups which contain scenes, like `hue.0.Wohnzimmer.scene_hell` the scenes can also be activated with a transitiontime.
57
+ To do this, pass the scene argument to the corresponding command.
58
+
59
+ ```javascript
60
+ setState('hue.0.All.Wohnzimmer', { "scene": "hell", "transitiontime": 30 }, false);
61
+ ```
62
+
49
63
  ### Additional information
50
64
  With version 3.3.0 the group states `anyOn` and `allOn` became controllable, note that they will just act like the `on` state,
51
65
  when controlled. In some cases, it may be desirable to have a controllable `anyOn` state in your visualization.
52
66
 
53
67
  ## Deutsch :de:
54
68
  Bindet Philips Hue / LivingColors / LivingWhites Lampen ein.
55
- In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfiguriert werden. Um einen User zu aktivieren einmal auf create user drücken und dann innerhalb von 30 Sekunden den Button an der Hue bridge drücken. Dann wird automatisch der User übergeben.
69
+ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfiguriert werden. Um einen User zu aktivieren, einmal auf create user drücken und dann innerhalb von 30 Sekunden den Button an der Hue bridge drücken. Dann wird automatisch der User übergeben.
56
70
 
57
71
  ## Changelog
58
72
  <!--
59
73
  Placeholder for the next version (at the beginning of the line):
60
74
  ### __WORK IN PROGRESS__
61
75
  -->
76
+ ### 3.6.0 (2021-12-30)
77
+ * (foxriver76) allow to trigger scenes via `command` state, this allows to start a scene with `transitiontime`
78
+
79
+ ### 3.5.31 (2021-11-20)
80
+ * (foxriver76) ct value fix of #234 ported for 0 (All) group
81
+
82
+ ### 3.5.30 (2021-11-14)
83
+ * (foxriver76) we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J
84
+
85
+ ### 3.5.29 (2021-11-14)
86
+ * (bluefox) Caught SENTRY error.
87
+
62
88
  ### 3.5.28 (2021-11-04)
63
- * (foxriver76) another fix for ivnalid ct values (fixes #234)
89
+ * (foxriver76) another fix for invalid ct values (fixes #234)
64
90
 
65
91
  ### 3.5.27 (2021-11-01)
66
92
  * (foxriver76) we fixed missing object type of some scenes (closes #255)
@@ -423,4 +449,4 @@ __ATTENTION: Remove all objects once, ids have changed__
423
449
  Apache 2.0
424
450
 
425
451
  Copyright (c) 2017-2021 Bluefox <dogafox@gmail.com>
426
- Copyright (c) 2014-2016 hobbyquaker
452
+ Copyright (c) 2014-2016 hobbyquaker
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "\"Legacy\"-Struktur",
3
+ "Auto setup": "Auto-Setup",
4
+ "Bridge Address": "Bridge-Adresse",
5
+ "Bridge User": "Bridge-Benutzer",
6
+ "Bridge port": "Bridge-Port",
7
+ "Cannot find bridge": "Kann keine Bridge finden",
8
+ "Close": "Schließen",
9
+ "Create User": "Erstelle User",
10
+ "Enable adapter first": "Aktivier Adapter zuerst",
11
+ "Find Bridge": "Suche Bridge",
12
+ "Ignore groups": "Gruppen ignorieren",
13
+ "Ignore scenes": "Szenen ignorieren",
14
+ "Instruction": "Bitte Link unter dem Knopf klicken! <br />Sie haben 30 Sekunden.",
15
+ "Minimal polling interval is 2 seconds": "Das minimale Abfrageintervall beträgt 2 Sekunden",
16
+ "Native turn off/on behaviour": "Natives Ein- und Ausschaltverhalten",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Bitte warten, suche nach Bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Pollintervall(sek)",
22
+ "Select a bridge:": "Wähle eine Bridge aus:",
23
+ "Settings": "Einstellungen",
24
+ "Sync software sensors": "Software-Sensoren synchronisieren",
25
+ "error creating user: ": "Fehler beim Erzeugen des Benutzers: ",
26
+ "error finding bridge": "Fehler beim Finden der Brücke",
27
+ "ignoreOsram": "ignoriere Osram",
28
+ "link button not pressed": "Link-Knopf nicht gedruckt",
29
+ "polling_warning": "Hinweis: Der Adapter kann nur 10 Befehle in 1 Sekunde senden."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "\"Legacy\" structure",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Cannot find bridge",
8
+ "Close": "Close",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Ignore groups",
13
+ "Ignore scenes": "Ignore scenes",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "Minimal polling interval is 2 seconds",
16
+ "Native turn off/on behaviour": "Native turn off/on behaviour",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Please wait, searching for bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Sync software sensors",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Notice: Adapter may send only 10 commands in 1 second."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "Estructura \"heredada\"",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "No se puede encontrar el bridge",
8
+ "Close": "Cerca",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Ignorar grupos",
13
+ "Ignore scenes": "Ignorar escenas",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "El intervalo mínimo de sondeo es de 2 segundos.",
16
+ "Native turn off/on behaviour": "Comportamiento nativo de apagado / encendido",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Por favor espera, busca bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Sincronizar sensores de software",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Aviso: el adaptador puede enviar solo 10 comandos en 1 segundo."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "\"Legacy\" structure",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Impossible de trouver le bridge",
8
+ "Close": "Fermer",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Ignorer les groupes",
13
+ "Ignore scenes": "Ignorer les scènes",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "L'intervalle d'interrogation minimal est de 2 secondes",
16
+ "Native turn off/on behaviour": "Comportement natif d'activation / désactivation",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Veuillez patienter, recherche de bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Capteurs logiciels de synchronisation",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Avis: L'adaptateur peut envoyer seulement 10 commandes en 1 seconde."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "Struttura \"legacy\"",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Non riesci a trovare il bridge",
8
+ "Close": "Vicino",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Ignora gruppi",
13
+ "Ignore scenes": "Ignora le scene",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "L'intervallo di polling minimo è di 2 secondi",
16
+ "Native turn off/on behaviour": "Disattivazione / attivazione nativa del comportamento",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Per favore aspetta, cercando il bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Sincronizza i sensori del software",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Avviso: l'adattatore può inviare solo 10 comandi in 1 secondo."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "\"Legacy\"-structuur",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Ik kan bridge niet vinden",
8
+ "Close": "Dichtbij",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Negeer groepen",
13
+ "Ignore scenes": "Negeer scènes",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "Minimaal polling-interval is 2 seconden",
16
+ "Native turn off/on behaviour": "Eigen in- / uitschakelgedrag",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Even geduld, op zoek naar bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Synchroniseer software sensoren",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Opmerking: de adapter verzendt slechts 10 opdrachten in 1 seconde."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "Struktura „Legacy”",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Nie mogę znaleźć bridge",
8
+ "Close": "Blisko",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Find Bridge",
12
+ "Ignore groups": "Ignoruj ​​grupy",
13
+ "Ignore scenes": "Ignoruj sceny",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "Minimalny interwał odpytywania wynosi 2 sekundy",
16
+ "Native turn off/on behaviour": "Natywne zachowanie wyłączania / włączania",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Proszę czekać, szukając bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Synchronizuj czujniki oprogramowania",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Uwaga: Adapter może wysłać tylko 10 poleceń w ciągu 1 sekundy."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "Estrutura \"herdada\"",
3
+ "Auto setup": "Auto setup",
4
+ "Bridge Address": "Bridge Address",
5
+ "Bridge User": "Bridge User",
6
+ "Bridge port": "Bridge port",
7
+ "Cannot find bridge": "Não é possível encontrar bridge",
8
+ "Close": "Perto",
9
+ "Create User": "Create User",
10
+ "Enable adapter first": "Enable adapter first",
11
+ "Find Bridge": "Procurar Bridge",
12
+ "Ignore groups": "Ignorar grupos",
13
+ "Ignore scenes": "Ignorar cenas",
14
+ "Instruction": "Please press link button now! <br />You have 30 seconds.",
15
+ "Minimal polling interval is 2 seconds": "O intervalo mínimo de pesquisa é de 2 segundos",
16
+ "Native turn off/on behaviour": "Comportamento de ativação / desativação nativo",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Philips HUE adapter settings",
19
+ "Please wait, searching for bridge.": "Por favor aguarde, procurando por bridge.",
20
+ "Polling": "Polling",
21
+ "Polling interval (sec)": "Polling interval(sec)",
22
+ "Select a bridge:": "Select a bridge:",
23
+ "Settings": "Settings",
24
+ "Sync software sensors": "Sincronizar sensores de software",
25
+ "error creating user: ": "error creating user: ",
26
+ "error finding bridge": "error finding bridge",
27
+ "ignoreOsram": "ignore Osram",
28
+ "link button not pressed": "link button not pressed",
29
+ "polling_warning": "Aviso: O adaptador pode enviar apenas 10 comandos em 1 segundo."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "\"Наследие\" структура",
3
+ "Auto setup": "Авто настройка",
4
+ "Bridge Address": "Адрес HUE bridge",
5
+ "Bridge User": "Пользователь hue bridge",
6
+ "Bridge port": "Порт HUE bridge",
7
+ "Cannot find bridge": "Не удается найти хаб",
8
+ "Close": "Закрыть",
9
+ "Create User": "Создать пользователя",
10
+ "Enable adapter first": "Сначала надо активировать драйвер",
11
+ "Find Bridge": "Найти HUE bridge",
12
+ "Ignore groups": "Игнорировать группы",
13
+ "Ignore scenes": "Игнорировать сцены",
14
+ "Instruction": "Нажмите ссылку снизу кнопки в течении следующих 30 секунд.",
15
+ "Minimal polling interval is 2 seconds": "Минимальный интервал опроса составляет 2 секунды",
16
+ "Native turn off/on behaviour": "Родное поведение включения / выключения",
17
+ "Ok": "Ok",
18
+ "Philips HUE adapter settings": "Настройки драйвера Philips HUE",
19
+ "Please wait, searching for bridge.": "Подождите, ищу хаб.",
20
+ "Polling": "Опрос",
21
+ "Polling interval (sec)": "Интервал опроса(сек)",
22
+ "Select a bridge:": "Выберите хаб:",
23
+ "Settings": "Настройки",
24
+ "Sync software sensors": "Синхронизация программного обеспечения датчиков",
25
+ "error creating user: ": "Ошибка создания пользователя: ",
26
+ "error finding bridge": "ошибка обнаружения моста",
27
+ "ignoreOsram": "игнорировать Osram",
28
+ "link button not pressed": "Кнопка для соединения не нажата.",
29
+ "polling_warning": "Примечание. Адаптер может отправлять только 10 команд за 1 секунду."
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "\"Legacy\" structure": "“传统”结构",
3
+ "Auto setup": "自动设置",
4
+ "Bridge Address": "网桥地址",
5
+ "Bridge User": "网桥用户",
6
+ "Bridge port": "桥口",
7
+ "Cannot find bridge": "找不到桥",
8
+ "Close": "关闭",
9
+ "Create User": "创建用户",
10
+ "Enable adapter first": "首先启用适配器",
11
+ "Find Bridge": "找桥",
12
+ "Ignore groups": "忽略组",
13
+ "Ignore scenes": "忽略场景",
14
+ "Instruction": "请立即按下链接按钮! ",
15
+ "Minimal polling interval is 2 seconds": "最小轮询间隔为2秒",
16
+ "Native turn off/on behaviour": "本机关闭/打开行为",
17
+ "Ok": "好的",
18
+ "Philips HUE adapter settings": "飞利浦 HUE 适配器设置",
19
+ "Please wait, searching for bridge.": "请稍候,正在寻找桥梁。",
20
+ "Polling": "轮询",
21
+ "Polling interval (sec)": "轮询间隔(秒)",
22
+ "Select a bridge:": "选择桥:",
23
+ "Settings": "设置",
24
+ "Sync software sensors": "同步软件传感器",
25
+ "error creating user: ": "创建用户时出错:",
26
+ "error finding bridge": "查错桥",
27
+ "ignoreOsram": "忽略欧司朗",
28
+ "link button not pressed": "未按下链接按钮",
29
+ "polling_warning": "注意:适配器在1秒钟内只能发送10条命令。"
30
+ }
package/io-package.json CHANGED
@@ -1,9 +1,57 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "hue",
4
- "version": "3.5.28",
4
+ "version": "3.6.0",
5
5
  "tier": 2,
6
6
  "news": {
7
+ "3.6.0": {
8
+ "en": "allow to trigger scenes via `command` state, this allows to start a scene with `transitiontime`",
9
+ "de": "Ermöglicht das Auslösen von Szenen über den 'Befehl'-Zustand, dies ermöglicht das Starten einer Szene mit 'Übergangszeit'",
10
+ "ru": "позволяют запускать сцены через состояние `command`, это позволяет запускать сцену с` transitiontime`",
11
+ "pt": "permite acionar cenas via estado `command`, isso permite iniciar uma cena com` tempo de transição`",
12
+ "nl": "laat toe om scènes te activeren via de status `commando`, dit maakt het mogelijk om een scène te starten met `overgangstijd`",
13
+ "fr": "permet de déclencher des scènes via l'état \"commande\", cela permet de démarrer une scène avec \"temps de transition\"",
14
+ "it": "permette di attivare scene tramite lo stato `comando`, questo permette di avviare una scena con `transitiontime`",
15
+ "es": "permite activar escenas a través del estado `comando`, esto permite iniciar una escena con` tiempo de transición`",
16
+ "pl": "pozwala na wyzwalanie scen poprzez stan `command`, pozwala to na uruchomienie sceny z `transitiontime`",
17
+ "zh-cn": "允许通过 `command` 状态触发场景,这允许使用 `transitiontime` 启动场景"
18
+ },
19
+ "3.5.31": {
20
+ "en": "ct value fix of #234 ported for 0 (All) group",
21
+ "de": "ct-Wert-Fix von #234 portiert für 0 (Alle) Gruppe",
22
+ "ru": "Исправлено значение ct # 234, перенесенное для группы 0 (All)",
23
+ "pt": "correção do valor ct de # 234 portado para o grupo 0 (todos)",
24
+ "nl": "ct-waarde fix van #234 geport voor 0 (Alle) groep",
25
+ "fr": "Correction de la valeur ct de #234 porté pour le groupe 0 (Tous)",
26
+ "it": "Correzione del valore ct di #234 portato per il gruppo 0 (Tutti)",
27
+ "es": "Corrección del valor ct de # 234 portado para el grupo 0 (Todos)",
28
+ "pl": "Ustalona wartość ct z #234 przeniesiona dla grupy 0 (Wszystkie)",
29
+ "zh-cn": "为 0(所有)组移植的 #234 的 ct 值修复"
30
+ },
31
+ "3.5.30": {
32
+ "en": "we fixed Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
33
+ "de": "wir reparierten Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
34
+ "ru": "мы исправили Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
35
+ "pt": "consertamos Sentinela IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
36
+ "nl": "we hebben Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J gerepareerd",
37
+ "fr": "nous avons corrigé Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
38
+ "it": "abbiamo riparato Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
39
+ "es": "arreglamos Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
40
+ "pl": "naprawiliśmy Sentry IOBROKER-HUE-1K, IOBROKER-HUE-A, IOBROKER-HUE-1J",
41
+ "zh-cn": "我们修复了 Sentry IOBROKER-HUE-1K、IOBROKER-HUE-A、IOBROKER-HUE-1J"
42
+ },
43
+ "3.5.29": {
44
+ "en": "Caught SENTRY error.",
45
+ "de": "SENTRY-Fehler abgefangen.",
46
+ "ru": "Обнаружена ошибка SENTRY.",
47
+ "pt": "Erro SENTRY detectado.",
48
+ "nl": "SENTRY-fout gedetecteerd.",
49
+ "fr": "Erreur SENTRY détectée.",
50
+ "it": "Rilevato errore SENTRY.",
51
+ "es": "Error de SENTRY detectado.",
52
+ "pl": "Wykryto błąd SENTRY.",
53
+ "zh-cn": "发现哨兵错误。"
54
+ },
7
55
  "3.5.28": {
8
56
  "en": "another fix for ivnalid ct values (fixes #234)",
9
57
  "de": "ein weiterer Fix für ivnalid ct-Werte (Fixes #234)",
@@ -39,54 +87,6 @@
39
87
  "es": "solucionó un problema con el nombre de usuario establecido en la API de Hue (corrige 249)\ntraducción fija de la ventana emergente de búsqueda (arreglos # 247)",
40
88
  "pl": "naprawiono problem z nazwą użytkownika ustawioną w Hue API (poprawki 249)\npoprawione tłumaczenie wyskakującego okienka wyszukiwania (poprawki #247)",
41
89
  "zh-cn": "修复了 Hue API 中设置的用户名问题(修复 249)\n搜索弹出窗口的固定翻译(修复#247)"
42
- },
43
- "3.5.25": {
44
- "en": "if we cannot determine correct ct value, we won't set it (fixes #234)",
45
- "de": "Wenn wir den korrekten ct-Wert nicht bestimmen können, werden wir ihn nicht festlegen (fixes #234)",
46
- "ru": "если мы не можем определить правильное значение ct, мы не будем его устанавливать (исправления # 234)",
47
- "pt": "se não pudermos determinar o valor correto de ct, não o definiremos (corrige # 234)",
48
- "nl": "als we de juiste ct-waarde niet kunnen bepalen, stellen we deze niet in (fixes #234)",
49
- "fr": "si nous ne pouvons pas déterminer la valeur ct correcte, nous ne la définirons pas (corrections #234)",
50
- "it": "se non riusciamo a determinare il valore ct corretto, non lo imposteremo (correzioni #234)",
51
- "es": "si no podemos determinar el valor de ct correcto, no lo configuraremos (arreglos # 234)",
52
- "pl": "jeśli nie możemy określić prawidłowej wartości ct, nie ustawimy jej (poprawki #234)",
53
- "zh-cn": "如果我们无法确定正确的 ct 值,我们将不会设置它(修复 #234)"
54
- },
55
- "3.5.24": {
56
- "en": "if we cannot determine correct ct value, we won't set it (fixes #234)",
57
- "de": "Wenn wir den korrekten ct-Wert nicht bestimmen können, werden wir ihn nicht festlegen (fixes #234)",
58
- "ru": "если мы не можем определить правильное значение ct, мы не будем его устанавливать (исправления # 234)",
59
- "pt": "se não pudermos determinar o valor correto de ct, não o definiremos (corrige # 234)",
60
- "nl": "als we de juiste ct-waarde niet kunnen bepalen, stellen we deze niet in (fixes #234)",
61
- "fr": "si nous ne pouvons pas déterminer la valeur ct correcte, nous ne la définirons pas (corrections #234)",
62
- "it": "se non riusciamo a determinare il valore ct corretto, non lo imposteremo (correzioni #234)",
63
- "es": "si no podemos determinar el valor de ct correcto, no lo configuraremos (arreglos # 234)",
64
- "pl": "jeśli nie możemy określić prawidłowej wartości ct, nie ustawimy jej (poprawki #234)",
65
- "zh-cn": "如果我们无法确定正确的 ct 值,我们将不会设置它(修复 #234)"
66
- },
67
- "3.5.23": {
68
- "en": "fix for third party devices delivering wrong ct values",
69
- "de": "Fix für Geräte von Drittanbietern, die falsche ct-Werte liefern",
70
- "ru": "исправить для сторонних устройств, доставляющих неправильные значения ct",
71
- "pt": "correção para dispositivos de terceiros que fornecem valores CT incorretos",
72
- "nl": "oplossing voor apparaten van derden die verkeerde ct-waarden leveren",
73
- "fr": "correctif pour les appareils tiers fournissant des valeurs de ct erronées",
74
- "it": "correzione per dispositivi di terze parti che forniscono valori ct errati",
75
- "es": "corrección para dispositivos de terceros que entregan valores de CT incorrectos",
76
- "pl": "poprawka dla urządzeń firm trzecich dostarczających błędne wartości ct",
77
- "zh-cn": "修复提供错误 ct 值的第三方设备"
78
- },
79
- "3.5.22": {
80
- "en": "fixed several sentry issues (closes #217, closes #218, closes #219, closes #220)",
81
- "de": "Mehrere Wachenprobleme behoben (schließt #217, schließt #218, schließt #219, schließt #220)",
82
- "ru": "исправлено несколько проблем с часовой (закрывает # 217, закрывает # 218, закрывает # 219, закрывает # 220)",
83
- "pt": "corrigiu vários problemas de sentinela (fecha # 217, fecha # 218, fecha # 219, fecha # 220)",
84
- "nl": "verschillende schildwachtproblemen opgelost (sluit #217, sluit #218, sluit #219, sluit #220)",
85
- "fr": "correction de plusieurs problèmes de sentinelle (ferme #217, ferme #218, ferme #219, ferme #220)",
86
- "it": "risolti diversi problemi di sentinella (chiude #217, chiude #218, chiude #219, chiude #220)",
87
- "es": "Se corrigieron varios problemas de centinela (cierra # 217, cierra # 218, cierra # 219, cierra # 220)",
88
- "pl": "naprawiono kilka błędów wartowników (zamykanie #217, zamykanie #218, zamykanie #219, zamykanie #220)",
89
- "zh-cn": "修复了几个哨兵问题(关闭#217,关闭#218,关闭#219,关闭#220)"
90
90
  }
91
91
  },
92
92
  "titleLang": {
package/lib/gulptools.js CHANGED
@@ -1,4 +1,4 @@
1
- const axios = require("axios");
1
+ const axios = require('axios');
2
2
 
3
3
  /**
4
4
  * Tests whether the given variable is a real object and not an Array
@@ -10,7 +10,7 @@ function isObject(it) {
10
10
  // typeof null === 'object'
11
11
  // typeof [] === 'object'
12
12
  // [] instanceof Object === true
13
- return Object.prototype.toString.call(it) === "[object Object]";
13
+ return Object.prototype.toString.call(it) === '[object Object]';
14
14
  }
15
15
 
16
16
  /**
@@ -19,9 +19,11 @@ function isObject(it) {
19
19
  * @returns {it is any[]}
20
20
  */
21
21
  function isArray(it) {
22
- if (Array.isArray != null)
22
+ if (Array.isArray != null) {
23
23
  return Array.isArray(it);
24
- return Object.prototype.toString.call(it) === "[object Array]";
24
+ }
25
+
26
+ return Object.prototype.toString.call(it) === '[object Array]';
25
27
  }
26
28
 
27
29
  /**
@@ -32,7 +34,7 @@ function isArray(it) {
32
34
  * @returns {Promise<string>}
33
35
  */
34
36
  async function translateText(text, targetLang, yandex) {
35
- if (targetLang === "en") {
37
+ if (targetLang === 'en') {
36
38
  return text;
37
39
  }
38
40
  if (yandex) {
@@ -50,8 +52,8 @@ async function translateText(text, targetLang, yandex) {
50
52
  * @returns {Promise<string>}
51
53
  */
52
54
  async function translateYandex(text, targetLang, yandex) {
53
- if (targetLang === "zh-cn") {
54
- targetLang = "zh";
55
+ if (targetLang === 'zh-cn') {
56
+ targetLang = 'zh';
55
57
  }
56
58
  try {
57
59
  const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${yandex}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`;
@@ -59,7 +61,7 @@ async function translateYandex(text, targetLang, yandex) {
59
61
  if (response.data && response.data['text']) {
60
62
  return response.data['text'][0];
61
63
  }
62
- throw new Error("Invalid response for translate request");
64
+ throw new Error('Invalid response for translate request');
63
65
  } catch (e) {
64
66
  throw new Error(`Could not translate to "${targetLang}": ${e}`);
65
67
  }
@@ -79,7 +81,7 @@ async function translateGoogle(text, targetLang) {
79
81
  // we got a valid response
80
82
  return response.data[0][0][0];
81
83
  }
82
- throw new Error("Invalid response for translate request");
84
+ throw new Error('Invalid response for translate request');
83
85
  } catch (e) {
84
86
  throw new Error(`Could not translate to "${targetLang}": ${e}`);
85
87
  }
@@ -89,4 +91,4 @@ module.exports = {
89
91
  isArray,
90
92
  isObject,
91
93
  translateText
92
- };
94
+ };
package/lib/hueHelper.js CHANGED
@@ -102,8 +102,7 @@ const HelperGamutXYforModel = function (Px, Py, Model) {
102
102
  const PRG = VRP.x * VRG.y - VRP.y * VRG.x; // Sign Point on Red to Green
103
103
  const PGB = VGP.x * VGB.y - VGP.y * VGB.x; // Sign Point on Green to Blue
104
104
 
105
- if ((GBR * PBR >= 0) && (BRG * PRG >= 0) && (RGB * PGB >= 0)) // All Signs Match so Px,Py must be in triangle
106
- {
105
+ if ((GBR * PBR >= 0) && (BRG * PRG >= 0) && (RGB * PGB >= 0)) { // All Signs Match so Px,Py must be in triangle
107
106
  return {x: Px, y: Py};
108
107
  }
109
108
 
@@ -166,7 +165,7 @@ const HelperRGBtoHueAngSatBri = function (Red, Green, Blue) {
166
165
  Sat = 0;
167
166
  Bri = Max;
168
167
  }
169
- return {Ang: Ang, Sat: Sat, Bri: Bri};
168
+ return {Ang, Sat, Bri};
170
169
  };
171
170
 
172
171
  /**
@@ -254,7 +253,7 @@ const HelperXYBtoRGB = function (x, y, Brightness) { // Source: https://github.c
254
253
  if (Blue < 0) {
255
254
  Blue = 0;
256
255
  }
257
- return {Red: Red, Green: Green, Blue: Blue};
256
+ return {Red, Green, Blue};
258
257
  };
259
258
 
260
259
  exports.XYBtoRGB = HelperXYBtoRGB;
package/main.js CHANGED
@@ -2,7 +2,7 @@
2
2
  *
3
3
  * ioBroker Philips Hue Bridge Adapter
4
4
  *
5
- * Copyright (c) 2017-2019 Bluefox <dogafox@gmail.com>
5
+ * Copyright (c) 2017-2021 Bluefox <dogafox@gmail.com>
6
6
  * Copyright (c) 2014-2016 hobbyquaker *
7
7
  * Apache License
8
8
  *
@@ -250,11 +250,22 @@ function startAdapter(options) {
250
250
  }
251
251
  handleParam(idState, false);
252
252
  }
253
+
254
+ let sceneId;
253
255
  // Handle commands at the end because they overwrite also anything
254
256
  if (commandSupported && dp === 'command') {
255
257
  try {
256
258
  const commands = JSON.parse(state.val);
257
259
 
260
+ if (typeof commands.scene === 'string') {
261
+ // we need to get the id of the scene
262
+ const sceneObj = await adapter.getObjectAsync(`${channelId}.scene_${commands.scene.toLowerCase()}`);
263
+
264
+ if (sceneObj && sceneObj.native) {
265
+ sceneId = sceneObj.native.id;
266
+ }
267
+ }
268
+
258
269
  for (const command of Object.keys(commands)) {
259
270
  if (command === 'on') {
260
271
  // if on is the only command and nativeTurnOn is activated
@@ -318,9 +329,14 @@ function startAdapter(options) {
318
329
 
319
330
  // create lightState from ls and check values
320
331
  let lightState = /(LightGroup)|(Room)|(Zone)|(Entertainment)/g.test(obj.common.role) ? new v3.lightStates.GroupLightState() : new v3.lightStates.LightState();
332
+
321
333
  if (parseInt(ls.bri) > 0) {
322
- lightState = lightState.bri(Math.min(254, ls.bri));
323
- finalLS.bri = Math.min(254, ls.bri);
334
+ const bri = Math.min(254, ls.bri);
335
+ if (isNaN(bri)) {
336
+ throw new Error(`Error on converting value for bri: ${bri} - ${ls.bri} (${typeof ls.bri})`);
337
+ }
338
+ lightState = lightState.bri(bri);
339
+ finalLS.bri = bri;
324
340
  // if nativeTurnOnOffBehaviour -> only turn group on if no lamp is on yet on brightness change
325
341
  if (!adapter.config.nativeTurnOffBehaviour || !alls['anyOn']) {
326
342
  finalLS.on = true;
@@ -439,9 +455,9 @@ function startAdapter(options) {
439
455
 
440
456
  // only available in command state
441
457
  if ('transitiontime' in ls) {
442
- const transitiontime = parseInt(ls.transitiontime);
458
+ const transitiontime = Math.max(0, Math.min(65535, parseInt(ls.transitiontime)));
443
459
  if (!isNaN(transitiontime)) {
444
- finalLS.transitiontime = Math.max(0, Math.min(65535, transitiontime));
460
+ finalLS.transitiontime = transitiontime;
445
461
  lightState = lightState.transitiontime(transitiontime);
446
462
  }
447
463
  }
@@ -531,6 +547,11 @@ function startAdapter(options) {
531
547
  } // endElse
532
548
  }
533
549
 
550
+ // this can only happen for cmd - groups
551
+ if (sceneId !== undefined) {
552
+ lightState.scene(sceneId);
553
+ }
554
+
534
555
  blockedIds[id] = true;
535
556
 
536
557
  if (!adapter.config.ignoreGroups && /(LightGroup)|(Room)|(Zone)|(Entertainment)/g.test(obj.common.role)) {
@@ -545,8 +566,7 @@ function startAdapter(options) {
545
566
  adapter.log.debug(`updated group state (${groupIds[id]}) after change`);
546
567
  } catch (e) {
547
568
  adapter.log.error(`Could not set GroupState of ${obj.common.name}: ${e.message}`);
548
- } // endTryCatch
549
-
569
+ }
550
570
  } else if (obj.common.role === 'switch') {
551
571
  if (Object.prototype.hasOwnProperty.call(finalLS, 'on')) {
552
572
  finalLS = {on: finalLS.on};
@@ -761,6 +781,10 @@ async function updateGroupState(group) {
761
781
  if (states.ct !== undefined) {
762
782
  // convert color temperature from mired to kelvin
763
783
  states.ct = Math.round(1e6 / states.ct);
784
+ if (!isFinite(states.ct)) { // issue #234
785
+ // invalid value we cannot determine the meant value, fallback to max
786
+ states.ct = 6536; // 153
787
+ }
764
788
  }
765
789
 
766
790
  // Next two are entertainment states
@@ -883,7 +907,7 @@ async function connect() {
883
907
  });
884
908
  } // endCatch
885
909
 
886
- if (!config) {
910
+ if (!config || !config.config) {
887
911
  adapter.log.warn(`Could not get configuration from HUE bridge (${adapter.config.bridge}:${adapter.config.port})`);
888
912
  await new Promise(resolve => {
889
913
  reconnectTimeout = setTimeout(connect, 5000, resolve);
@@ -1274,6 +1298,7 @@ async function connect() {
1274
1298
  if (!config.groups) {
1275
1299
  adapter.log.error(`Could not get groups from API: ${JSON.stringify(config)}`);
1276
1300
  adapter.restart();
1301
+ return;
1277
1302
  }
1278
1303
 
1279
1304
  const groups = config.groups;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.hue",
3
- "version": "3.5.28",
3
+ "version": "3.6.0",
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": [
@@ -32,12 +32,13 @@
32
32
  "node-hue-api": "^4.0.10"
33
33
  },
34
34
  "devDependencies": {
35
- "@alcalzone/release-script": "^3.4.1",
35
+ "@alcalzone/release-script": "^3.4.2",
36
36
  "@alcalzone/release-script-plugin-iobroker": "^3.4.1",
37
+ "@alcalzone/release-script-plugin-license": "^3.4.1",
37
38
  "@iobroker/testing": "^2.5.2",
38
39
  "axios": "^0.24.0",
39
40
  "chai": "^4.3.4",
40
- "eslint": "^8.1.0",
41
+ "eslint": "^8.5.0",
41
42
  "gulp": "^4.0.2",
42
43
  "mocha": "^9.1.3"
43
44
  },
@@ -46,10 +47,20 @@
46
47
  "test:package": "mocha test/packageFiles --exit",
47
48
  "test:integration": "mocha test/integrationAdapter --exit",
48
49
  "test": "mocha --exit",
49
- "release": "release-script -p iobroker"
50
+ "release": "release-script",
51
+ "release-patch": "release-script patch --yes",
52
+ "release-minor": "release-script minor --yes",
53
+ "release-major": "release-script major --yes"
50
54
  },
51
55
  "bugs": {
52
56
  "url": "https://github.com/iobroker-community-adapters/ioBroker.hue/issues"
53
57
  },
54
- "main": "main.js"
58
+ "main": "main.js",
59
+ "files": [
60
+ "admin/",
61
+ "lib/",
62
+ "io-package.json",
63
+ "LICENSE",
64
+ "main.js"
65
+ ]
55
66
  }
@@ -1,34 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve the adapter
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots & Logfiles**
24
- If applicable, add screenshots and logfiles to help explain your problem.
25
-
26
- **Versions:**
27
- - Adapter version: <adapter-version>
28
- - JS-Controller version: <js-controller-version>
29
- - Node version: <node-version>
30
- - Operating system: <os-name>
31
- - Bridge model: <bridge-model>
32
-
33
- **Additional context**
34
- Add any other context about the problem here.
@@ -1,20 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: enhancement
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
@@ -1,17 +0,0 @@
1
- # Configure here which dependency updates should be merged automatically.
2
- # The recommended configuration is the following:
3
- - match:
4
- # Only merge patches for production dependencies
5
- dependency_type: production
6
- update_type: "semver:patch"
7
- - match:
8
- # Except for security fixes, here we allow minor patches
9
- dependency_type: production
10
- update_type: "security:minor"
11
- - match:
12
- # and development dependencies can have a minor update, too
13
- dependency_type: development
14
- update_type: "semver:minor"
15
-
16
- # The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
17
- # https://dependabot.com/docs/config-file/#automerged_updates
@@ -1,8 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: npm
4
- directory: "/"
5
- schedule:
6
- interval: weekly
7
- open-pull-requests-limit: 10
8
- versioning-strategy: increase
package/.github/stale.yml DELETED
@@ -1,78 +0,0 @@
1
- # Configuration for probot-stale - https://github.com/probot/stale
2
-
3
- # Number of days of inactivity before an Issue or Pull Request becomes stale
4
- daysUntilStale: 90
5
-
6
- # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7
- # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8
- daysUntilClose: 7
9
-
10
- # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11
- onlyLabels: []
12
-
13
- # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14
- exemptLabels:
15
- - enhancement
16
- - security
17
-
18
- # Set to true to ignore issues in a project (defaults to false)
19
- exemptProjects: true
20
-
21
- # Set to true to ignore issues in a milestone (defaults to false)
22
- exemptMilestones: true
23
-
24
- # Set to true to ignore issues with an assignee (defaults to false)
25
- exemptAssignees: false
26
-
27
- # Label to use when marking as stale
28
- staleLabel: wontfix
29
-
30
- # Comment to post when marking as stale. Set to `false` to disable
31
- markComment: >
32
- This issue has been automatically marked as stale because it has not had
33
- recent activity. It will be closed if no further activity occurs within the next 7 days.
34
- Please check if the issue is still relevant in the most current version of the adapter
35
- and tell us. Also check that all relevant details, logs and reproduction steps
36
- are included and update them if needed.
37
- Thank you for your contributions.
38
-
39
- Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab.
40
- Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden.
41
- Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist,
42
- und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte
43
- enthalten sind bzw. aktualisiert diese.
44
- Vielen Dank für Eure Unterstützung.
45
-
46
- # Comment to post when removing the stale label.
47
- # unmarkComment: >
48
- # Your comment here.
49
-
50
- # Comment to post when closing a stale Issue or Pull Request.
51
- closeComment: >
52
- This issue has been automatically closed because of inactivity. Please open a new
53
- issue if still relevant and make sure to include all relevant details, logs and
54
- reproduction steps.
55
- Thank you for your contributions.
56
-
57
- Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein
58
- neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details,
59
- Logs und Reproduktionsschritte enthalten sind.
60
- Vielen Dank für Eure Unterstützung.
61
-
62
- # Limit the number of actions per hour, from 1-30. Default is 30
63
- limitPerRun: 30
64
-
65
- # Limit to only `issues` or `pulls`
66
- only: issues
67
-
68
- # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
69
- # pulls:
70
- # daysUntilStale: 30
71
- # markComment: >
72
- # This pull request has been automatically marked as stale because it has not had
73
- # recent activity. It will be closed if no further activity occurs. Thank you
74
- # for your contributions.
75
-
76
- # issues:
77
- # exemptLabels:
78
- # - confirmed
@@ -1,22 +0,0 @@
1
- # Automatically merge Dependabot PRs when version comparison is within the range
2
- # that is configured in .github/auto-merge.yml
3
-
4
- name: Auto-Merge Dependabot PRs
5
-
6
- on:
7
- pull_request_target:
8
-
9
- jobs:
10
- auto-merge:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v2
15
-
16
- - name: Check if PR should be auto-merged
17
- uses: ahmadnassri/action-dependabot-auto-merge@v2
18
- with:
19
- # This must be a personal access token with push access
20
- github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
21
- # By default, squash and merge, so Github chooses nice commit messages
22
- command: squash and merge
@@ -1,138 +0,0 @@
1
- # This is a composition of lint and test scripts
2
- # Make sure to update this file along with the others
3
-
4
- name: Test and Release
5
-
6
- # Run this job on all pushes and pull requests
7
- # as well as tags with a semantic version
8
- on:
9
- push:
10
- branches:
11
- - '*'
12
- tags:
13
- # normal versions
14
- - "v?[0-9]+.[0-9]+.[0-9]+"
15
- # pre-releases
16
- - "v?[0-9]+.[0-9]+.[0-9]+-**"
17
- pull_request: {}
18
-
19
- jobs:
20
- # Performs quick checks before the expensive test runs
21
- check-and-lint:
22
- if: contains(github.event.head_commit.message, '[skip ci]') == false
23
-
24
- runs-on: ubuntu-latest
25
-
26
- strategy:
27
- matrix:
28
- node-version: [12.x]
29
-
30
- steps:
31
- - uses: actions/checkout@v1
32
- - name: Use Node.js ${{ matrix.node-version }}
33
- uses: actions/setup-node@v1
34
- with:
35
- node-version: ${{ matrix.node-version }}
36
-
37
- - name: Install Dependencies
38
- run: npm ci
39
-
40
- - name: Test package files
41
- run: npm run test:package
42
-
43
- # Runs adapter tests on all supported node versions and OSes
44
- adapter-tests:
45
- if: contains(github.event.head_commit.message, '[skip ci]') == false
46
-
47
- needs: [check-and-lint]
48
-
49
- runs-on: ${{ matrix.os }}
50
- strategy:
51
- matrix:
52
- node-version: [12.x, 14.x, 16.x]
53
- os: [ubuntu-latest, windows-latest, macos-latest]
54
-
55
- steps:
56
- - uses: actions/checkout@v1
57
- - name: Use Node.js ${{ matrix.node-version }}
58
- uses: actions/setup-node@v1
59
- with:
60
- node-version: ${{ matrix.node-version }}
61
-
62
- - name: Install Dependencies
63
- run: npm ci
64
-
65
- - name: Run integration tests (unix only)
66
- if: startsWith(runner.OS, 'windows') == false
67
- run: DEBUG=testing:* npm run test:integration
68
-
69
- - name: Run integration tests (windows only)
70
- if: startsWith(runner.OS, 'windows')
71
- run: set DEBUG=testing:* & npm run test:integration
72
-
73
- # Deploys the final package to NPM and Github Actions
74
- deploy:
75
- # Trigger this step only when a commit on master is tagged with a version number
76
- if: |
77
- contains(github.event.head_commit.message, '[skip ci]') == false &&
78
- github.event_name == 'push' &&
79
- startsWith(github.ref, 'refs/tags/v')
80
- needs: [adapter-tests]
81
-
82
- runs-on: ubuntu-latest
83
- strategy:
84
- matrix:
85
- node-version: [14.x]
86
-
87
- steps:
88
- - name: Checkout code
89
- uses: actions/checkout@v2
90
-
91
- - name: Use Node.js ${{ matrix.node-version }}
92
- uses: actions/setup-node@v1
93
- with:
94
- node-version: ${{ matrix.node-version }}
95
-
96
- - name: Extract the version and commit body from the tag
97
- id: extract_release
98
- # The body may be multiline, therefore we need to escape some characters
99
- run: |
100
- VERSION="${{ github.ref }}"
101
- VERSION=${VERSION##*/v}
102
- echo "::set-output name=VERSION::$VERSION"
103
- BODY=$(git show -s --format=%b)
104
- BODY="${BODY//'%'/'%25'}"
105
- BODY="${BODY//$'\n'/'%0A'}"
106
- BODY="${BODY//$'\r'/'%0D'}"
107
- echo "::set-output name=BODY::$BODY"
108
- - name: Install dependencies
109
- run: npm ci
110
-
111
- - name: Publish package to npm
112
- run: |
113
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
114
- npm whoami
115
- npm publish
116
- - name: Create Github Release
117
- uses: actions/create-release@v1
118
- env:
119
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120
- with:
121
- tag_name: ${{ github.ref }}
122
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
123
- draft: false
124
- # Prerelease versions create prereleases on Github
125
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
126
- body: ${{ steps.extract_release.outputs.BODY }}
127
-
128
- - name: Notify Sentry.io about the release
129
- run: |
130
- npm i -g @sentry/cli
131
- export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
132
- export SENTRY_URL=https://sentry.iobroker.net
133
- export SENTRY_ORG=iobroker
134
- export SENTRY_PROJECT=iobroker-hue
135
- export SENTRY_VERSION=iobroker.hue@${{ steps.extract_release.outputs.VERSION }}
136
- sentry-cli releases new $SENTRY_VERSION
137
- sentry-cli releases set-commits $SENTRY_VERSION --auto
138
- sentry-cli releases finalize $SENTRY_VERSION