iobroker.hue 3.7.0 → 3.8.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
@@ -31,19 +31,20 @@ Once you have installed this adapter within ioBroker, create an adapter instance
31
31
  Please note: Adapter settings button "Find Bridge" will be inactive if field "Bridge Address" is populated, and button "Create User" will be inactive if field "Bridge User" is populated.
32
32
 
33
33
  ### Settings
34
- |Name|Description|
35
- |---|---|
36
- |__Bridge address__|IP address of your Hue bridge, you can try to detect it by pressing `Find Bridge` button.|
37
- |__Port__|Port of your Hue bridge, normally 443 (SSL) and 80 (non-SSL).|
38
- |__SSL__|If checked, connection is secured via SSL, port will automatically change to 443 (it is strongly recommended to use SSL).|
39
- |__User__|Username of your bridge user. You can create it, by pressing `Create User` button and following the screen instructions.|
40
- |__Ignore scenes__|If checked, scenes will not be shown/controlled by the adapter.|
41
- |__Ignore groups__|If checked, groups will not be shown/controlled by the adapter.|
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.
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.|
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.|
45
- |__Polling__|If checked, the adapter will poll state changes, otherwise it can only be used to control lamps, not to show their status.|
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.|
34
+ | Name | Description |
35
+ |----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
36
+ | __Bridge address__ | IP address of your Hue bridge, you can try to detect it by pressing `Find Bridge` button. |
37
+ | __Port__ | Port of your Hue bridge, normally 443 (SSL) and 80 (non-SSL). |
38
+ | __SSL__ | If checked, connection is secured via SSL, port will automatically change to 443 (it is strongly recommended to use SSL). |
39
+ | __User__ | Username of your bridge user. You can create it, by pressing `Create User` button and following the screen instructions. |
40
+ | __Ignore scenes__ | If checked, scenes will not be shown/controlled by the adapter. |
41
+ | __Ignore groups__ | If checked, groups will not be shown/controlled by the adapter. |
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. |
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. |
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. |
45
+ | __Turn on with others__ | Turn on lights also with ct state, color state, ... Set to `false` and turn on only with power and brightness state. |
46
+ | __Polling__ | If checked, the adapter will poll state changes, otherwise it can only be used to control lamps, not to show their status. |
47
+ | __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. |
47
48
 
48
49
  ### Commands
49
50
  Command states (e.g. `hue.0.All.command`) can be used to set multiple commands to the bridge.
@@ -73,6 +74,12 @@ In den Adapter-Settings muss die IP der Hue Bridge sowie ein Username konfigurie
73
74
  Placeholder for the next version (at the beginning of the line):
74
75
  ### __WORK IN PROGRESS__
75
76
  -->
