iobroker.hue 3.7.1 → 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,9 @@ 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
+
76
80
  ### 3.7.1 (2022-07-12)
77
81
  * (Eistee82) also update state for `CLIPGenericFlag` sensors
78
82
 
@@ -463,5 +467,5 @@ __ATTENTION: Remove all objects once, ids have changed__
463
467
 
464
468
  Apache 2.0
465
469
 
466
- Copyright (c) 2017-2022 Bluefox <dogafox@gmail.com>
470
+ Copyright (c) 2017-2023 Bluefox <dogafox@gmail.com>
467
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
  }
@@ -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/io-package.json CHANGED
@@ -1,9 +1,22 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "hue",
4
- "version": "3.7.1",
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
+ },
7
20
  "3.7.1": {
8
21
  "en": "also update state for `CLIPGenericFlag` sensors",
9
22
  "de": "auch Zustand für CLIPGenericFlag Sensoren aktualisieren",
@@ -75,18 +88,6 @@
75
88
  "es": "Los valores ct de los grupos pueden ser incluso más bajos debido a las luces de terceros.",
76
89
  "pl": "Wartości ct grup mogą być jeszcze niższe ze względu na oświetlenie innych firm",
77
90
  "zh-cn": "由于第三方灯,组的 ct 值可能更低"
78
- },
79
- "3.6.0": {
80
- "en": "allow to trigger scenes via `command` state, this allows to start a scene with `transitiontime`",
81
- "de": "Ermöglicht das Auslösen von Szenen über den 'Befehl'-Zustand, dies ermöglicht das Starten einer Szene mit 'Übergangszeit'",
82
- "ru": "позволяют запускать сцены через состояние `command`, это позволяет запускать сцену с` transitiontime`",
83
- "pt": "permite acionar cenas via estado `command`, isso permite iniciar uma cena com` tempo de transição`",
84
- "nl": "laat toe om scènes te activeren via de status `commando`, dit maakt het mogelijk om een scène te starten met `overgangstijd`",
85
- "fr": "permet de déclencher des scènes via l'état \"commande\", cela permet de démarrer une scène avec \"temps de transition\"",
86
- "it": "permette di attivare scene tramite lo stato `comando`, questo permette di avviare una scena con `transitiontime`",
87
- "es": "permite activar escenas a través del estado `comando`, esto permite iniciar una escena con` tiempo de transición`",
88
- "pl": "pozwala na wyzwalanie scen poprzez stan `command`, pozwala to na uruchomienie sceny z `transitiontime`",
89
- "zh-cn": "允许通过 `command` 状态触发场景,这允许使用 `transitiontime` 启动场景"
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 {};