node-red-contrib-huemagic 4.0.0 → 4.0.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 CHANGED
@@ -83,7 +83,7 @@ With the "fetch" command you can output a list of specific devices that are curr
83
83
 
84
84
  |Property|Description|
85
85
  |--|--|
86
- | fetch (string | array [string, ...]) | Can accept `light`, `group`, `button`, `motion`, `temperature`, `light_level` or `rule` as value(s) |
86
+ | fetch (string / array [string, ...]) | Can accept `light`, `group`, `button`, `motion`, `temperature`, `light_level` or `rule` as value(s) |
87
87
 
88
88
  ### Change Hue Bridge settings
89
89
 
@@ -98,7 +98,7 @@ You can use the following command to change specific settings on the bridge. Ple
98
98
  | netmask (string) | Changes the network mask in the network settings |
99
99
  | gateway (string) | Specifies the gateway in the network settings |
100
100
  | proxyAddress (string) | Sets a proxy address in the network settings |
101
- | proxyPort (string | int) | Specifies the port of the proxy in the network settings |
101
+ | proxyPort (string / int) | Specifies the port of the proxy in the network settings |
102
102
  | timeZone (string) | Changes the currently set time zone on the bridge |
103
103
 
104
104
  ### Status messages from the node
@@ -112,9 +112,9 @@ The status reports of the "Hue Bridge" node are dynamic. Although they follow a
112
112
  | id (string) | Unique ID of the Hue Bridge |
113
113
  | name (string) | Currently set name |
114
114
  | factoryNew (boolean) | Indicator whether the bridge is brand new |
115
- | replacesBridgeId (string | boolean) | Outputs the old bridge ID (if a migration was carried out) or outputs `false` |
115
+ | replacesBridgeId (string / boolean) | Outputs the old bridge ID (if a migration was carried out) or outputs `false` |
116
116
  | dataStoreVersion (string) | Version of the data store |
117
- | starterKitId (string | boolean) | Name of the starter kit created in the factory or `false` |
117
+ | starterKitId (string / boolean) | Name of the starter kit created in the factory or `false` |
118
118
  | softwareVersion (string) | Software version of the bridge |
119
119
  | apiVersion (string) | API version of the bridge |
120
120
  | zigbeeChannel (int) | Currently used ZigBee channel |
@@ -123,7 +123,7 @@ The status reports of the "Hue Bridge" node are dynamic. Although they follow a
123
123
  | dhcpEnabled (boolean) | Indicates whether DHCP is enabled |
124
124
  | netmask (string) | Netmask of the bridge |
125
125
  | gateway (string) | Gateway of the bridge |
126
- | proxyAddress (string | false) | Currently used proxy address or `false` |
126
+ | proxyAddress (string / boolean) | Currently used proxy address or `false` |
127
127
  | proxyPort (string) | Currently used proxy port |
128
128
  | utcTime (string) | UTC time on the bridge |
129
129
  | timeZone (string) | Currently set time zone on the bridge |
@@ -220,7 +220,7 @@ Sometimes it makes sense to play an animation in a disorderly manner - e.g. if f
220
220
 
221
221
  |Property|Description|
222
222
  |--|--|
223
- | randomOrder (boolean | any) | `true`, activates the random playback of the individual animation steps |
223
+ | randomOrder (boolean / any) | `true`, activates the random playback of the individual animation steps |
224
224
 
225
225
  ### Tips and hints
226
226
 
@@ -262,11 +262,11 @@ In addition to simply switching it on and off, there are also many other options
262
262
  |Property|Description|
263
263
  |--|--|
264
264
  | on (boolean) | `true` switches the light on, `false` switches it off |
265
- | toggle (boolean | any) | Toggles between switching on and off, depending on the previous status of the light |
266
- | brightness (int | string) | Percentage value of the light brightness (0-100) or a string with the value `auto` to automatically set the brightness based on the current time |
265
+ | toggle (boolean / any) | Toggles between switching on and off, depending on the previous status of the light |
266
+ | brightness (int / string) | Percentage value of the light brightness (0-100) or a string with the value `auto` to automatically set the brightness based on the current time |
267
267
  | brightnessLevel (int) | Numerical value of the light brightness (0-254) |
268
- | incrementBrightness (int | boolean) | Specifies by how many percent the light should be made brighter or `true` to make the light brighter in 10% steps |
269
- | decrementBrightness (int | boolean) | Specifies the percentage by which the light should be made darker or `true` to make the light darker in 10% steps |
268
+ | incrementBrightness (int / boolean) | Specifies by how many percent the light should be made brighter or `true` to make the light brighter in 10% steps |
269
+ | decrementBrightness (int / boolean) | Specifies the percentage by which the light should be made darker or `true` to make the light darker in 10% steps |
270
270
  | color (string) | `random` to set a random color or an English color name (e.g. `red`) |