77
+ ### 3.8.0 (2023-06-09)
78
+ * (Schmakus) Possibility to disable turn on lights with states other than `on` and `brightness` [#386]
79
+
80
+ ### 3.7.1 (2022-07-12)
81
+ * (Eistee82) also update state for `CLIPGenericFlag` sensors
82
+
76
83
  ### 3.7.0 (2022-05-30)
77
84
  * (foxriver76) support software sensor `CLIPGenericFlag` (closes #328)
78
85
 
@@ -460,5 +467,5 @@ __ATTENTION: Remove all objects once, ids have changed__
460
467
 
461
468
  Apache 2.0
462
469
 
463
- Copyright (c) 2017-2022 Bluefox <dogafox@gmail.com>
470
+ Copyright (c) 2017-2023 Bluefox <dogafox@gmail.com>
464
471
  Copyright (c) 2014-2016 hobbyquaker
@@ -26,5 +26,6 @@
26
26
  "error finding bridge": "error finding bridge",
27
27
  "ignoreOsram": "ignore Osram",
28
28
  "link button not pressed": "link button not pressed",
29
- "polling_warning": "Notice: Adapter may send only 10 commands in 1 second."
29
+ "polling_warning": "Notice: Adapter may send only 10 commands in 1 second.",
30
+ "Turn on with others": "Turn on with others than power and brightness"
30
31
  }
@@ -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": "轮询",
@@ -265,6 +265,10 @@
265
265
  <input type="checkbox" id="syncSoftwareSensors" class="value"/>
266
266
  <label class="translate" for="polling">Sync software sensors</label>
267
267
  </div>
268
+ <div class="input-field col s10 m4">
269
+ <input type="checkbox" id="turnOnWithOthers" class="value"/>
270
+ <label class="translate" for="turnOnWithOthers">Turn on with others than `on` and `bri` state</label>
271
+ </div>
268
272
  </div>
269
273
  <div class="row">
270
274
  <div class="input-field col s10 m4">
package/admin/words.js CHANGED
@@ -17,7 +17,7 @@ systemDictionary = {
17
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": "好的"},
20
+ "Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "Ok", "fr": "Ok", "it": "Ok", "es": "Ok", "pl": "Ok", "zh-cn": "确定"},
21
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": "轮询"},
package/io-package.json CHANGED
@@ -1,9 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "hue",
4
- "version": "3.7.0",
4
+ "version": "3.8.0",
5
5
  "tier": 2,
6
6
  "news": {
7
+ "3.8.0": {
8
+ "en": "Possibility to disable turn on lights with states other than `on` and `brightness` [#386]",
9
+ "de": "Möglichkeit, Lichter mit anderen Zuständen als auf und Helligkeit zu deaktivieren #[386]",
10
+ "ru": "Возможность отключить поворот на свет с другими государствами и яркостью #[386]",
11
+ "pt": "Possibilidade de desativar acender luzes com estados diferentes de ligar e brilho #[386]",
12
+ "nl": "Mogelijkheden om lichten uit te schakelen met andere staten dan aan en helderheid 8686:",
13
+ "fr": "Possibilité de désactiver les feux avec des états autres que sur et luminosité #[386]",
14
+ "it": "Possibilità di disattivare l'accensione delle luci con stati diversi dall'accensione e dalla luminosità #[386]",
15
+ "es": "Posibilidad de desactivar encender las luces con estados distintos al encendido y el brillo #[386]",
16
+ "pl": "Odpowiedzialność za niemożliwą zmianę na światło z innymi stanami niż na i jasności #386",
17
+ "uk": "Можливість відключення повороту на вогні з державами, відмінною від яскравості #[386]",
18
+ "zh-cn": "与“第[386]号行动”以外的国家相反的照明"
19
+ },
20
+ "3.7.1": {
21
+ "en": "also update state for `CLIPGenericFlag` sensors",
22
+ "de": "auch Zustand für CLIPGenericFlag Sensoren aktualisieren",
23
+ "ru": "также обновить состояние для датчиков CLIPGenericFlag",
24
+ "pt": "também atualizar estado para sensores CLIPGenericFlag",
25
+ "nl": "ook updates voor CLIPGenericFlag sensoren",
26
+ "fr": "également mettre à jour l'état pour les capteurs CLIPGenericFlag",
27
+ "it": "anche aggiornare lo stato per i sensori CLIPGenericFlag",
28
+ "es": "también actualización estado para sensores CLIPGenericFlag",
29
+ "pl": "zaktualizowano również stan CLIPGenericFlag",
30
+ "zh-cn": "还更新了克里米尔的传感器状况"
31
+ },
7
32
  "3.7.0": {
8
33
  "en": "support software sensor `CLIPGenericFlag` (closes #328)",
9
34
  "de": "Support-Software-Sensor `CLIPGenericFlag` (schließt #328)",
@@ -63,30 +88,6 @@
63
88
  "es": "Los valores ct de los grupos pueden ser incluso más bajos debido a las luces de terceros.",
64
89
  "pl": "Wartości ct grup mogą być jeszcze niższe ze względu na oświetlenie innych firm",
65
90
  "zh-cn": "由于第三方灯,组的 ct 值可能更低"
66
- },
67
- "3.6.0": {
68
- "en": "allow to trigger scenes via `command` state, this allows to start a scene with `transitiontime`",
69
- "de": "Ermöglicht das Auslösen von Szenen über den 'Befehl'-Zustand, dies ermöglicht das Starten einer Szene mit 'Übergangszeit'",
70
- "ru": "позволяют запускать сцены через состояние `command`, это позволяет запускать сцену с` transitiontime`",
71
- "pt": "permite acionar cenas via estado `command`, isso permite iniciar uma cena com` tempo de transição`",
72
- "nl": "laat toe om scènes te activeren via de status `commando`, dit maakt het mogelijk om een scène te starten met `overgangstijd`",
73
- "fr": "permet de déclencher des scènes via l'état \"commande\", cela permet de démarrer une scène avec \"temps de transition\"",
74
- "it": "permette di attivare scene tramite lo stato `comando`, questo permette di avviare una scena con `transitiontime`",
75
- "es": "permite activar escenas a través del estado `comando`, esto permite iniciar una escena con` tiempo de transición`",
76
- "pl": "pozwala na wyzwalanie scen poprzez stan `command`, pozwala to na uruchomienie sceny z `transitiontime`",
77
- "zh-cn": "允许通过 `command` 状态触发场景,这允许使用 `transitiontime` 启动场景"
78
- },
79
- "3.5.31": {
80
- "en": "ct value fix of #234 ported for 0 (All) group",
81
- "de": "ct-Wert-Fix von #234 portiert für 0 (Alle) Gruppe",
82
- "ru": "Исправлено значение ct # 234, перенесенное для группы 0 (All)",
83
- "pt": "correção do valor ct de # 234 portado para o grupo 0 (todos)",
84
- "nl": "ct-waarde fix van #234 geport voor 0 (Alle) groep",
85
- "fr": "Correction de la valeur ct de #234 porté pour le groupe 0 (Tous)",
86
- "it": "Correzione del valore ct di #234 portato per il gruppo 0 (Tutti)",
87
- "es": "Corrección del valor ct de # 234 portado para el grupo 0 (Todos)",
88
- "pl": "Ustalona wartość ct z #234 przeniesiona dla grupy 0 (Wszystkie)",
89
- "zh-cn": "为 0(所有)组移植的 #234 的 ct 值修复"
90
91
  }
91
92
  },
92
93
  "titleLang": {
@@ -167,7 +168,8 @@
167
168
  "useLegacyStructure": false,
168
169
  "nativeTurnOffBehaviour": false,
169
170
  "ssl": true,
170
- "syncSoftwareSensors": false
171
+ "syncSoftwareSensors": false,
172
+ "turnOnWithOthers": true
171
173
  },
172
174
  "protectedNative": [
173
175
  "user"
@@ -0,0 +1,19 @@
1
+ // This file extends the AdapterConfig type from "@types/iobroker"
2
+ // using the actual properties present in io-package.json
3
+ // in order to provide typings for adapter.config properties
4
+
5
+ import { native } from '../io-package.json';
6
+
7
+ type _AdapterConfig = typeof native;
8
+
9
+ // Augment the globally declared type ioBroker.AdapterConfig
10
+ declare global {
11
+ namespace ioBroker {
12
+ interface AdapterConfig extends _AdapterConfig {
13
+ // Do not enter anything here!
14
+ }
15
+ }
16
+ }
17
+
18
+ // this is required so the above AdapterConfig is found by TypeScript / type checking
19
+ export {};