smart-nodes 0.1.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.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +127 -0
  4. package/central/central.html +328 -0
  5. package/central/central.js +95 -0
  6. package/compare/compare.html +137 -0
  7. package/compare/compare.js +151 -0
  8. package/delay/delay.html +192 -0
  9. package/delay/delay.js +175 -0
  10. package/examples/central.json +804 -0
  11. package/examples/central.png +0 -0
  12. package/examples/compare.json +916 -0
  13. package/examples/compare.png +0 -0
  14. package/examples/delay.json +198 -0
  15. package/examples/delay.png +0 -0
  16. package/examples/forwarder.json +152 -0
  17. package/examples/forwarder.png +0 -0
  18. package/examples/hysteresis.json +358 -0
  19. package/examples/hysteresis.png +0 -0
  20. package/examples/light-control.json +499 -0
  21. package/examples/light-control.png +0 -0
  22. package/examples/logic.json +562 -0
  23. package/examples/logic.png +0 -0
  24. package/examples/long-press-control.json +113 -0
  25. package/examples/long-press-control.png +0 -0
  26. package/examples/multi-press-control.json +136 -0
  27. package/examples/multi-press-control.png +0 -0
  28. package/examples/scene-control.json +535 -0
  29. package/examples/scene-control.png +0 -0
  30. package/examples/scheduler.json +164 -0
  31. package/examples/scheduler.png +0 -0
  32. package/examples/shutter-complex-control.json +489 -0
  33. package/examples/shutter-complex-control.png +0 -0
  34. package/examples/shutter-control.json +457 -0
  35. package/examples/shutter-control.png +0 -0
  36. package/examples/statistic.json +1112 -0
  37. package/examples/statistic.png +0 -0
  38. package/forwarder/forwarder.html +100 -0
  39. package/forwarder/forwarder.js +95 -0
  40. package/hysteresis/hysteresis.html +152 -0
  41. package/hysteresis/hysteresis.js +146 -0
  42. package/light-control/light-control.html +358 -0
  43. package/light-control/light-control.js +231 -0
  44. package/logic/logic.html +168 -0
  45. package/logic/logic.js +171 -0
  46. package/long-press-control/long-press-control.html +74 -0
  47. package/long-press-control/long-press-control.js +75 -0
  48. package/multi-press-control/multi-press-control.html +135 -0
  49. package/multi-press-control/multi-press-control.js +68 -0
  50. package/package.json +59 -0
  51. package/persistence.js +74 -0
  52. package/scene-control/scene-control.html +575 -0
  53. package/scene-control/scene-control.js +265 -0
  54. package/scheduler/scheduler.html +338 -0
  55. package/scheduler/scheduler.js +209 -0
  56. package/shutter-complex-control/shutter-complex-control.html +330 -0
  57. package/shutter-complex-control/shutter-complex-control.js +399 -0
  58. package/shutter-control/shutter-control.html +283 -0
  59. package/shutter-control/shutter-control.js +208 -0
  60. package/smart_helper.js +156 -0
  61. package/statistic/statistic.html +107 -0
  62. package/statistic/statistic.js +196 -0
