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,499 @@
1
+ [
2
+ {
3
+ "id": "ba8c23e28cf6f6b5",
4
+ "type": "tab",
5
+ "label": "Light",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "6201e3c3ca13f822",
12
+ "type": "smart_light-control",
13
+ "z": "ba8c23e28cf6f6b5",
14
+ "name": "",
15
+ "icon": "light",
16
+ "max_time_on": "10",
17
+ "max_time_on_unit": "s",
18
+ "alarm_action": "OFF",
19
+ "links": [],
20
+ "x": 450,
21
+ "y": 300,
22
+ "wires": [
23
+ [
24
+ "244aede1c6d34679"
25
+ ]
26
+ ]
27
+ },
28
+ {
29
+ "id": "21d73ec11d5bac03",
30
+ "type": "inject",
31
+ "z": "ba8c23e28cf6f6b5",
32
+ "name": "",
33
+ "props": [
34
+ {
35
+ "p": "topic",
36
+ "vt": "str"
37
+ },
38
+ {
39
+ "p": "payload"
40
+ }
41
+ ],
42
+ "repeat": "",
43
+ "crontab": "",
44
+ "once": false,
45
+ "onceDelay": 0.1,
46
+ "topic": "status",
47
+ "payload": "true",
48
+ "payloadType": "bool",
49
+ "x": 180,
50
+ "y": 60,
51
+ "wires": [
52
+ [
53
+ "6201e3c3ca13f822"
54
+ ]
55
+ ]
56
+ },
57
+ {
58
+ "id": "244aede1c6d34679",
59
+ "type": "debug",
60
+ "z": "ba8c23e28cf6f6b5",
61
+ "name": "debug 10",
62
+ "active": true,
63
+ "tosidebar": true,
64
+ "console": false,
65
+ "tostatus": false,
66
+ "complete": "true",
67
+ "targetType": "full",
68
+ "statusVal": "",
69
+ "statusType": "auto",
70
+ "x": 680,
71
+ "y": 300,
72
+ "wires": []
73
+ },
74
+ {
75
+ "id": "da54656455c832b4",
76
+ "type": "inject",
77
+ "z": "ba8c23e28cf6f6b5",
78
+ "name": "",
79
+ "props": [
80
+ {
81
+ "p": "topic",
82
+ "vt": "str"
83
+ },
84
+ {
85
+ "p": "payload"
86
+ }
87
+ ],
88
+ "repeat": "",
89
+ "crontab": "",
90
+ "once": false,
91
+ "onceDelay": 0.1,
92
+ "topic": "status",
93
+ "payload": "false",
94
+ "payloadType": "bool",
95
+ "x": 170,
96
+ "y": 100,
97
+ "wires": [
98
+ [
99
+ "6201e3c3ca13f822"
100
+ ]
101
+ ]
102
+ },
103
+ {
104
+ "id": "631c446d372282bd",
105
+ "type": "inject",
106
+ "z": "ba8c23e28cf6f6b5",
107
+ "name": "",
108
+ "props": [
109
+ {
110
+ "p": "topic",
111
+ "vt": "str"
112
+ }
113
+ ],
114
+ "repeat": "",
115
+ "crontab": "",
116
+ "once": false,
117
+ "onceDelay": 0.1,
118
+ "topic": "on",
119
+ "x": 190,
120
+ "y": 140,
121
+ "wires": [
122
+ [
123
+ "6201e3c3ca13f822"
124
+ ]
125
+ ]
126
+ },
127
+ {
128
+ "id": "f38547eaab3eeb18",
129
+ "type": "inject",
130
+ "z": "ba8c23e28cf6f6b5",
131
+ "name": "",
132
+ "props": [
133
+ {
134
+ "p": "topic",
135
+ "vt": "str"
136
+ }
137
+ ],
138
+ "repeat": "",
139
+ "crontab": "",
140
+ "once": false,
141
+ "onceDelay": 0.1,
142
+ "topic": "off",
143
+ "x": 190,
144
+ "y": 220,
145
+ "wires": [
146
+ [
147
+ "6201e3c3ca13f822"
148
+ ]
149
+ ]
150
+ },
151
+ {
152
+ "id": "84b5fedc17ac633a",
153
+ "type": "inject",
154
+ "z": "ba8c23e28cf6f6b5",
155
+ "name": "",
156
+ "props": [
157
+ {
158
+ "p": "topic",
159
+ "vt": "str"
160
+ },
161
+ {
162
+ "p": "payload"
163
+ }
164
+ ],
165
+ "repeat": "",
166
+ "crontab": "",
167
+ "once": false,
168
+ "onceDelay": 0.1,
169
+ "topic": "set",
170
+ "payload": "true",
171
+ "payloadType": "bool",
172
+ "x": 190,
173
+ "y": 260,
174
+ "wires": [
175
+ [
176
+ "6201e3c3ca13f822"
177
+ ]
178
+ ]
179
+ },
180
+ {
181
+ "id": "032ca1929b56fdcd",
182
+ "type": "inject",
183
+ "z": "ba8c23e28cf6f6b5",
184
+ "name": "",
185
+ "props": [
186
+ {
187
+ "p": "topic",
188
+ "vt": "str"
189
+ },
190
+ {
191
+ "p": "payload"
192
+ }
193
+ ],
194
+ "repeat": "",
195
+ "crontab": "",
196
+ "once": false,
197
+ "onceDelay": 0.1,
198
+ "topic": "set",
199
+ "payload": "false",
200
+ "payloadType": "bool",
201
+ "x": 180,
202
+ "y": 340,
203
+ "wires": [
204
+ [
205
+ "6201e3c3ca13f822"
206
+ ]
207
+ ]
208
+ },
209
+ {
210
+ "id": "41e5612ba0dfb9b2",
211
+ "type": "inject",
212
+ "z": "ba8c23e28cf6f6b5",
213
+ "name": "",
214
+ "props": [
215
+ {
216
+ "p": "topic",
217
+ "vt": "str"
218
+ },
219
+ {
220
+ "p": "payload"
221
+ }
222
+ ],
223
+ "repeat": "",
224
+ "crontab": "",
225
+ "once": false,
226
+ "onceDelay": 0.1,
227
+ "topic": "set_permanent",
228
+ "payload": "true",
229
+ "payloadType": "bool",
230
+ "x": 150,
231
+ "y": 380,
232
+ "wires": [
233
+ [
234
+ "6201e3c3ca13f822"
235
+ ]
236
+ ]
237
+ },
238
+ {
239
+ "id": "0853055201f0566b",
240
+ "type": "inject",
241
+ "z": "ba8c23e28cf6f6b5",
242
+ "name": "",
243
+ "props": [
244
+ {
245
+ "p": "topic",
246
+ "vt": "str"
247
+ },
248
+ {
249
+ "p": "payload"
250
+ }
251
+ ],
252
+ "repeat": "",
253
+ "crontab": "",
254
+ "once": false,
255
+ "onceDelay": 0.1,
256
+ "topic": "set_permanent",
257
+ "payload": "false",
258
+ "payloadType": "bool",
259
+ "x": 150,
260
+ "y": 420,
261
+ "wires": [
262
+ [
263
+ "6201e3c3ca13f822"
264
+ ]
265
+ ]
266
+ },
267
+ {
268
+ "id": "eb4fbe6b73ff0f9c",
269
+ "type": "inject",
270
+ "z": "ba8c23e28cf6f6b5",
271
+ "name": "",
272
+ "props": [
273
+ {
274
+ "p": "topic",
275
+ "vt": "str"
276
+ },
277
+ {
278
+ "p": "payload"
279
+ }
280
+ ],
281
+ "repeat": "",
282
+ "crontab": "",
283
+ "once": false,
284
+ "onceDelay": 0.1,
285
+ "topic": "motion",
286
+ "payload": "false",
287
+ "payloadType": "bool",
288
+ "x": 170,
289
+ "y": 500,
290
+ "wires": [
291
+ [
292
+ "6201e3c3ca13f822"
293
+ ]
294
+ ]
295
+ },
296
+ {
297
+ "id": "aa383b7314ba3e68",
298
+ "type": "inject",
299
+ "z": "ba8c23e28cf6f6b5",
300
+ "name": "",
301
+ "props": [
302
+ {
303
+ "p": "topic",
304
+ "vt": "str"
305
+ },
306
+ {
307
+ "p": "payload"
308
+ }
309
+ ],
310
+ "repeat": "",
311
+ "crontab": "",
312
+ "once": false,
313
+ "onceDelay": 0.1,
314
+ "topic": "motion",
315
+ "payload": "true",
316
+ "payloadType": "bool",
317
+ "x": 180,
318
+ "y": 460,
319
+ "wires": [
320
+ [
321
+ "6201e3c3ca13f822"
322
+ ]
323
+ ]
324
+ },
325
+ {
326
+ "id": "c993fea42f0ed20c",
327
+ "type": "inject",
328
+ "z": "ba8c23e28cf6f6b5",
329
+ "name": "",
330
+ "props": [
331
+ {
332
+ "p": "topic",
333
+ "vt": "str"
334
+ },
335
+ {
336
+ "p": "payload"
337
+ }
338
+ ],
339
+ "repeat": "",
340
+ "crontab": "",
341
+ "once": false,
342
+ "onceDelay": 0.1,
343
+ "topic": "alarm",
344
+ "payload": "false",
345
+ "payloadType": "bool",
346
+ "x": 180,
347
+ "y": 580,
348
+ "wires": [
349
+ [
350
+ "6201e3c3ca13f822"
351
+ ]
352
+ ]
353
+ },
354
+ {
355
+ "id": "b2d313459056dfa6",
356
+ "type": "inject",
357
+ "z": "ba8c23e28cf6f6b5",
358
+ "name": "",
359
+ "props": [
360
+ {
361
+ "p": "topic",
362
+ "vt": "str"
363
+ },
364
+ {
365
+ "p": "payload"
366
+ }
367
+ ],
368
+ "repeat": "",
369
+ "crontab": "",
370
+ "once": false,
371
+ "onceDelay": 0.1,
372
+ "topic": "alarm",
373
+ "payload": "true",
374
+ "payloadType": "bool",
375
+ "x": 180,
376
+ "y": 540,
377
+ "wires": [
378
+ [
379
+ "6201e3c3ca13f822"
380
+ ]
381
+ ]
382
+ },
383
+ {
384
+ "id": "e074949bb5153b50",
385
+ "type": "inject",
386
+ "z": "ba8c23e28cf6f6b5",
387
+ "name": "",
388
+ "props": [
389
+ {
390
+ "p": "topic",
391
+ "vt": "str"
392
+ }
393
+ ],
394
+ "repeat": "",
395
+ "crontab": "",
396
+ "once": false,
397
+ "onceDelay": 0.1,
398
+ "topic": "toggle",
399
+ "x": 190,
400
+ "y": 620,
401
+ "wires": [
402
+ [
403
+ "6201e3c3ca13f822"
404
+ ]
405
+ ]
406
+ },
407
+ {
408
+ "id": "c4b0ac6744d4857b",
409
+ "type": "inject",
410
+ "z": "ba8c23e28cf6f6b5",
411
+ "name": "on: 1s",
412
+ "props": [
413
+ {
414
+ "p": "topic",
415
+ "vt": "str"
416
+ },
417
+ {
418
+ "p": "time_on",
419
+ "v": "1s",
420
+ "vt": "str"
421
+ }
422
+ ],
423
+ "repeat": "",
424
+ "crontab": "",
425
+ "once": false,
426
+ "onceDelay": 0.1,
427
+ "topic": "on",
428
+ "x": 190,
429
+ "y": 180,
430
+ "wires": [
431
+ [
432
+ "6201e3c3ca13f822"
433
+ ]
434
+ ]
435
+ },
436
+ {
437
+ "id": "8b18c856d9bcb61e",
438
+ "type": "inject",
439
+ "z": "ba8c23e28cf6f6b5",
440
+ "name": "set:true 1s",
441
+ "props": [
442
+ {
443
+ "p": "topic",
444
+ "vt": "str"
445
+ },
446
+ {
447
+ "p": "payload"
448
+ },
449
+ {
450
+ "p": "time_on",
451
+ "v": "1s",
452
+ "vt": "str"
453
+ }
454
+ ],
455
+ "repeat": "",
456
+ "crontab": "",
457
+ "once": false,
458
+ "onceDelay": 0.1,
459
+ "topic": "set",
460
+ "payload": "true",
461
+ "payloadType": "bool",
462
+ "x": 180,
463
+ "y": 300,
464
+ "wires": [
465
+ [
466
+ "6201e3c3ca13f822"
467
+ ]
468
+ ]
469
+ },
470
+ {
471
+ "id": "95183f06341ba1f0",
472
+ "type": "inject",
473
+ "z": "ba8c23e28cf6f6b5",
474
+ "name": "toggle: 1000",
475
+ "props": [
476
+ {
477
+ "p": "topic",
478
+ "vt": "str"
479
+ },
480
+ {
481
+ "p": "time_on",
482
+ "v": "1000",
483
+ "vt": "num"
484
+ }
485
+ ],
486
+ "repeat": "",
487
+ "crontab": "",
488
+ "once": false,
489
+ "onceDelay": 0.1,
490
+ "topic": "toggle",
491
+ "x": 170,
492
+ "y": 660,
493
+ "wires": [
494
+ [
495
+ "6201e3c3ca13f822"
496
+ ]
497
+ ]
498
+ }
499
+ ]
Binary file