node-red-contrib-huemagic 3.0.0 → 4.0.3
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 +764 -603
- package/examples/Hue Bridge.json +189 -35
- package/examples/Hue Brightness.json +124 -14
- package/examples/Hue Buttons.json +88 -0
- package/examples/Hue Group.json +575 -63
- package/examples/Hue Light.json +805 -58
- package/examples/Hue Magic.json +69 -24
- package/examples/Hue Motion.json +110 -42
- package/examples/Hue Rules.json +105 -37
- package/examples/Hue Scene.json +145 -28
- package/examples/Hue Temperature.json +124 -14
- package/huemagic/animations/019-christmas.json +30 -0
- package/huemagic/animations/020-superhero.json +56 -0
- package/huemagic/animations/021-neoncity.json +52 -0
- package/huemagic/animations/previews/006-fireplace.gif +0 -0
- package/huemagic/animations/previews/013-strobo.gif +0 -0
- package/huemagic/animations/previews/014-randomrainbow.gif +0 -0
- package/huemagic/animations/previews/016-milkyway.gif +0 -0
- package/huemagic/animations/previews/018-forest.gif +0 -0
- package/huemagic/animations/previews/019-christmas.gif +0 -0
- package/huemagic/animations/previews/020-superhero.gif +0 -0
- package/huemagic/animations/previews/021-neoncity.gif +0 -0
- package/huemagic/hue-bridge-config.html +105 -61
- package/huemagic/hue-bridge-config.js +631 -319
- package/huemagic/hue-bridge.html +41 -21
- package/huemagic/hue-bridge.js +190 -396
- package/huemagic/hue-brightness.html +127 -59
- package/huemagic/hue-brightness.js +111 -55
- package/huemagic/hue-buttons.html +197 -0
- package/huemagic/hue-buttons.js +158 -0
- package/huemagic/hue-group.html +137 -66
- package/huemagic/hue-group.js +387 -403
- package/huemagic/hue-light.html +132 -64
- package/huemagic/hue-light.js +544 -378
- package/huemagic/hue-magic.html +36 -20
- package/huemagic/hue-magic.js +49 -27
- package/huemagic/hue-motion.html +127 -59
- package/huemagic/hue-motion.js +105 -101
- package/huemagic/hue-rules.html +121 -50
- package/huemagic/hue-rules.js +89 -63
- package/huemagic/hue-scene.html +95 -114
- package/huemagic/hue-scene.js +64 -95
- package/huemagic/hue-temperature.html +127 -59
- package/huemagic/hue-temperature.js +120 -56
- package/huemagic/icons/hue-bridge.png +0 -0
- package/huemagic/icons/hue-bridge.svg +3 -0
- package/huemagic/icons/hue-brightness.png +0 -0
- package/huemagic/icons/hue-brightness.svg +11 -0
- package/huemagic/icons/hue-buttons.png +0 -0
- package/huemagic/icons/hue-buttons.svg +4 -0
- package/huemagic/icons/hue-group.png +0 -0
- package/huemagic/icons/hue-group.svg +12 -0
- package/huemagic/icons/hue-light.png +0 -0
- package/huemagic/icons/hue-light.svg +3 -0
- package/huemagic/icons/hue-magic.png +0 -0
- package/huemagic/icons/hue-magic.svg +3 -0
- package/huemagic/icons/hue-motion.png +0 -0
- package/huemagic/icons/hue-motion.svg +9 -0
- package/huemagic/icons/hue-rules.png +0 -0
- package/huemagic/icons/hue-rules.svg +4 -0
- package/huemagic/icons/hue-scene.png +0 -0
- package/huemagic/icons/hue-scene.svg +5 -0
- package/huemagic/icons/hue-temperature.png +0 -0
- package/huemagic/icons/hue-temperature.svg +7 -0
- package/huemagic/locales/de/hue-bridge-config.html +17 -12
- package/huemagic/locales/de/hue-bridge-config.json +7 -5
- package/huemagic/locales/de/hue-bridge.html +64 -145
- package/huemagic/locales/de/hue-bridge.json +6 -17
- package/huemagic/locales/de/hue-brightness.html +50 -50
- package/huemagic/locales/de/hue-brightness.json +6 -5
- package/huemagic/locales/de/hue-buttons.html +58 -0
- package/huemagic/locales/de/{hue-button.json → hue-buttons.json} +7 -11
- package/huemagic/locales/de/hue-group.html +46 -122
- package/huemagic/locales/de/hue-group.json +5 -5
- package/huemagic/locales/de/hue-light.html +68 -116
- package/huemagic/locales/de/hue-light.json +5 -5
- package/huemagic/locales/de/hue-magic.html +65 -57
- package/huemagic/locales/de/hue-magic.json +2 -1
- package/huemagic/locales/de/hue-motion.html +47 -50
- package/huemagic/locales/de/hue-motion.json +5 -5
- package/huemagic/locales/de/hue-rules.html +68 -73
- package/huemagic/locales/de/hue-rules.json +5 -2
- package/huemagic/locales/de/hue-scene.html +23 -32
- package/huemagic/locales/de/hue-scene.json +5 -2
- package/huemagic/locales/de/hue-temperature.html +51 -48
- package/huemagic/locales/de/hue-temperature.json +6 -5
- package/huemagic/locales/en-US/hue-bridge-config.html +17 -12
- package/huemagic/locales/en-US/hue-bridge-config.json +5 -3
- package/huemagic/locales/en-US/hue-bridge.html +64 -145
- package/huemagic/locales/en-US/hue-bridge.json +5 -16
- package/huemagic/locales/en-US/hue-brightness.html +50 -50
- package/huemagic/locales/en-US/hue-brightness.json +5 -2
- package/huemagic/locales/en-US/hue-buttons.html +58 -0
- package/huemagic/locales/en-US/{hue-button.json → hue-buttons.json} +6 -4
- package/huemagic/locales/en-US/hue-group.html +46 -122
- package/huemagic/locales/en-US/hue-group.json +4 -2
- package/huemagic/locales/en-US/hue-light.html +68 -116
- package/huemagic/locales/en-US/hue-light.json +4 -2
- package/huemagic/locales/en-US/hue-magic.html +65 -57
- package/huemagic/locales/en-US/hue-magic.json +3 -1
- package/huemagic/locales/en-US/hue-motion.html +47 -50
- package/huemagic/locales/en-US/hue-motion.json +4 -2
- package/huemagic/locales/en-US/hue-rules.html +68 -73
- package/huemagic/locales/en-US/hue-rules.json +5 -2
- package/huemagic/locales/en-US/hue-scene.html +23 -32
- package/huemagic/locales/en-US/hue-scene.json +5 -2
- package/huemagic/locales/en-US/hue-temperature.html +51 -48
- package/huemagic/locales/en-US/hue-temperature.json +5 -2
- package/huemagic/utils/api.js +290 -0
- package/huemagic/utils/color.js +382 -0
- package/{utils → huemagic/utils}/merge.js +4 -6
- package/huemagic/utils/messages.js +447 -0
- package/package.json +9 -15
- package/examples/Hue Button.json +0 -40
- package/examples/Hue Switch.json +0 -40
- package/examples/Hue Tap.json +0 -40
- package/huemagic/hue-button.html +0 -132
- package/huemagic/hue-button.js +0 -143
- package/huemagic/hue-switch.html +0 -132
- package/huemagic/hue-switch.js +0 -163
- package/huemagic/hue-tap.html +0 -132
- package/huemagic/hue-tap.js +0 -123
- package/huemagic/icons/hue-button.png +0 -0
- package/huemagic/icons/hue-switch.png +0 -0
- package/huemagic/icons/hue-tap.png +0 -0
- package/huemagic/locales/de/hue-button.html +0 -64
- package/huemagic/locales/de/hue-switch.html +0 -64
- package/huemagic/locales/de/hue-switch.json +0 -35
- package/huemagic/locales/de/hue-tap.html +0 -55
- package/huemagic/locales/de/hue-tap.json +0 -27
- package/huemagic/locales/en-US/hue-button.html +0 -64
- package/huemagic/locales/en-US/hue-switch.html +0 -64
- package/huemagic/locales/en-US/hue-switch.json +0 -35
- package/huemagic/locales/en-US/hue-tap.html +0 -55
- package/huemagic/locales/en-US/hue-tap.json +0 -27
- package/utils/color.js +0 -9
- package/utils/messages.js +0 -658
- package/utils/rgb.js +0 -188
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-switch":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Switch name",
|
|
8
|
-
"skipevents": "Skip events",
|
|
9
|
-
"skipevents-node": "Skip events from node",
|
|
10
|
-
"searching": "Searching Hue Switches…",
|
|
11
|
-
"none-found": "No Hue Switches found!",
|
|
12
|
-
"unknown-error": "Something went wrong. Please retry.",
|
|
13
|
-
"switch": "Switch",
|
|
14
|
-
"universalevents": "Universal Events",
|
|
15
|
-
"universalevents-node": "Receives all messages from other nodes of the same type (only in universal mode)"
|
|
16
|
-
},
|
|
17
|
-
"node":
|
|
18
|
-
{
|
|
19
|
-
"title": "Hue Switch",
|
|
20
|
-
"not-configured": "not configured",
|
|
21
|
-
"waiting": "waiting…",
|
|
22
|
-
"button-on": "On",
|
|
23
|
-
"button-dimup": "Dim Up",
|
|
24
|
-
"button-dimdown": "Dim Down",
|
|
25
|
-
"button-off": "Off",
|
|
26
|
-
"action-pressed": "pressed",
|
|
27
|
-
"action-holded": "held",
|
|
28
|
-
"action-shortreleased": "short released",
|
|
29
|
-
"action-longreleased": "long released",
|
|
30
|
-
"input": "status query",
|
|
31
|
-
"output": "pressed button",
|
|
32
|
-
"universal": "universal mode"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-tap">
|
|
2
|
-
<p>Hue Tap node to receive button events.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Setup</h3>
|
|
5
|
-
<p>Select the preconfigured Hue Bridge and hit the search button to find all available Hue Tap devices. Type in the name manually or keep the default device name. Note that events will only sent on deploy (once) and if a button is pressed. If necessary, all status updates of this node can be ignored by activating the "Skip events" option. If you operate this node in universal mode, you can optionally also choose whether this node should receive and output all events from other nodes of the same type.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Tap Events</h3>
|
|
8
|
-
<p>The event message that the Hue Tap sends contains the following data in the <b>msg.payload</b> object:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>Pressed button number from 1-4</dd>
|
|
12
|
-
|
|
13
|
-
<dt>buttonAlt<span class="property-type">int</span></dt>
|
|
14
|
-
<dd>Alternative button number (unparsed from the bridge)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>ISO 8601 date string of the last time when a button was pressed</dd>
|
|
18
|
-
</dl>
|
|
19
|
-
|
|
20
|
-
<h3>Additional Sensor Info</h3>
|
|
21
|
-
<p>Additional information about the device is going to be sent to the <b>msg.info</b> object:</p>
|
|
22
|
-
<dl class="message-properties">
|
|
23
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
24
|
-
<dd>Numerical id of the sensor as registered on the bridge</dd>
|
|
25
|
-
|
|
26
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
27
|
-
<dd>Unique Id of the sensor (typically hardware id)</dd>
|
|
28
|
-
|
|
29
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Name for the sensor</dd>
|
|
31
|
-
|
|
32
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Sensor type (e.g. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
34
|
-
|
|
35
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
36
|
-
<dd>The model object of the sensor includes model specific information like the model.id, model.manufacturer, model.name and model.type</dd>
|
|
37
|
-
</dl>
|
|
38
|
-
|
|
39
|
-
<h3>Check status</h3>
|
|
40
|
-
<p>Retrieves the status of the device by passing the following parameters to the <b>msg.payload</b>:</p>
|
|
41
|
-
<dl class="message-properties">
|
|
42
|
-
<dt class="optional">status<span class="property-type">any</span></dt>
|
|
43
|
-
<dd>Returns the current status of the node without taking any action</dd>
|
|
44
|
-
</dl>
|
|
45
|
-
|
|
46
|
-
<h3>Universal Mode (optional)</h3>
|
|
47
|
-
<p>Defines the sensor Id on the Hue Bridge manually if not configured in the node properties:</p>
|
|
48
|
-
<dl class="message-properties">
|
|
49
|
-
<dt>msg.topic<span class="property-type">int</span></dt>
|
|
50
|
-
<dd>Manual definition of the sensor Id</dd>
|
|
51
|
-
</dl>
|
|
52
|
-
|
|
53
|
-
<h3>Last State Information</h3>
|
|
54
|
-
<p>This node also sends the entire last state data (before the update) in the <b>msg.lastState</b> object. It can either contain false (boolean) or the objects payload (msg.lastState.payload) and info (msg.lastState.info). The return value "false" is only sent if there was no last state, e.g. when the node was newly created or restarted.</p>
|
|
55
|
-
</script>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-tap":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Tap name",
|
|
8
|
-
"skipevents": "Skip events",
|
|
9
|
-
"skipevents-node": "Skip events from node",
|
|
10
|
-
"searching": "Searching Hue Taps…",
|
|
11
|
-
"none-found": "No Hue Taps found!",
|
|
12
|
-
"unknown-error": "Something went wrong. Please retry.",
|
|
13
|
-
"universalevents": "Universal Events",
|
|
14
|
-
"universalevents-node": "Receives all messages from other nodes of the same type (only in universal mode)"
|
|
15
|
-
},
|
|
16
|
-
"node":
|
|
17
|
-
{
|
|
18
|
-
"title": "Hue Tap",
|
|
19
|
-
"not-configured": "not configured",
|
|
20
|
-
"waiting": "waiting…",
|
|
21
|
-
"pressed-button": "Button #__button__ pressed",
|
|
22
|
-
"input": "status query",
|
|
23
|
-
"output": "pressed button",
|
|
24
|
-
"universal": "universal mode"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|