node-red-contrib-huemagic 2.8.2 → 4.0.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/CHANGELOG.md +229 -0
- package/README.md +806 -729
- 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/001-sunny.json +22 -22
- package/huemagic/animations/002-cloudy.json +46 -46
- package/huemagic/animations/003-nightsky.json +20 -20
- package/huemagic/animations/004-sunrise.json +54 -54
- package/huemagic/animations/005-sunset.json +46 -46
- package/huemagic/animations/006-fireplace.json +74 -74
- package/huemagic/animations/007-spring.json +31 -31
- package/huemagic/animations/008-autmn.json +23 -23
- package/huemagic/animations/009-winter.json +23 -23
- package/huemagic/animations/010-dirtyfog.json +23 -23
- package/huemagic/animations/011-lgbt.json +49 -50
- package/huemagic/animations/012-rasta.json +28 -29
- package/huemagic/animations/013-strobo.json +30 -31
- package/huemagic/animations/014-randomrainbow.json +30 -31
- package/huemagic/animations/015-sos.json +158 -159
- package/huemagic/animations/016-milkyway.json +83 -0
- package/huemagic/animations/017-beach.json +40 -0
- package/huemagic/animations/018-forest.json +43 -0
- 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/001-sunny.gif +0 -0
- package/huemagic/animations/previews/002-cloudy.gif +0 -0
- package/huemagic/animations/previews/003-nightsky.gif +0 -0
- package/huemagic/animations/previews/004-sunrise.gif +0 -0
- package/huemagic/animations/previews/005-sunset.gif +0 -0
- package/huemagic/animations/previews/006-fireplace.gif +0 -0
- package/huemagic/animations/previews/007-spring.gif +0 -0
- package/huemagic/animations/previews/008-autmn.gif +0 -0
- package/huemagic/animations/previews/009-winter.gif +0 -0
- package/huemagic/animations/previews/010-dirtyfog.gif +0 -0
- package/huemagic/animations/previews/011-lgbt.gif +0 -0
- package/huemagic/animations/previews/012-rasta.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/015-sos.gif +0 -0
- package/huemagic/animations/previews/016-milkyway.gif +0 -0
- package/huemagic/animations/previews/017-beach.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 +629 -319
- package/huemagic/hue-bridge.html +41 -21
- package/huemagic/hue-bridge.js +191 -398
- package/huemagic/hue-brightness.html +130 -49
- package/huemagic/hue-brightness.js +131 -35
- package/huemagic/hue-buttons.html +197 -0
- package/huemagic/hue-buttons.js +152 -0
- package/huemagic/hue-group.html +137 -60
- package/huemagic/hue-group.js +394 -367
- package/huemagic/hue-light.html +133 -59
- package/huemagic/hue-light.js +551 -336
- package/huemagic/hue-magic.html +91 -237
- package/huemagic/hue-magic.js +57 -27
- package/huemagic/hue-motion.html +128 -50
- package/huemagic/hue-motion.js +116 -87
- package/huemagic/hue-rules.html +121 -50
- package/huemagic/hue-rules.js +84 -64
- package/huemagic/hue-scene.html +96 -115
- package/huemagic/hue-scene.js +65 -96
- package/huemagic/hue-temperature.html +130 -49
- package/huemagic/hue-temperature.js +136 -32
- 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 +52 -38
- package/huemagic/locales/de/hue-brightness.json +7 -2
- package/huemagic/locales/de/hue-buttons.html +58 -0
- package/huemagic/locales/de/hue-buttons.json +28 -0
- package/huemagic/locales/de/hue-group.html +46 -122
- package/huemagic/locales/de/hue-group.json +4 -2
- package/huemagic/locales/de/hue-light.html +68 -116
- package/huemagic/locales/de/hue-light.json +5 -2
- 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 +48 -44
- package/huemagic/locales/de/hue-motion.json +6 -3
- 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 +53 -36
- package/huemagic/locales/de/hue-temperature.json +7 -2
- 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 +52 -38
- package/huemagic/locales/en-US/hue-brightness.json +10 -3
- package/huemagic/locales/en-US/hue-buttons.html +58 -0
- package/huemagic/locales/en-US/hue-buttons.json +34 -0
- package/huemagic/locales/en-US/hue-group.html +46 -122
- package/huemagic/locales/en-US/hue-group.json +7 -3
- package/huemagic/locales/en-US/hue-light.html +68 -116
- package/huemagic/locales/en-US/hue-light.json +8 -3
- 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 +48 -44
- package/huemagic/locales/en-US/hue-motion.json +9 -4
- 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 +53 -36
- package/huemagic/locales/en-US/hue-temperature.json +10 -3
- package/huemagic/utils/api.js +290 -0
- package/huemagic/utils/color.js +382 -0
- package/{utils → huemagic/utils}/merge.js +9 -6
- package/huemagic/utils/messages.js +447 -0
- package/package.json +12 -12
- package/examples/Hue Switch.json +0 -40
- package/examples/Hue Tap.json +0 -40
- package/huemagic/assets/anime.js +0 -8
- package/huemagic/hue-switch.html +0 -119
- package/huemagic/hue-switch.js +0 -113
- package/huemagic/hue-tap.html +0 -119
- package/huemagic/hue-tap.js +0 -74
- 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-switch.html +0 -50
- package/huemagic/locales/de/hue-switch.json +0 -31
- package/huemagic/locales/de/hue-tap.html +0 -41
- package/huemagic/locales/de/hue-tap.json +0 -23
- package/huemagic/locales/en-US/hue-switch.html +0 -50
- package/huemagic/locales/en-US/hue-switch.json +0 -31
- package/huemagic/locales/en-US/hue-tap.html +0 -41
- package/huemagic/locales/en-US/hue-tap.json +0 -23
- package/utils/messages.js +0 -571
- package/utils/rgb.js +0 -188
package/examples/Hue Bridge.json
CHANGED
|
@@ -11,42 +11,26 @@
|
|
|
11
11
|
"type": "inject",
|
|
12
12
|
"z": "bf04a073.be4428",
|
|
13
13
|
"name": "TouchLink",
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"props": [
|
|
15
|
+
{
|
|
16
|
+
"p": "payload"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
17
19
|
"repeat": "",
|
|
18
20
|
"crontab": "",
|
|
19
21
|
"once": false,
|
|
20
22
|
"onceDelay": 0.1,
|
|
21
|
-
"x": 200,
|
|
22
|
-
"y": 60,
|
|
23
|
-
"wires": [
|
|
24
|
-
[
|
|
25
|
-
"ea4668e7.fac4f"
|
|
26
|
-
]
|
|
27
|
-
],
|
|
28
|
-
"icon": "font-awesome/fa-hand-o-right"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": "b9a63d91.47a5e8",
|
|
32
|
-
"type": "inject",
|
|
33
|
-
"z": "bf04a073.be4428",
|
|
34
|
-
"name": "Fetch users",
|
|
35
23
|
"topic": "",
|
|
36
|
-
"payload": "{\"
|
|
24
|
+
"payload": "{\"touchLink\":true}",
|
|
37
25
|
"payloadType": "json",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"once": false,
|
|
41
|
-
"onceDelay": 0.1,
|
|
42
|
-
"x": 190,
|
|
43
|
-
"y": 120,
|
|
26
|
+
"x": 120,
|
|
27
|
+
"y": 260,
|
|
44
28
|
"wires": [
|
|
45
29
|
[
|
|
46
30
|
"ea4668e7.fac4f"
|
|
47
31
|
]
|
|
48
32
|
],
|
|
49
|
-
"icon": "font-awesome/fa-
|
|
33
|
+
"icon": "font-awesome/fa-hand-o-right"
|
|
50
34
|
},
|
|
51
35
|
{
|
|
52
36
|
"id": "effb4d48.e09bb8",
|
|
@@ -57,10 +41,12 @@
|
|
|
57
41
|
"tosidebar": true,
|
|
58
42
|
"console": false,
|
|
59
43
|
"tostatus": false,
|
|
60
|
-
"complete": "
|
|
61
|
-
"targetType": "
|
|
62
|
-
"
|
|
63
|
-
"
|
|
44
|
+
"complete": "true",
|
|
45
|
+
"targetType": "full",
|
|
46
|
+
"statusVal": "",
|
|
47
|
+
"statusType": "auto",
|
|
48
|
+
"x": 730,
|
|
49
|
+
"y": 160,
|
|
64
50
|
"wires": [],
|
|
65
51
|
"icon": "font-awesome/fa-info-circle"
|
|
66
52
|
},
|
|
@@ -68,10 +54,11 @@
|
|
|
68
54
|
"id": "ea4668e7.fac4f",
|
|
69
55
|
"type": "hue-bridge-node",
|
|
70
56
|
"z": "bf04a073.be4428",
|
|
71
|
-
"name": "",
|
|
72
57
|
"autoupdates": true,
|
|
73
|
-
"
|
|
74
|
-
"
|
|
58
|
+
"skipglobalevents": false,
|
|
59
|
+
"initevents": false,
|
|
60
|
+
"x": 550,
|
|
61
|
+
"y": 160,
|
|
75
62
|
"wires": [
|
|
76
63
|
[
|
|
77
64
|
"effb4d48.e09bb8"
|
|
@@ -83,20 +70,187 @@
|
|
|
83
70
|
"type": "inject",
|
|
84
71
|
"z": "bf04a073.be4428",
|
|
85
72
|
"name": "Change bridge name",
|
|
73
|
+
"props": [
|
|
74
|
+
{
|
|
75
|
+
"p": "payload",
|
|
76
|
+
"v": "{\"settings\":{\"name\":\"HueMagic Bridge\"}}",
|
|
77
|
+
"vt": "json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"p": "topic",
|
|
81
|
+
"v": "",
|
|
82
|
+
"vt": "str"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"repeat": "",
|
|
86
|
+
"crontab": "",
|
|
87
|
+
"once": false,
|
|
88
|
+
"onceDelay": 0.1,
|
|
86
89
|
"topic": "",
|
|
87
90
|
"payload": "{\"settings\":{\"name\":\"HueMagic Bridge\"}}",
|
|
88
91
|
"payloadType": "json",
|
|
92
|
+
"x": 160,
|
|
93
|
+
"y": 360,
|
|
94
|
+
"wires": [
|
|
95
|
+
[
|
|
96
|
+
"ea4668e7.fac4f"
|
|
97
|
+
]
|
|
98
|
+
],
|
|
99
|
+
"icon": "font-awesome/fa-toggle-on"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "808fb3ba34d8d872",
|
|
103
|
+
"type": "comment",
|
|
104
|
+
"z": "bf04a073.be4428",
|
|
105
|
+
"name": "Change the bridge settings",
|
|
106
|
+
"info": "",
|
|
107
|
+
"x": 130,
|
|
108
|
+
"y": 320,
|
|
109
|
+
"wires": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "6a2d7cbb05fc38a8",
|
|
113
|
+
"type": "comment",
|
|
114
|
+
"z": "bf04a073.be4428",
|
|
115
|
+
"name": "Press bridge button remotely",
|
|
116
|
+
"info": "",
|
|
117
|
+
"x": 140,
|
|
118
|
+
"y": 220,
|
|
119
|
+
"wires": []
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "a1d6fdeca2c9c014",
|
|
123
|
+
"type": "comment",
|
|
124
|
+
"z": "bf04a073.be4428",
|
|
125
|
+
"name": "Fetch specific bridge ressources",
|
|
126
|
+
"info": "",
|
|
127
|
+
"x": 150,
|
|
128
|
+
"y": 420,
|
|
129
|
+
"wires": []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "5829dc7c634e6674",
|
|
133
|
+
"type": "inject",
|
|
134
|
+
"z": "bf04a073.be4428",
|
|
135
|
+
"name": "Fetch all lights",
|
|
136
|
+
"props": [
|
|
137
|
+
{
|
|
138
|
+
"p": "payload"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
89
141
|
"repeat": "",
|
|
90
142
|
"crontab": "",
|
|
91
143
|
"once": false,
|
|
92
144
|
"onceDelay": 0.1,
|
|
93
|
-
"
|
|
94
|
-
"
|
|
145
|
+
"topic": "",
|
|
146
|
+
"payload": "{\"fetch\":\"light\"}",
|
|
147
|
+
"payloadType": "json",
|
|
148
|
+
"x": 130,
|
|
149
|
+
"y": 460,
|
|
95
150
|
"wires": [
|
|
96
151
|
[
|
|
97
152
|
"ea4668e7.fac4f"
|
|
98
153
|
]
|
|
99
154
|
],
|
|
100
|
-
"icon": "
|
|
155
|
+
"icon": "node-red-contrib-huemagic/hue-light.svg"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "09d15741c0c484b7",
|
|
159
|
+
"type": "inject",
|
|
160
|
+
"z": "bf04a073.be4428",
|
|
161
|
+
"name": "Fetch all motion sensors",
|
|
162
|
+
"props": [
|
|
163
|
+
{
|
|
164
|
+
"p": "payload"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"repeat": "",
|
|
168
|
+
"crontab": "",
|
|
169
|
+
"once": false,
|
|
170
|
+
"onceDelay": 0.1,
|
|
171
|
+
"topic": "",
|
|
172
|
+
"payload": "{\"fetch\":\"motion\"}",
|
|
173
|
+
"payloadType": "json",
|
|
174
|
+
"x": 170,
|
|
175
|
+
"y": 500,
|
|
176
|
+
"wires": [
|
|
177
|
+
[
|
|
178
|
+
"ea4668e7.fac4f"
|
|
179
|
+
]
|
|
180
|
+
],
|
|
181
|
+
"icon": "node-red-contrib-huemagic/hue-motion.svg"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "fec4a7abbeecac4b",
|
|
185
|
+
"type": "inject",
|
|
186
|
+
"z": "bf04a073.be4428",
|
|
187
|
+
"name": "Fetch all motion sensors & lights",
|
|
188
|
+
"props": [
|
|
189
|
+
{
|
|
190
|
+
"p": "payload"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"repeat": "",
|
|
194
|
+
"crontab": "",
|
|
195
|
+
"once": false,
|
|
196
|
+
"onceDelay": 0.1,
|
|
197
|
+
"topic": "",
|
|
198
|
+
"payload": "{\"fetch\":[\"motion\", \"light\"]}",
|
|
199
|
+
"payloadType": "json",
|
|
200
|
+
"x": 190,
|
|
201
|
+
"y": 540,
|
|
202
|
+
"wires": [
|
|
203
|
+
[
|
|
204
|
+
"ea4668e7.fac4f"
|
|
205
|
+
]
|
|
206
|
+
],
|
|
207
|
+
"icon": "font-awesome/fa-clone"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "35bf62bc11c94830",
|
|
211
|
+
"type": "comment",
|
|
212
|
+
"z": "bf04a073.be4428",
|
|
213
|
+
"name": "FIRST STEPS (double click me)",
|
|
214
|
+
"info": "Click on the \"Hue Bridge\" node and select your bridge. If you have not yet set up a bridge, you will be asked to set one up before you can finish configuring the node.\n\nAs soon as the node is connected to your bridge and you have deployed the changes in Node-RED, the status of the node should change to \"connected\". The node can then receive and execute your commands. The \"Hue Bridge\" node also automatically outputs a message each time as soon as the status of a certain resource on the bridge has been updated. You can get the updated status and all of its information in the \"updated\" property of the output message.\n\nYou can also query the current status of the node in the Node-RED interface at any time by clicking on the button of the node next to the icon.\n\nIf you would like to receive further information on this node, the possible commands and output values, then click on it once in your flow and navigate to the Node-RED book icon (top right corner).",
|
|
215
|
+
"x": 150,
|
|
216
|
+
"y": 40,
|
|
217
|
+
"wires": [],
|
|
218
|
+
"icon": "font-awesome/fa-question-circle"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "150fa3da0eea6bce",
|
|
222
|
+
"type": "comment",
|
|
223
|
+
"z": "bf04a073.be4428",
|
|
224
|
+
"name": "Get the current status",
|
|
225
|
+
"info": "",
|
|
226
|
+
"x": 120,
|
|
227
|
+
"y": 120,
|
|
228
|
+
"wires": []
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "474d44e13140d4a8",
|
|
232
|
+
"type": "inject",
|
|
233
|
+
"z": "bf04a073.be4428",
|
|
234
|
+
"name": "Status",
|
|
235
|
+
"props": [
|
|
236
|
+
{
|
|
237
|
+
"p": "payload"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"repeat": "",
|
|
241
|
+
"crontab": "",
|
|
242
|
+
"once": false,
|
|
243
|
+
"onceDelay": 0.1,
|
|
244
|
+
"topic": "",
|
|
245
|
+
"payload": "{\"status\":true}",
|
|
246
|
+
"payloadType": "json",
|
|
247
|
+
"x": 110,
|
|
248
|
+
"y": 160,
|
|
249
|
+
"wires": [
|
|
250
|
+
[
|
|
251
|
+
"ea4668e7.fac4f"
|
|
252
|
+
]
|
|
253
|
+
],
|
|
254
|
+
"icon": "node-red/alert.svg"
|
|
101
255
|
}
|
|
102
256
|
]
|
|
@@ -7,7 +7,32 @@
|
|
|
7
7
|
"info": "Example use of the Hue Brightness node"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"id": "
|
|
10
|
+
"id": "bc4daa7a.ddc16",
|
|
11
|
+
"type": "hue-brightness",
|
|
12
|
+
"z": "d081bb24.81a8d",
|
|
13
|
+
"skipevents": false,
|
|
14
|
+
"initevents": false,
|
|
15
|
+
"x": 480,
|
|
16
|
+
"y": 160,
|
|
17
|
+
"wires": [
|
|
18
|
+
[
|
|
19
|
+
"4cf0eb6d2a66fd14"
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "6a8f3df98e7625b8",
|
|
25
|
+
"type": "comment",
|
|
26
|
+
"z": "d081bb24.81a8d",
|
|
27
|
+
"name": "FIRST STEPS (double click me)",
|
|
28
|
+
"info": "Click on the \"Hue Brightness\" node and select both your bridge and a sensor from the list. If you have not yet set up a bridge, you will be asked to set one up before you can finish configuring the node.\n\nAs soon as the node is connected to your bridge and the sensor and you have deployed the changes in Node-RED, the node can receive and execute your commands. The \"Hue Brightness\" node automatically outputs a message each time as soon as the status of the sensor on the bridge has been updated (new light level registered). You will receive the updated status and all of its information in the message that is issued.\n\nIf you would like to receive more information about this node, the possible commands and output values, then click on it once in your flow and navigate to the Node-RED book icon (top right corner).",
|
|
29
|
+
"x": 150,
|
|
30
|
+
"y": 40,
|
|
31
|
+
"wires": [],
|
|
32
|
+
"icon": "font-awesome/fa-question-circle"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "4cf0eb6d2a66fd14",
|
|
11
36
|
"type": "debug",
|
|
12
37
|
"z": "d081bb24.81a8d",
|
|
13
38
|
"name": "Information",
|
|
@@ -15,26 +40,111 @@
|
|
|
15
40
|
"tosidebar": true,
|
|
16
41
|
"console": false,
|
|
17
42
|
"tostatus": false,
|
|
18
|
-
"complete": "
|
|
19
|
-
"targetType": "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
43
|
+
"complete": "true",
|
|
44
|
+
"targetType": "full",
|
|
45
|
+
"statusVal": "",
|
|
46
|
+
"statusType": "auto",
|
|
47
|
+
"x": 690,
|
|
48
|
+
"y": 160,
|
|
22
49
|
"wires": [],
|
|
23
50
|
"icon": "font-awesome/fa-info-circle"
|
|
24
51
|
},
|
|
25
52
|
{
|
|
26
|
-
"id": "
|
|
27
|
-
"type": "
|
|
53
|
+
"id": "433f55c9fedd4e3b",
|
|
54
|
+
"type": "comment",
|
|
28
55
|
"z": "d081bb24.81a8d",
|
|
29
|
-
"name": "",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
56
|
+
"name": "Get the current status",
|
|
57
|
+
"info": "",
|
|
58
|
+
"x": 120,
|
|
59
|
+
"y": 120,
|
|
60
|
+
"wires": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "88b02ac839431cc1",
|
|
64
|
+
"type": "inject",
|
|
65
|
+
"z": "d081bb24.81a8d",
|
|
66
|
+
"name": "Status",
|
|
67
|
+
"props": [
|
|
68
|
+
{
|
|
69
|
+
"p": "payload"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"repeat": "",
|
|
73
|
+
"crontab": "",
|
|
74
|
+
"once": false,
|
|
75
|
+
"onceDelay": 0.1,
|
|
76
|
+
"topic": "",
|
|
77
|
+
"payload": "{\"status\":true}",
|
|
78
|
+
"payloadType": "json",
|
|
79
|
+
"x": 110,
|
|
80
|
+
"y": 160,
|
|
34
81
|
"wires": [
|
|
35
82
|
[
|
|
36
|
-
"
|
|
83
|
+
"bc4daa7a.ddc16"
|
|
37
84
|
]
|
|
38
|
-
]
|
|
85
|
+
],
|
|
86
|
+
"icon": "node-red/alert.svg"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "bd060e6399f15f95",
|
|
90
|
+
"type": "comment",
|
|
91
|
+
"z": "d081bb24.81a8d",
|
|
92
|
+
"name": "Turn on / off the device",
|
|
93
|
+
"info": "",
|
|
94
|
+
"x": 120,
|
|
95
|
+
"y": 220,
|
|
96
|
+
"wires": []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "15c9417b8ed13b49",
|
|
100
|
+
"type": "inject",
|
|
101
|
+
"z": "d081bb24.81a8d",
|
|
102
|
+
"name": "Turn on",
|
|
103
|
+
"props": [
|
|
104
|
+
{
|
|
105
|
+
"p": "payload"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"repeat": "",
|
|
109
|
+
"crontab": "",
|
|
110
|
+
"once": false,
|
|
111
|
+
"onceDelay": 0.1,
|
|
112
|
+
"topic": "",
|
|
113
|
+
"payload": "true",
|
|
114
|
+
"payloadType": "bool",
|
|
115
|
+
"x": 110,
|
|
116
|
+
"y": 260,
|
|
117
|
+
"wires": [
|
|
118
|
+
[
|
|
119
|
+
"bc4daa7a.ddc16"
|
|
120
|
+
]
|
|
121
|
+
],
|
|
122
|
+
"icon": "font-awesome/fa-circle"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "89e7bcee38350561",
|
|
126
|
+
"type": "inject",
|
|
127
|
+
"z": "d081bb24.81a8d",
|
|
128
|
+
"name": "Turn off",
|
|
129
|
+
"props": [
|
|
130
|
+
{
|
|
131
|
+
"p": "payload"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"repeat": "",
|
|
135
|
+
"crontab": "",
|
|
136
|
+
"once": false,
|
|
137
|
+
"onceDelay": 0.1,
|
|
138
|
+
"topic": "",
|
|
139
|
+
"payload": "false",
|
|
140
|
+
"payloadType": "bool",
|
|
141
|
+
"x": 110,
|
|
142
|
+
"y": 300,
|
|
143
|
+
"wires": [
|
|
144
|
+
[
|
|
145
|
+
"bc4daa7a.ddc16"
|
|
146
|
+
]
|
|
147
|
+
],
|
|
148
|
+
"icon": "font-awesome/fa-circle-o"
|
|
39
149
|
}
|
|
40
150
|
]
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "d5d4a606.0f05",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Hue Buttons (example)",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "Example use of the Hue Buttons node"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "b650df5fecbbc08d",
|
|
11
|
+
"type": "comment",
|
|
12
|
+
"z": "d5d4a606.0f05",
|
|
13
|
+
"name": "FIRST STEPS (double click me)",
|
|
14
|
+
"info": "Click on the \"Hue Buttons\" node and select both your bridge and a device from the list. If you have not yet set up a bridge, you will be asked to set one up before you can finish configuring the node.\n\nAs soon as the node is connected to your bridge and the device and you have deployed the changes in Node-RED, the node automatically outputs a message when the status of the device on the bridge has been updated (button clicked). You will receive the updated status and all of its information in the message that is issued.\n\nIf you would like to receive more information about this node, the possible commands and output values, then click on it once in your flow and navigate to the Node-RED book icon (top right corner).",
|
|
15
|
+
"x": 150,
|
|
16
|
+
"y": 40,
|
|
17
|
+
"wires": [],
|
|
18
|
+
"icon": "font-awesome/fa-question-circle"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "79f1f61985718e40",
|
|
22
|
+
"type": "debug",
|
|
23
|
+
"z": "d5d4a606.0f05",
|
|
24
|
+
"name": "Information",
|
|
25
|
+
"active": true,
|
|
26
|
+
"tosidebar": true,
|
|
27
|
+
"console": false,
|
|
28
|
+
"tostatus": false,
|
|
29
|
+
"complete": "true",
|
|
30
|
+
"targetType": "full",
|
|
31
|
+
"statusVal": "",
|
|
32
|
+
"statusType": "auto",
|
|
33
|
+
"x": 630,
|
|
34
|
+
"y": 160,
|
|
35
|
+
"wires": [],
|
|
36
|
+
"icon": "font-awesome/fa-info-circle"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "9b5c4dce9c98015c",
|
|
40
|
+
"type": "comment",
|
|
41
|
+
"z": "d5d4a606.0f05",
|
|
42
|
+
"name": "Get the current status",
|
|
43
|
+
"info": "",
|
|
44
|
+
"x": 120,
|
|
45
|
+
"y": 120,
|
|
46
|
+
"wires": []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "74f3cdad2b625d5c",
|
|
50
|
+
"type": "inject",
|
|
51
|
+
"z": "d5d4a606.0f05",
|
|
52
|
+
"name": "Status",
|
|
53
|
+
"props": [
|
|
54
|
+
{
|
|
55
|
+
"p": "payload"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"repeat": "",
|
|
59
|
+
"crontab": "",
|
|
60
|
+
"once": false,
|
|
61
|
+
"onceDelay": 0.1,
|
|
62
|
+
"topic": "",
|
|
63
|
+
"payload": "{\"status\":true}",
|
|
64
|
+
"payloadType": "json",
|
|
65
|
+
"x": 110,
|
|
66
|
+
"y": 160,
|
|
67
|
+
"wires": [
|
|
68
|
+
[
|
|
69
|
+
"664e68b0b62d7e4e"
|
|
70
|
+
]
|
|
71
|
+
],
|
|
72
|
+
"icon": "node-red/alert.svg"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "664e68b0b62d7e4e",
|
|
76
|
+
"type": "hue-buttons",
|
|
77
|
+
"z": "d5d4a606.0f05",
|
|
78
|
+
"skipevents": false,
|
|
79
|
+
"initevents": false,
|
|
80
|
+
"x": 450,
|
|
81
|
+
"y": 160,
|
|
82
|
+
"wires": [
|
|
83
|
+
[
|
|
84
|
+
"79f1f61985718e40"
|
|
85
|
+
]
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|