271
271
  | hex (string) | Color value in hexadecimal in the form of a string |
272
272
  | rgb (array [0,0,0]) | Color value in RGB format in the form of an array |
@@ -275,9 +275,9 @@ In addition to simply switching it on and off, there are also many other options
275
275
  | mixColor (object) | A color to be mixed with the current light color. Can accept `color`, `hex`, `rgb` or `xyColor` objects and optionally `amount` (int) to indicate the mixing ratio in percent |
276
276
  | image (string) | Path of an image (local or on the web) to set the current color of the light to the average color of the image |
277
277
  | saturation (int) | percentage of the saturation of the current color (beta) |
278
- | colorTemp (int | string) | Value between 153 and 500 to set the color temperature of the light or the values `cold`, `normal`, `warm`, `hot` and `auto` - where `auto` is the color temperature based on the current time |
279
- | incrementColorTemp (int | boolean) | Value by how much the color temperature should be warmer or `true` to make the color temperature warmer in steps of 50 |
280
- | decrementColorTemp (int | boolean) | Value by how much the color temperature should be colder or `true` to make the color temperature colder in steps of 50 |
278
+ | colorTemp (int / string) | Value between 153 and 500 to set the color temperature of the light or the values `cold`, `normal`, `warm`, `hot` and `auto` - where `auto` is the color temperature based on the current time |
279
+ | incrementColorTemp (int / boolean) | Value by how much the color temperature should be warmer or `true` to make the color temperature warmer in steps of 50 |
280
+ | decrementColorTemp (int / boolean) | Value by how much the color temperature should be colder or `true` to make the color temperature colder in steps of 50 |
281
281
  | transitionTime (float) | Transition time of the current setting in seconds. If `0` is entered, the light changes to the desired setting immediately. If `3` is entered, the light changes to the desired setting with a slight transition in the next 3 seconds |
282
282
  | colorloop (float) | Plays a "colorloop" animation for the selected duration in seconds and then switches back to the original state of the light |
283
283
  | alert (float) | Plays an "alert" animation for the selected duration in seconds and then switches back to the original state of the light |