@@ -0,0 +1,457 @@
1
+ [
2
+ {
3
+ "id": "13123aeab063a1a5",
4
+ "type": "tab",
5
+ "label": "Shutter",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "7abf123e203afbfd",
12
+ "type": "smart_shutter-control",
13
+ "z": "13123aeab063a1a5",
14
+ "name": "",
15
+ "links": [],
16
+ "x": 540,
17
+ "y": 320,
18
+ "wires": [
19
+ [
20
+ "6732a85bde565e2d"
21
+ ],
22
+ [
23
+ "97d502760fc86781"
24
+ ],
25
+ [
26
+ "43981692446ad641"
27
+ ]
28
+ ]
29
+ },
30
+ {
31
+ "id": "4c7045066abab95f",
32
+ "type": "inject",
33
+ "z": "13123aeab063a1a5",
34
+ "name": "",
35
+ "props": [
36
+ {
37
+ "p": "topic",
38
+ "vt": "str"
39
+ },
40
+ {
41
+ "p": "payload"
42
+ }
43
+ ],
44
+ "repeat": "",
45
+ "crontab": "",
46
+ "once": false,
47
+ "onceDelay": 0.1,
48
+ "topic": "status",
49
+ "payload": "0",
50
+ "payloadType": "num",
51
+ "x": 150,
52
+ "y": 60,
53
+ "wires": [
54
+ [
55
+ "7abf123e203afbfd"
56
+ ]
57
+ ]
58
+ },
59
+ {
60
+ "id": "6732a85bde565e2d",
61
+ "type": "debug",
62
+ "z": "13123aeab063a1a5",
63
+ "name": "debug 13",
64
+ "active": true,
65
+ "tosidebar": true,
66
+ "console": false,
67
+ "tostatus": false,
68
+ "complete": "true",
69
+ "targetType": "full",
70
+ "statusVal": "",
71
+ "statusType": "auto",
72
+ "x": 840,
73
+ "y": 280,
74
+ "wires": []
75
+ },
76
+ {
77
+ "id": "97d502760fc86781",
78
+ "type": "debug",
79
+ "z": "13123aeab063a1a5",
80
+ "name": "debug 14",
81
+ "active": true,
82
+ "tosidebar": true,
83
+ "console": false,
84
+ "tostatus": false,
85
+ "complete": "true",
86
+ "targetType": "full",
87
+ "statusVal": "",
88
+ "statusType": "auto",
89
+ "x": 840,
90
+ "y": 320,
91
+ "wires": []
92
+ },
93
+ {
94
+ "id": "43981692446ad641",
95
+ "type": "debug",
96
+ "z": "13123aeab063a1a5",
97
+ "name": "debug 15",
98
+ "active": true,
99
+ "tosidebar": true,
100
+ "console": false,
101
+ "tostatus": false,
102
+ "complete": "true",
103
+ "targetType": "full",
104
+ "statusVal": "",
105
+ "statusType": "auto",
106
+ "x": 840,
107
+ "y": 360,
108
+ "wires": []
109
+ },
110
+ {
111
+ "id": "6593f239d71c379b",
112
+ "type": "inject",
113
+ "z": "13123aeab063a1a5",
114
+ "name": "",
115
+ "props": [
116
+ {
117
+ "p": "topic",
118
+ "vt": "str"
119
+ },
120
+ {
121
+ "p": "payload"
122
+ }
123
+ ],
124
+ "repeat": "",
125
+ "crontab": "",
126
+ "once": false,
127
+ "onceDelay": 0.1,
128
+ "topic": "status",
129
+ "payload": "50",
130
+ "payloadType": "num",
131
+ "x": 140,
132
+ "y": 100,
133
+ "wires": [
134
+ [
135
+ "7abf123e203afbfd"
136
+ ]
137
+ ]
138
+ },
139
+ {
140
+ "id": "a3a7394620986bbc",
141
+ "type": "inject",
142
+ "z": "13123aeab063a1a5",
143
+ "name": "",
144
+ "props": [
145
+ {
146
+ "p": "topic",
147
+ "vt": "str"
148
+ },
149
+ {
150
+ "p": "payload"
151
+ }
152
+ ],
153
+ "repeat": "",
154
+ "crontab": "",
155
+ "once": false,
156
+ "onceDelay": 0.1,
157
+ "topic": "status",
158
+ "payload": "100",
159
+ "payloadType": "num",
160
+ "x": 140,
161
+ "y": 140,
162
+ "wires": [
163
+ [
164
+ "7abf123e203afbfd"
165
+ ]
166
+ ]
167
+ },
168
+ {
169
+ "id": "934d9a0dba20677b",
170
+ "type": "inject",
171
+ "z": "13123aeab063a1a5",
172
+ "name": "",
173
+ "props": [
174
+ {
175
+ "p": "topic",
176
+ "vt": "str"
177
+ }
178
+ ],
179
+ "repeat": "",
180
+ "crontab": "",
181
+ "once": false,
182
+ "onceDelay": 0.1,
183
+ "topic": "up",
184
+ "x": 150,
185
+ "y": 180,
186
+ "wires": [
187
+ [
188
+ "7abf123e203afbfd"
189
+ ]
190
+ ]
191
+ },
192
+ {
193
+ "id": "48e7e0cadc614ad8",
194
+ "type": "inject",
195
+ "z": "13123aeab063a1a5",
196
+ "name": "",
197
+ "props": [
198
+ {
199
+ "p": "topic",
200
+ "vt": "str"
201
+ }
202
+ ],
203
+ "repeat": "",
204
+ "crontab": "",
205
+ "once": false,
206
+ "onceDelay": 0.1,
207
+ "topic": "up_stop",
208
+ "x": 140,
209
+ "y": 260,
210
+ "wires": [
211
+ [
212
+ "7abf123e203afbfd"
213
+ ]
214
+ ]
215
+ },
216
+ {
217
+ "id": "23358c40d03d9b19",
218
+ "type": "inject",
219
+ "z": "13123aeab063a1a5",
220
+ "name": "",
221
+ "props": [
222
+ {
223
+ "p": "topic",
224
+ "vt": "str"
225
+ }
226
+ ],
227
+ "repeat": "",
228
+ "crontab": "",
229
+ "once": false,
230
+ "onceDelay": 0.1,
231
+ "topic": "stop",
232
+ "x": 150,
233
+ "y": 300,
234
+ "wires": [
235
+ [
236
+ "7abf123e203afbfd"
237
+ ]
238
+ ]
239
+ },
240
+ {
241
+ "id": "b9161e8b725d833d",
242
+ "type": "inject",
243
+ "z": "13123aeab063a1a5",
244
+ "name": "",
245
+ "props": [
246
+ {
247
+ "p": "topic",
248
+ "vt": "str"
249
+ }
250
+ ],
251
+ "repeat": "",
252
+ "crontab": "",
253
+ "once": false,
254
+ "onceDelay": 0.1,
255
+ "topic": "down_stop",
256
+ "x": 130,
257
+ "y": 340,
258
+ "wires": [
259
+ [
260
+ "7abf123e203afbfd"
261
+ ]
262
+ ]
263
+ },
264
+ {
265
+ "id": "127c89c437184278",
266
+ "type": "inject",
267
+ "z": "13123aeab063a1a5",
268
+ "name": "",
269
+ "props": [
270
+ {
271
+ "p": "topic",
272
+ "vt": "str"
273
+ }
274
+ ],
275
+ "repeat": "",
276
+ "crontab": "",
277
+ "once": false,
278
+ "onceDelay": 0.1,
279
+ "topic": "down",
280
+ "x": 150,
281
+ "y": 380,
282
+ "wires": [
283
+ [
284
+ "7abf123e203afbfd"
285
+ ]
286
+ ]
287
+ },
288
+ {
289
+ "id": "b3ebaf7c5cbe8790",
290
+ "type": "inject",
291
+ "z": "13123aeab063a1a5",
292
+ "name": "",
293
+ "props": [
294
+ {
295
+ "p": "topic",
296
+ "vt": "str"
297
+ },
298
+ {
299
+ "p": "payload"
300
+ }
301
+ ],
302
+ "repeat": "",
303
+ "crontab": "",
304
+ "once": false,
305
+ "onceDelay": 0.1,
306
+ "topic": "position",
307
+ "payload": "0",
308
+ "payloadType": "str",
309
+ "x": 140,
310
+ "y": 460,
311
+ "wires": [
312
+ [
313
+ "7abf123e203afbfd"
314
+ ]
315
+ ]
316
+ },
317
+ {
318
+ "id": "1fd343c753e5ca69",
319
+ "type": "inject",
320
+ "z": "13123aeab063a1a5",
321
+ "name": "",
322
+ "props": [
323
+ {
324
+ "p": "topic",
325
+ "vt": "str"
326
+ },
327
+ {
328
+ "p": "payload"
329
+ }
330
+ ],
331
+ "repeat": "",
332
+ "crontab": "",
333
+ "once": false,
334
+ "onceDelay": 0.1,
335
+ "topic": "position",
336
+ "payload": "50",
337
+ "payloadType": "str",
338
+ "x": 140,
339
+ "y": 500,
340
+ "wires": [
341
+ [
342
+ "7abf123e203afbfd"
343
+ ]
344
+ ]
345
+ },
346
+ {
347
+ "id": "20ab1030d42f6fd0",
348
+ "type": "inject",
349
+ "z": "13123aeab063a1a5",
350
+ "name": "",
351
+ "props": [
352
+ {
353
+ "p": "topic",
354
+ "vt": "str"
355
+ },
356
+ {
357
+ "p": "payload"
358
+ }
359
+ ],
360
+ "repeat": "",
361
+ "crontab": "",
362
+ "once": false,
363
+ "onceDelay": 0.1,
364
+ "topic": "position",
365
+ "payload": "100",
366
+ "payloadType": "str",
367
+ "x": 130,
368
+ "y": 540,
369
+ "wires": [
370
+ [
371
+ "7abf123e203afbfd"
372
+ ]
373
+ ]
374
+ },
375
+ {
376
+ "id": "c29dad632e8df6fc",
377
+ "type": "inject",
378
+ "z": "13123aeab063a1a5",
379
+ "name": "",
380
+ "props": [
381
+ {
382
+ "p": "topic",
383
+ "vt": "str"
384
+ }
385
+ ],
386
+ "repeat": "",
387
+ "crontab": "",
388
+ "once": false,
389
+ "onceDelay": 0.1,
390
+ "topic": "toggle",
391
+ "x": 150,
392
+ "y": 580,
393
+ "wires": [
394
+ [
395
+ "7abf123e203afbfd"
396
+ ]
397
+ ]
398
+ },
399
+ {
400
+ "id": "95cee373407d8d27",
401
+ "type": "inject",
402
+ "z": "13123aeab063a1a5",
403
+ "name": "up: 2s",
404
+ "props": [
405
+ {
406
+ "p": "topic",
407
+ "vt": "str"
408
+ },
409
+ {
410
+ "p": "time_on",
411
+ "v": "2s",
412
+ "vt": "str"
413
+ }
414
+ ],
415
+ "repeat": "",
416
+ "crontab": "",
417
+ "once": false,
418
+ "onceDelay": 0.1,
419
+ "topic": "up",
420
+ "x": 150,
421
+ "y": 220,
422
+ "wires": [
423
+ [
424
+ "7abf123e203afbfd"
425
+ ]
426
+ ]
427
+ },
428
+ {
429
+ "id": "d135f3fc7b6206b3",
430
+ "type": "inject",
431
+ "z": "13123aeab063a1a5",
432
+ "name": "down: 2000",
433
+ "props": [
434
+ {
435
+ "p": "topic",
436
+ "vt": "str"
437
+ },
438
+ {
439
+ "p": "time_on",
440
+ "v": "2000",
441
+ "vt": "num"
442
+ }
443
+ ],
444
+ "repeat": "",
445
+ "crontab": "",
446
+ "once": false,
447
+ "onceDelay": 0.1,
448
+ "topic": "down",
449
+ "x": 130,
450
+ "y": 420,
451
+ "wires": [
452
+ [
453
+ "7abf123e203afbfd"
454
+ ]
455
+ ]
456
+ }
457
+ ]
Binary file