@@ -291,17 +291,17 @@ As soon as a change in the light settings has been detected (regardless of wheth
291
291
  |Property|Description|
292
292
  |--|--|
293
293
  | on (boolean) | State of the light, where `true` stands for on and `false` for off |
294
- | brightness (int | boolean) | Current brightness in percent or `false`, if the light does not support a brightness setting |
295
- | brightnessLevel (int | boolean) | Current brightness from 0-254 or `false`, if the light does not support a brightness setting |
296
- | reachable (boolean | string) | `true` if the light is connected to the bridge, `unknown` if the connection status deviates |
294
+ | brightness (int / boolean) | Current brightness in percent or `false`, if the light does not support a brightness setting |
295
+ | brightnessLevel (int / boolean) | Current brightness from 0-254 or `false`, if the light does not support a brightness setting |
296
+ | reachable (boolean / string) | `true` if the light is connected to the bridge, `unknown` if the connection status deviates |
297
297
  | connectionStatus (string) | The current connection status with the bridge in the form of a string. Can contain `connected`, `disconnected`, `connectivity_issue` or `unidirectional_incoming` as a value |
298
298
  | rgb (array [int, int, int] | optional) | Current light color in the form of an RGB value, if the light can display colors |
299
- | hex (string | optional) | Current light color in the form of a hexadecimal value if the light can display colors |
299
+ | hex (string / optional) | Current light color in the form of a hexadecimal value if the light can display colors |
300
300
  | xyColor (object {x [float], y [float]} | optional) | Current light color in the form of an XY value, if the light can display colors |
301
- | color (string | optional) | Current light name in English, if the light can display colors and the corresponding setting of the node has been activated |
302
- | gradient (object | optional) | Current gradient setting with all available color units in the form of an array, if the light supports gradient settings, where `colors` outputs the colors, `numColors` the number of set colors in the gradient and `totalColors` the maximum possible Number of colors the resource can support in the gradient |
303
- | colorTemp (int | boolean | optional) | Current color temperature of the light, if the light can display color temperatures and a color temperature has been set |
304
- | colorTempName (string | optional) | Current color temperature of the light in the form of a descriptive string with the values `cold`,`normal`, `warm` or `hot`, if the light can display color temperatures and a color temperature has been set. Otherwise `unknown` is output |
301
+ | color (string / optional) | Current light name in English, if the light can display colors and the corresponding setting of the node has been activated |
302
+ | gradient (object / optional) | Current gradient setting with all available color units in the form of an array, if the light supports gradient settings, where `colors` outputs the colors, `numColors` the number of set colors in the gradient and `totalColors` the maximum possible Number of colors the resource can support in the gradient |
303
+ | colorTemp (int / boolean / optional) | Current color temperature of the light, if the light can display color temperatures and a color temperature has been set |
304
+ | colorTempName (string / optional) | Current color temperature of the light in the form of a descriptive string with the values `cold`,`normal`, `warm` or `hot`, if the light can display color temperatures and a color temperature has been set. Otherwise `unknown` is output |
305
305
  | updated (string) | Time of the last update of the resource by HueMagic (ISO 8601) |
306
306
 
307
307
  #### Information about the light under `msg.info`
@@ -309,7 +309,7 @@ As soon as a change in the light settings has been detected (regardless of wheth
309
309
  |Property|Description|
310
310
  |--|--|
311
311
  | id (string) | Indicates the new ID of the light |
312
- | idV1 (string | boolean) | Indicates the old ID of the light |
312
+ | idV1 (string / boolean) | Indicates the old ID of the light |
313
313
  | uniqueId (string) | The unique ID of the light |
314
314
  | deviceId (string) | The unique ID of the device |
315
315
  | name (string) | The currently set name of the light |
@@ -363,15 +363,15 @@ In addition to simply switching it on and off, there are also many other options
363
363
  |Property|Description|
364
364
  |--|--|
365
365
  | on (boolean) | `true` switches the entire group on, `false` switches it off (please note the note above) |
366
- | toggle (boolean | any) | Toggles between switching on and off, depending on the previous status of the group |
367
- | brightness (int | string) | Percentage value of the light brightness (0-100) or a string with the value `auto` to automatically set the light brightness based on the current time |
366
+ | toggle (boolean / any) | Toggles between switching on and off, depending on the previous status of the group |
367
+ | brightness (int / string) | Percentage value of the light brightness (0-100) or a string with the value `auto` to automatically set the light brightness based on the current time |
368
368
  | brightnessLevel (int) | Numerical value of the light brightness (0-254) |
369
369
  | color (string) | `random` to set a random color or an English color name (e.g. `red`) |
370
370
  | hex (string) | Color value in hexadecimal in the form of a string |
371
371
  | rgb (array [0,0,0]) | Color value in RGB format in the form of an array |
372
372
  | xyColor (object {x [float], y [float]}) | Color value in the XY color format in the form of an object |
373
373
  | image (string) | Path of an image (local or on the web) to set the current color of the group to the average color of the image |
374
- | colorTemp (int | string) | Value between 153 and 500 to set the color temperature of the group or the values `cold`, `normal`, `warm`, `hot` and `auto` - where `auto` is the color temperature based on the current time |
374
+ | colorTemp (int / string) | Value between 153 and 500 to set the color temperature of the group or the values `cold`, `normal`, `warm`, `hot` and `auto` - where `auto` is the color temperature based on the current time |
375
375
  | transitionTime (float) | Transition time of the current setting in seconds. If `0` is passed, the group changes to the desired setting immediately. If you pass it to `3`, the group changes to the desired setting with a slight transition in the next 3 seconds |
376
376
  | colorloop (float) | Plays a “colorloop” animation for the selected duration in seconds and then changes back to the group's original state |
377
377
  | alert (float) | Plays an "alert" animation for the selected duration in seconds and then switches back to the original status of the group |
@@ -394,7 +394,7 @@ In contrast to the "Hue Light" node, you have much less status information avail
394
394
  |Property|Description|
395
395
  |--|--|
396
396
  | id (string) | Indicates the new ID of the group |
397
- | idV1 (string | boolean) | Indicates the old ID of the group |
397
+ | idV1 (string / boolean) | Indicates the old ID of the group |
398
398
  | name (string) | The currently set name of the group |
399
399
  | type (string) | The type of the group (always `group`) |
400
400
 
@@ -441,7 +441,7 @@ Connect the output of this node to one or more groups to apply a scene to specif
441
441
 
442
442
  |Property|Description|
443
443
  |--|--|
444
- | group (string | array [string,…]) | ID of the group or an array with the IDs of several groups in order to limit the scene to these groups |
444
+ | group (string / array [string,…]) | ID of the group or an array with the IDs of several groups in order to limit the scene to these groups |
445
445
 
446
446
  ### More information about the Node
447
447
 
@@ -474,10 +474,10 @@ As soon as a key has been pressed, the following status message is returned by t
474
474
 
475
475
  |Property|Description|
476
476
  |--|--|
477
- | reachable (boolean | string) | `true` if the switch/button is connected to the bridge, `unknown` if the connection status deviates |
477
+ | reachable (boolean / string) | `true` if the switch/button is connected to the bridge, `unknown` if the connection status deviates |
478
478
  | connectionStatus (string) | The current connection status with the bridge in the form of a string. Can contain `connected`, `disconnected`, `connectivity_issue` or `unidirectional_incoming` as a value |
479
- | button (int | boolean) | Numeric ID of the key that was last pressed or `false` if no key was pressed |
480
- | action (string | boolean) | `false` if no key was pressed or `initial_press`, `repeat` , `short_release`, `long_release` or `double_short_release` in the form of a string |
479
+ | button (int / boolean) | Numeric ID of the key that was last pressed or `false` if no key was pressed |
480
+ | action (string / boolean) | `false` if no key was pressed or `initial_press`, `repeat` , `short_release`, `long_release` or `double_short_release` in the form of a string |
481
481
  | updated (string) | Time of the last update of the resource by HueMagic (ISO 8601) |
482
482
 
483
483
  #### Information about the switch/button under `msg.info`
@@ -485,7 +485,7 @@ As soon as a key has been pressed, the following status message is returned by t
485
485
  |Property|Description|
486
486
  |--|--|
487
487
  | id (string) | Indicates the new ID of the switch/button |
488
- | idV1 (string | boolean) | Indicates the old ID of the switch/button |
488
+ | idV1 (string / boolean) | Indicates the old ID of the switch/button |
489
489
  | uniqueId (string) | The unique ID of the switch/button |
490
490
  | deviceId (string) | The unique ID of the device |
491
491
  | name (string) | The currently set name of the switch/button |
@@ -543,7 +543,7 @@ As soon as the sensor has registered a movement, the following status message is
543
543
  |Property|Description|
544
544
  |--|--|
545
545
  | active (boolean) | Indicates whether the sensor is switched on or off |
546
- | reachable (boolean | string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
546
+ | reachable (boolean / string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
547
547
  | connectionStatus (string) | The current connection status with the bridge in the form of a string. Can contain `connected`, `disconnected`, `connectivity_issue` or `unidirectional_incoming` as a value |
548
548
  | motion (boolean) | Indicates whether a motion has been registered |
549
549
  | updated (string) | Time of the last update of the resource by HueMagic (ISO 8601) |
@@ -553,7 +553,7 @@ As soon as the sensor has registered a movement, the following status message is
553
553
  |Property|Description|
554
554
  |--|--|
555
555
  | id (string) | Indicates the new ID of the sensor |
556
- | idV1 (string | boolean) | Indicates the old ID of the sensor |
556
+ | idV1 (string / boolean) | Indicates the old ID of the sensor |
557
557
  | uniqueId (string) | The unique ID of the sensor |
558
558
  | deviceId (string) | The unique ID of the device |
559
559
  | name (string) | The currently set name of the sensor |
@@ -611,7 +611,7 @@ As soon as the sensor has registered a temperature change, the following status
611
611
  |Property|Description|
612
612
  |--|--|
613
613
  | active (boolean) | Indicates whether the sensor is switched on or off |
614
- | reachable (boolean | string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
614
+ | reachable (boolean / string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
615
615
  | connectionStatus (string) | The current connection status with the bridge in the form of a string. Can contain `connected`, `disconnected`, `connectivity_issue` or `unidirectional_incoming` as a value |
616
616
  | celsius (float) | Indicates the current ambient temperature in °C (degrees Celsius) |
617
617
  | fahrenheit (float) | Indicates the current ambient temperature in °F (degrees Fahrenheit) |
@@ -624,7 +624,7 @@ As soon as the sensor has registered a temperature change, the following status
624
624
  |Property|Description|
625
625
  |--|--|
626
626
  | id (string) | Indicates the new ID of the sensor |
627
- | idV1 (string | boolean) | Indicates the old ID of the sensor |
627
+ | idV1 (string / boolean) | Indicates the old ID of the sensor |
628
628
  | uniqueId (string) | The unique ID of the sensor |
629
629
  | deviceId (string) | The unique ID of the device |
630
630
  | name (string) | The currently set name of the sensor |
@@ -682,7 +682,7 @@ As soon as the sensor has detected a change in the light level, the following st
682
682
  |Property|Description|
683
683
  |--|--|
684
684
  | active (boolean) | Indicates whether the sensor is turned on or off |
685
- | reachable (boolean | string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
685
+ | reachable (boolean / string) | `true` if the sensor is connected to the bridge, `unknown` if the connection status deviates |
686
686
  | connectionStatus (string) | The current connection status with the bridge in the form of a string. Can contain `connected`,` disconnected`, `connectivity_issue` or `unidirectional_incoming` as a value |
687
687
  | lux (int) | Indicates the real LUX value of the light level |
688
688
  | lightLevel (int) | Indicates the light intensity of the sensor |
@@ -695,7 +695,7 @@ As soon as the sensor has detected a change in the light level, the following st
695
695
  |Property|Description|
696
696
  |--|--|
697
697
  | id (string) | Indicates the new ID of the sensor |
698
- | idV1 (string | boolean) | Indicates the old ID of the sensor |
698
+ | idV1 (string / boolean) | Indicates the old ID of the sensor |
699
699
  | uniqueId (string) | The unique ID of the sensor |
700
700
  | deviceId (string) | The unique ID of the device |
701
701
  | name (string) | The currently set name of the sensor |
@@ -796,7 +796,7 @@ If the status of the node has changed via a certain command, the entire command
796
796
 
797
797
  # Changelog
798
798
 
799
- ### v4.0.0 (latest)
799
+ ### v4.0.1 (latest)
800
800
 
801
801
  > **Attention!** HueMagic v4 + has been almost completely rewritten under the hood and requires at least the (square-shaped) Philips Hue Bridge firmware 1948086000+ from November 1st, 2021 ([Upgrade instructions](https://www.lighting.philips.com/content/B2C/en_US/microsites/meethue/marketing-catalog/huewireless_ca/support/security-advisory/general/where-and-how-can-i-update-my-hue-system-with-the-latest-software.html)) and Node-RED v1 + ([Upgrade instructions](https://nodered.org/docs/getting-started/local#upgrading-node-red)). If you are upgrading from a previous HueMagic version to the v4, you will have to reconfigure (not completely rebuild) all nodes by clicking them and selecting the appropriate device from the list. This also applies to nodes / functions that are operated in universal mode, as the numeric identifiers of the latest Philips Hue API version have been replaced in UUIDs. The nodes "Hue Switch", "Hue Button" & "Hue Tap" have been replaced in v4 by the universal and uniform node "Hue Buttons", which works with all button / switch devices that are connected to the Hue Bridge (please note here also the new API in the documentation). The request and return objects of the individual nodes are largely compatible with older HueMagic versions - with the exception of the nodes "Hue Bridge", "Hue Buttons", "Hue Scene" & "Hue Group". These need to be adjusted in the v4. Make sure that you meet the minimum technical requirements and have a quiet minute for the migration before upgrading to the v4.
802
802
 
@@ -59,7 +59,7 @@ Die Statusmittilungen des „Hue Bridge“-Nodes sind dynamisch. Sie folgen zwar
59
59
  : dhcpEnabled (boolean) : Gibt an, ob DHCP aktiviert ist
60
60
  : netmask (string) : Netzmaske der Bridge
61
61
  : gateway (string) : Gateway der Bridge
62
- : proxyAddress (string | false) : Aktuell verwendete Proxy-Adresse oder `false`
62
+ : proxyAddress (string | boolean) : Aktuell verwendete Proxy-Adresse oder `false`
63
63
  : proxyPort (string) : Aktuell verwender Proxy-Port
64
64
  : utcTime (string) : UTC-Zeit auf der Bridge
65
65
  : timeZone (string) : Aktuell eingestellte Zeitzone auf der Bridge
@@ -59,7 +59,7 @@ The status reports of the "Hue Bridge" node are dynamic. Although they follow a
59
59
  : dhcpEnabled (boolean): Indicates whether DHCP is enabled
60
60
  : netmask (string): Netmask of the bridge
61
61
  : gateway (string): Gateway of the bridge
62
- : proxyAddress (string | false): Currently used proxy address or `false`
62
+ : proxyAddress (string | boolean): Currently used proxy address or `false`
63
63
  : proxyPort (string): Currently used proxy port
64
64
  : utcTime (string): UTC time on the bridge
65
65
  : timeZone (string): Currently set time zone on the bridge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-huemagic",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Philips Hue node to control bridges, lights, groups, scenes, rules, taps, switches, buttons, motion sensors, temperature sensors and Lux sensors using Node-RED.",
5
5
  "author": "foddy",
6
6
  "homepage": "https://github.com/Foddy/node-red-contrib-huemagic",