SHOW:
|
|
- or go back to the newest paste.
1 | [ | |
2 | { | |
3 | "id": "ad110fd5.2b872", | |
4 | "type": "tab", | |
5 | - | "label": "Day14_MQTTleds", |
5 | + | "label": "[K3_P9 - MQTT Smarte Lichter]", |
6 | "disabled": true, | |
7 | "info": "" | |
8 | }, | |
9 | { | |
10 | "id": "dc59d33f.22463", | |
11 | "type": "mqtt in", | |
12 | "z": "ad110fd5.2b872", | |
13 | "name": "", | |
14 | "topic": "NodeESP/[PID]/button/state/get/out", | |
15 | "qos": "2", | |
16 | "broker": "3c53c9b8.8965a6", | |
17 | "x": 180, | |
18 | "y": 40, | |
19 | "wires": [ | |
20 | [ | |
21 | "d69bf738.9ff4e8" | |
22 | ] | |
23 | ] | |
24 | }, | |
25 | { | |
26 | "id": "d69bf738.9ff4e8", | |
27 | "type": "json", | |
28 | "z": "ad110fd5.2b872", | |
29 | "name": "", | |
30 | "property": "payload", | |
31 | "action": "", | |
32 | "pretty": false, | |
33 | "x": 130, | |
34 | "y": 120, | |
35 | "wires": [ | |
36 | [ | |
37 | "251f081f.160c48" | |
38 | ] | |
39 | ] | |
40 | }, | |
41 | { | |
42 | "id": "2657742a.533d3c", | |
43 | "type": "ui_switch", | |
44 | "z": "ad110fd5.2b872", | |
45 | "name": "", | |
46 | "label": "LED1 (on/off)", | |
47 | "group": "a260dabf.f82928", | |
48 | "order": 1, | |
49 | "width": 0, | |
50 | "height": 0, | |
51 | "passthru": true, | |
52 | "decouple": "false", | |
53 | "topic": "", | |
54 | "style": "", | |
55 | "onvalue": "true", | |
56 | "onvalueType": "bool", | |
57 | "onicon": "", | |
58 | "oncolor": "", | |
59 | "offvalue": "false", | |
60 | "offvalueType": "bool", | |
61 | "officon": "", | |
62 | "offcolor": "", | |
63 | "x": 730, | |
64 | "y": 80, | |
65 | "wires": [ | |
66 | [ | |
67 | "27fd7e43.e67682" | |
68 | ] | |
69 | ] | |
70 | }, | |
71 | { | |
72 | "id": "5f77942a.6625ec", | |
73 | "type": "ui_switch", | |
74 | "z": "ad110fd5.2b872", | |
75 | "name": "", | |
76 | "label": "LED2 (on/off)", | |
77 | "group": "d920fbc5.d14b98", | |
78 | "order": 1, | |
79 | "width": 0, | |
80 | "height": 0, | |
81 | "passthru": true, | |
82 | "decouple": "false", | |
83 | "topic": "", | |
84 | "style": "", | |
85 | "onvalue": "true", | |
86 | "onvalueType": "bool", | |
87 | "onicon": "", | |
88 | "oncolor": "", | |
89 | "offvalue": "false", | |
90 | "offvalueType": "bool", | |
91 | "officon": "", | |
92 | "offcolor": "", | |
93 | "x": 730, | |
94 | "y": 160, | |
95 | "wires": [ | |
96 | [ | |
97 | "e1d416a4.6da1e8" | |
98 | ] | |
99 | ] | |
100 | }, | |
101 | { | |
102 | "id": "7491f696.23d928", | |
103 | "type": "switch", | |
104 | "z": "ad110fd5.2b872", | |
105 | "name": "", | |
106 | "property": "payload.pin_name", | |
107 | "propertyType": "msg", | |
108 | "rules": [ | |
109 | { | |
110 | "t": "eq", | |
111 | "v": "Button1", | |
112 | "vt": "str" | |
113 | }, | |
114 | { | |
115 | "t": "eq", | |
116 | "v": "Button2", | |
117 | "vt": "str" | |
118 | } | |
119 | ], | |
120 | "checkall": "true", | |
121 | "repair": false, | |
122 | "outputs": 2, | |
123 | "x": 370, | |
124 | "y": 120, | |
125 | "wires": [ | |
126 | [ | |
127 | "e665d550.f34448" | |
128 | ], | |
129 | [ | |
130 | "b580269.9f192d8" | |
131 | ] | |
132 | ] | |
133 | }, | |
134 | { | |
135 | "id": "251f081f.160c48", | |
136 | "type": "split", | |
137 | "z": "ad110fd5.2b872", | |
138 | "name": "", | |
139 | "splt": ",", | |
140 | "spltType": "str", | |
141 | "arraySplt": 1, | |
142 | "arraySpltType": "len", | |
143 | "stream": false, | |
144 | "addname": "", | |
145 | "x": 250, | |
146 | "y": 120, | |
147 | "wires": [ | |
148 | [ | |
149 | "7491f696.23d928" | |
150 | ] | |
151 | ] | |
152 | }, | |
153 | { | |
154 | "id": "e06b3bd.5302ec8", | |
155 | "type": "mqtt in", | |
156 | "z": "ad110fd5.2b872", | |
157 | "name": "", | |
158 | "topic": "NodeESP/[PID]/touch/state/get/out", | |
159 | "qos": "2", | |
160 | "broker": "3c53c9b8.8965a6", | |
161 | "x": 180, | |
162 | "y": 200, | |
163 | "wires": [ | |
164 | [ | |
165 | "bbf89f6e.acd56" | |
166 | ] | |
167 | ] | |
168 | }, | |
169 | { | |
170 | "id": "bbf89f6e.acd56", | |
171 | "type": "json", | |
172 | "z": "ad110fd5.2b872", | |
173 | "name": "", | |
174 | "property": "payload", | |
175 | "action": "", | |
176 | "pretty": false, | |
177 | "x": 130, | |
178 | "y": 280, | |
179 | "wires": [ | |
180 | [ | |
181 | "9eab9c92.0d863" | |
182 | ] | |
183 | ] | |
184 | }, | |
185 | { | |
186 | "id": "f842531d.75e3a", | |
187 | "type": "switch", | |
188 | "z": "ad110fd5.2b872", | |
189 | "name": "", | |
190 | "property": "payload.pin_name", | |
191 | "propertyType": "msg", | |
192 | "rules": [ | |
193 | { | |
194 | "t": "eq", | |
195 | "v": "Touch2", | |
196 | "vt": "str" | |
197 | }, | |
198 | { | |
199 | "t": "eq", | |
200 | "v": "Touch1", | |
201 | "vt": "str" | |
202 | }, | |
203 | { | |
204 | "t": "eq", | |
205 | "v": "Touch4", | |
206 | "vt": "str" | |
207 | }, | |
208 | { | |
209 | "t": "eq", | |
210 | "v": "Touch3", | |
211 | "vt": "str" | |
212 | } | |
213 | ], | |
214 | "checkall": "true", | |
215 | "repair": false, | |
216 | "outputs": 4, | |
217 | "x": 370, | |
218 | "y": 280, | |
219 | "wires": [ | |
220 | [ | |
221 | "1dd26a55.13f9f6" | |
222 | ], | |
223 | [ | |
224 | "7eef3792.60ce58" | |
225 | ], | |
226 | [ | |
227 | "575e2948.bf4f08" | |
228 | ], | |
229 | [ | |
230 | "4c8f3565.fcb08c" | |
231 | ] | |
232 | ] | |
233 | }, | |
234 | { | |
235 | "id": "9eab9c92.0d863", | |
236 | "type": "split", | |
237 | "z": "ad110fd5.2b872", | |
238 | "name": "", | |
239 | "splt": ",", | |
240 | "spltType": "str", | |
241 | "arraySplt": 1, | |
242 | "arraySpltType": "len", | |
243 | "stream": false, | |
244 | "addname": "", | |
245 | "x": 250, | |
246 | "y": 280, | |
247 | "wires": [ | |
248 | [ | |
249 | "f842531d.75e3a" | |
250 | ] | |
251 | ] | |
252 | }, | |
253 | { | |
254 | "id": "93392f19.f449c", | |
255 | "type": "ui_slider", | |
256 | "z": "ad110fd5.2b872", | |
257 | "name": "", | |
258 | "label": "LED1", | |
259 | "group": "a260dabf.f82928", | |
260 | "order": 2, | |
261 | "width": 0, | |
262 | "height": 0, | |
263 | "passthru": false, | |
264 | "topic": "", | |
265 | "min": 0, | |
266 | "max": "255", | |
267 | "step": 1, | |
268 | "x": 710, | |
269 | "y": 400, | |
270 | "wires": [ | |
271 | [ | |
272 | "166a163d.d9bd1a" | |
273 | ] | |
274 | ] | |
275 | }, | |
276 | { | |
277 | "id": "c38feb7.d0d4e18", | |
278 | "type": "template", | |
279 | "z": "ad110fd5.2b872", | |
280 | "name": "set_pwm_state", | |
281 | "field": "payload", | |
282 | "fieldType": "msg", | |
283 | "format": "handlebars", | |
284 | "syntax": "mustache", | |
285 | "template": " {\"cmd\":\"set_pwm_state\",\"LED1\":{{payload}}}", | |
286 | "output": "str", | |
287 | "x": 1080, | |
288 | "y": 400, | |
289 | "wires": [ | |
290 | [ | |
291 | "469db61e.946d18" | |
292 | ] | |
293 | ] | |
294 | }, | |
295 | { | |
296 | "id": "6cc2042.008bffc", | |
297 | "type": "ui_slider", | |
298 | "z": "ad110fd5.2b872", | |
299 | "name": "", | |
300 | "label": "LED2", | |
301 | "group": "d920fbc5.d14b98", | |
302 | "order": 2, | |
303 | "width": 0, | |
304 | "height": 0, | |
305 | "passthru": false, | |
306 | "topic": "", | |
307 | "min": 0, | |
308 | "max": "255", | |
309 | "step": 1, | |
310 | "x": 710, | |
311 | "y": 480, | |
312 | "wires": [ | |
313 | [ | |
314 | "e48d762f.a5cba8" | |
315 | ] | |
316 | ] | |
317 | }, | |
318 | { | |
319 | "id": "469db61e.946d18", | |
320 | "type": "mqtt out", | |
321 | "z": "ad110fd5.2b872", | |
322 | "name": "", | |
323 | "topic": "NodeESP/[PID]/pwm/state/set", | |
324 | "qos": "", | |
325 | "retain": "", | |
326 | "broker": "3c53c9b8.8965a6", | |
327 | "x": 1350, | |
328 | "y": 440, | |
329 | "wires": [] | |
330 | }, | |
331 | { | |
332 | "id": "dd0cbdbd.20761", | |
333 | "type": "template", | |
334 | "z": "ad110fd5.2b872", | |
335 | "name": "set_pwm_state", | |
336 | "field": "payload", | |
337 | "fieldType": "msg", | |
338 | "format": "handlebars", | |
339 | "syntax": "mustache", | |
340 | "template": " {\"cmd\":\"set_pwm_state\",\"LED2\":{{payload}}}", | |
341 | "output": "str", | |
342 | "x": 1080, | |
343 | "y": 480, | |
344 | "wires": [ | |
345 | [ | |
346 | "469db61e.946d18" | |
347 | ] | |
348 | ] | |
349 | }, | |
350 | { | |
351 | "id": "1554350e.833c3b", | |
352 | "type": "mqtt in", | |
353 | "z": "ad110fd5.2b872", | |
354 | "name": "", | |
355 | "topic": "NodeESP/[PID]/pwm/state/get/out", | |
356 | "qos": "2", | |
357 | "broker": "3c53c9b8.8965a6", | |
358 | "x": 180, | |
359 | "y": 360, | |
360 | "wires": [ | |
361 | [ | |
362 | "978eaee1.2b657" | |
363 | ] | |
364 | ] | |
365 | }, | |
366 | { | |
367 | "id": "978eaee1.2b657", | |
368 | "type": "json", | |
369 | "z": "ad110fd5.2b872", | |
370 | "name": "", | |
371 | "property": "payload", | |
372 | "action": "", | |
373 | "pretty": false, | |
374 | "x": 130, | |
375 | "y": 440, | |
376 | "wires": [ | |
377 | [ | |
378 | "9ea5f924.7d5428" | |
379 | ] | |
380 | ] | |
381 | }, | |
382 | { | |
383 | "id": "70726158.d92cc", | |
384 | "type": "switch", | |
385 | "z": "ad110fd5.2b872", | |
386 | "name": "", | |
387 | "property": "payload.pin_name", | |
388 | "propertyType": "msg", | |
389 | "rules": [ | |
390 | { | |
391 | "t": "eq", | |
392 | "v": "LED1", | |
393 | "vt": "str" | |
394 | }, | |
395 | { | |
396 | "t": "eq", | |
397 | "v": "LED2", | |
398 | "vt": "str" | |
399 | } | |
400 | ], | |
401 | "checkall": "true", | |
402 | "repair": false, | |
403 | "outputs": 2, | |
404 | "x": 370, | |
405 | "y": 440, | |
406 | "wires": [ | |
407 | [ | |
408 | "6b07982c.ddc798" | |
409 | ], | |
410 | [ | |
411 | "dfe7f2b5.9e67" | |
412 | ] | |
413 | ] | |
414 | }, | |
415 | { | |
416 | "id": "ad2052f2.a589b", | |
417 | "type": "mqtt out", | |
418 | "z": "ad110fd5.2b872", | |
419 | "name": "", | |
420 | "topic": "NodeESP/[PID]/pwm/state/set", | |
421 | "qos": "", | |
422 | "retain": "", | |
423 | "broker": "3c53c9b8.8965a6", | |
424 | "x": 1510, | |
425 | "y": 280, | |
426 | "wires": [] | |
427 | }, | |
428 | { | |
429 | "id": "dc956d0f.caf44", | |
430 | "type": "function", | |
431 | "z": "ad110fd5.2b872", | |
432 | "name": "led1_pin_value", | |
433 | "func": "var pin_value =global.get('led1_pin_value') || 0;\npin_value += msg.payload;\nif (pin_value > 255) pin_value = 255;\nif (pin_value < 0) pin_value = 0;\n\nglobal.set('led1_pin_value', pin_value);\nmsg.payload = pin_value;\nreturn msg;\n", | |
434 | "outputs": 1, | |
435 | "noerr": 0, | |
436 | "x": 1080, | |
437 | "y": 240, | |
438 | "wires": [ | |
439 | [ | |
440 | "5f7400b3.5976" | |
441 | ] | |
442 | ] | |
443 | }, | |
444 | { | |
445 | "id": "bd23c579.711088", | |
446 | "type": "mqtt out", | |
447 | "z": "ad110fd5.2b872", | |
448 | "name": "", | |
449 | "topic": "NodeESP/[PID]/pwm/state/set", | |
450 | "qos": "", | |
451 | "retain": "", | |
452 | "broker": "3c53c9b8.8965a6", | |
453 | "x": 1190, | |
454 | "y": 120, | |
455 | "wires": [] | |
456 | }, | |
457 | { | |
458 | "id": "27fd7e43.e67682", | |
459 | "type": "template", | |
460 | "z": "ad110fd5.2b872", | |
461 | "name": "set_pwm_state", | |
462 | "field": "payload", | |
463 | "fieldType": "msg", | |
464 | "format": "handlebars", | |
465 | "syntax": "mustache", | |
466 | "template": " {\"cmd\":\"set_pwm_state\",\"LED1\":{{payload}}}", | |
467 | "output": "str", | |
468 | "x": 920, | |
469 | "y": 80, | |
470 | "wires": [ | |
471 | [ | |
472 | "bd23c579.711088" | |
473 | ] | |
474 | ] | |
475 | }, | |
476 | { | |
477 | "id": "e1d416a4.6da1e8", | |
478 | "type": "template", | |
479 | "z": "ad110fd5.2b872", | |
480 | "name": "set_pwm_state", | |
481 | "field": "payload", | |
482 | "fieldType": "msg", | |
483 | "format": "handlebars", | |
484 | "syntax": "mustache", | |
485 | "template": " {\"cmd\":\"set_pwm_state\",\"LED2\":{{payload}}}", | |
486 | "output": "str", | |
487 | "x": 920, | |
488 | "y": 160, | |
489 | "wires": [ | |
490 | [ | |
491 | "bd23c579.711088" | |
492 | ] | |
493 | ] | |
494 | }, | |
495 | { | |
496 | "id": "e665d550.f34448", | |
497 | "type": "function", | |
498 | "z": "ad110fd5.2b872", | |
499 | "name": "led1_pin_state", | |
500 | "func": "var pin_state=global.get('led1_pin_state') || false;\n\nif (!msg.payload.pin_state){\n (pin_state===false) ? (pin_state= true) : (pin_state= false);\n global.set('led1_pin_state', pin_state);\n msg.payload = pin_state;\n return msg;\n}\n", | |
501 | "outputs": 1, | |
502 | "noerr": 0, | |
503 | "x": 540, | |
504 | "y": 80, | |
505 | "wires": [ | |
506 | [ | |
507 | "2657742a.533d3c" | |
508 | ] | |
509 | ] | |
510 | }, | |
511 | { | |
512 | "id": "b580269.9f192d8", | |
513 | "type": "function", | |
514 | "z": "ad110fd5.2b872", | |
515 | "name": "led2_pin_state", | |
516 | "func": "var pin_state=global.get('led2_pin_state') || false;\n\nif (!msg.payload.pin_state){\n (pin_state===false) ? (pin_state= true) : (pin_state= false);\n global.set('led2_pin_state', pin_state);\n msg.payload = pin_state;\n return msg;\n}\n\n", | |
517 | "outputs": 1, | |
518 | "noerr": 0, | |
519 | "x": 540, | |
520 | "y": 160, | |
521 | "wires": [ | |
522 | [ | |
523 | "5f77942a.6625ec" | |
524 | ] | |
525 | ] | |
526 | }, | |
527 | { | |
528 | "id": "6b07982c.ddc798", | |
529 | "type": "function", | |
530 | "z": "ad110fd5.2b872", | |
531 | "name": "led1_pin_value", | |
532 | "func": "var pin_value = msg.payload.pin_value;\nif (pin_value > 255) pin_value = 255;\nif (pin_value < 0) pin_value = 0;\n\nglobal.set('led1_pin_value', pin_value);\nmsg.payload = pin_value;\n\nreturn msg;\n", | |
533 | "outputs": 1, | |
534 | "noerr": 0, | |
535 | "x": 540, | |
536 | "y": 400, | |
537 | "wires": [ | |
538 | [ | |
539 | "93392f19.f449c" | |
540 | ] | |
541 | ] | |
542 | }, | |
543 | { | |
544 | "id": "dfe7f2b5.9e67", | |
545 | "type": "function", | |
546 | "z": "ad110fd5.2b872", | |
547 | "name": "led2_pin_value", | |
548 | "func": "var pin_value = msg.payload.pin_value;\nif (pin_value > 255) pin_value = 255;\nif (pin_value < 0) pin_value = 0;\n\nglobal.set('led2_pin_value', pin_value);\nmsg.payload = pin_value;\n\nreturn msg;\n", | |
549 | "outputs": 1, | |
550 | "noerr": 0, | |
551 | "x": 540, | |
552 | "y": 480, | |
553 | "wires": [ | |
554 | [ | |
555 | "6cc2042.008bffc" | |
556 | ] | |
557 | ] | |
558 | }, | |
559 | { | |
560 | "id": "24327401.7c850c", | |
561 | "type": "ui_button", | |
562 | "z": "ad110fd5.2b872", | |
563 | "name": "", | |
564 | "group": "a260dabf.f82928", | |
565 | "order": 3, | |
566 | "width": 0, | |
567 | "height": 0, | |
568 | "passthru": true, | |
569 | "label": "LED1 (+10)", | |
570 | "color": "", | |
571 | "bgcolor": "", | |
572 | "icon": "", | |
573 | "payload": "+10", | |
574 | "payloadType": "num", | |
575 | "topic": "", | |
576 | "x": 890, | |
577 | "y": 220, | |
578 | "wires": [ | |
579 | [ | |
580 | "dc956d0f.caf44" | |
581 | ] | |
582 | ] | |
583 | }, | |
584 | { | |
585 | "id": "1e8afca0.331de3", | |
586 | "type": "ui_button", | |
587 | "z": "ad110fd5.2b872", | |
588 | "name": "", | |
589 | "group": "a260dabf.f82928", | |
590 | "order": 4, | |
591 | "width": 0, | |
592 | "height": 0, | |
593 | "passthru": true, | |
594 | "label": "LED1 (-10)", | |
595 | "color": "", | |
596 | "bgcolor": "", | |
597 | "icon": "", | |
598 | "payload": "-10", | |
599 | "payloadType": "num", | |
600 | "topic": "", | |
601 | "x": 890, | |
602 | "y": 260, | |
603 | "wires": [ | |
604 | [ | |
605 | "dc956d0f.caf44" | |
606 | ] | |
607 | ] | |
608 | }, | |
609 | { | |
610 | "id": "5f7400b3.5976", | |
611 | "type": "template", | |
612 | "z": "ad110fd5.2b872", | |
613 | "name": "set_pwm_state", | |
614 | "field": "payload", | |
615 | "fieldType": "msg", | |
616 | "format": "handlebars", | |
617 | "syntax": "mustache", | |
618 | "template": " {\"cmd\":\"set_pwm_state\",\"LED1\":{{payload}}}", | |
619 | "output": "str", | |
620 | "x": 1260, | |
621 | "y": 240, | |
622 | "wires": [ | |
623 | [ | |
624 | "ad2052f2.a589b" | |
625 | ] | |
626 | ] | |
627 | }, | |
628 | { | |
629 | "id": "ea600f45.5ed77", | |
630 | "type": "function", | |
631 | "z": "ad110fd5.2b872", | |
632 | "name": "led2_pin_value", | |
633 | "func": "var pin_value =global.get('led2_pin_value') || 0;\npin_value += msg.payload;\nif (pin_value > 255) pin_value = 255;\nif (pin_value < 0) pin_value = 0;\n\nglobal.set('led2_pin_value', pin_value);\nmsg.payload = pin_value;\nreturn msg;\n", | |
634 | "outputs": 1, | |
635 | "noerr": 0, | |
636 | "x": 1080, | |
637 | "y": 320, | |
638 | "wires": [ | |
639 | [ | |
640 | "45b375df.fac18c" | |
641 | ] | |
642 | ] | |
643 | }, | |
644 | { | |
645 | "id": "7e354639.029668", | |
646 | "type": "ui_button", | |
647 | "z": "ad110fd5.2b872", | |
648 | "name": "", | |
649 | "group": "d920fbc5.d14b98", | |
650 | "order": 3, | |
651 | "width": 0, | |
652 | "height": 0, | |
653 | "passthru": true, | |
654 | "label": "LED2 (+10)", | |
655 | "color": "", | |
656 | "bgcolor": "", | |
657 | "icon": "", | |
658 | "payload": "+10", | |
659 | "payloadType": "num", | |
660 | "topic": "", | |
661 | "x": 890, | |
662 | "y": 300, | |
663 | "wires": [ | |
664 | [ | |
665 | "ea600f45.5ed77" | |
666 | ] | |
667 | ] | |
668 | }, | |
669 | { | |
670 | "id": "b9d07baa.91bd88", | |
671 | "type": "ui_button", | |
672 | "z": "ad110fd5.2b872", | |
673 | "name": "", | |
674 | "group": "d920fbc5.d14b98", | |
675 | "order": 4, | |
676 | "width": 0, | |
677 | "height": 0, | |
678 | "passthru": true, | |
679 | "label": "LED2 (-10)", | |
680 | "color": "", | |
681 | "bgcolor": "", | |
682 | "icon": "", | |
683 | "payload": "-10", | |
684 | "payloadType": "num", | |
685 | "topic": "", | |
686 | "x": 890, | |
687 | "y": 340, | |
688 | "wires": [ | |
689 | [ | |
690 | "ea600f45.5ed77" | |
691 | ] | |
692 | ] | |
693 | }, | |
694 | { | |
695 | "id": "45b375df.fac18c", | |
696 | "type": "template", | |
697 | "z": "ad110fd5.2b872", | |
698 | "name": "set_pwm_state", | |
699 | "field": "payload", | |
700 | "fieldType": "msg", | |
701 | "format": "handlebars", | |
702 | "syntax": "mustache", | |
703 | "template": " {\"cmd\":\"set_pwm_state\",\"LED2\":{{payload}}}", | |
704 | "output": "str", | |
705 | "x": 1260, | |
706 | "y": 320, | |
707 | "wires": [ | |
708 | [ | |
709 | "ad2052f2.a589b" | |
710 | ] | |
711 | ] | |
712 | }, | |
713 | { | |
714 | "id": "166a163d.d9bd1a", | |
715 | "type": "function", | |
716 | "z": "ad110fd5.2b872", | |
717 | "name": "led1_pin_value", | |
718 | "func": "global.set('led1_pin_value', msg.payload);\nreturn msg;\n", | |
719 | "outputs": 1, | |
720 | "noerr": 0, | |
721 | "x": 880, | |
722 | "y": 400, | |
723 | "wires": [ | |
724 | [ | |
725 | "c38feb7.d0d4e18" | |
726 | ] | |
727 | ] | |
728 | }, | |
729 | { | |
730 | "id": "e48d762f.a5cba8", | |
731 | "type": "function", | |
732 | "z": "ad110fd5.2b872", | |
733 | "name": "led2_pin_value", | |
734 | "func": "global.set('led2_pin_value', msg.payload);\nreturn msg;\n", | |
735 | "outputs": 1, | |
736 | "noerr": 0, | |
737 | "x": 880, | |
738 | "y": 480, | |
739 | "wires": [ | |
740 | [ | |
741 | "dd0cbdbd.20761" | |
742 | ] | |
743 | ] | |
744 | }, | |
745 | { | |
746 | "id": "9ea5f924.7d5428", | |
747 | "type": "split", | |
748 | "z": "ad110fd5.2b872", | |
749 | "name": "", | |
750 | "splt": ",", | |
751 | "spltType": "str", | |
752 | "arraySplt": 1, | |
753 | "arraySpltType": "len", | |
754 | "stream": false, | |
755 | "addname": "", | |
756 | "x": 250, | |
757 | "y": 440, | |
758 | "wires": [ | |
759 | [ | |
760 | "70726158.d92cc" | |
761 | ] | |
762 | ] | |
763 | }, | |
764 | { | |
765 | "id": "fdbf375a.6c6328", | |
766 | "type": "trigger", | |
767 | "z": "ad110fd5.2b872", | |
768 | "op1": "1", | |
769 | "op2": "0", | |
770 | "op1type": "str", | |
771 | "op2type": "str", | |
772 | "duration": "-250", | |
773 | "extend": false, | |
774 | "units": "ms", | |
775 | "reset": "false", | |
776 | "bytopic": "all", | |
777 | "name": "", | |
778 | "x": 700, | |
779 | "y": 220, | |
780 | "wires": [ | |
781 | [ | |
782 | "24327401.7c850c" | |
783 | ] | |
784 | ] | |
785 | }, | |
786 | { | |
787 | "id": "1dd26a55.13f9f6", | |
788 | "type": "template", | |
789 | "z": "ad110fd5.2b872", | |
790 | "name": "pin_state", | |
791 | "field": "payload", | |
792 | "fieldType": "msg", | |
793 | "format": "handlebars", | |
794 | "syntax": "mustache", | |
795 | "template": "{{payload.pin_state}}", | |
796 | "output": "str", | |
797 | "x": 520, | |
798 | "y": 220, | |
799 | "wires": [ | |
800 | [ | |
801 | "fdbf375a.6c6328" | |
802 | ] | |
803 | ] | |
804 | }, | |
805 | { | |
806 | "id": "7eef3792.60ce58", | |
807 | "type": "template", | |
808 | "z": "ad110fd5.2b872", | |
809 | "name": "pin_state", | |
810 | "field": "payload", | |
811 | "fieldType": "msg", | |
812 | "format": "handlebars", | |
813 | "syntax": "mustache", | |
814 | "template": "{{payload.pin_state}}", | |
815 | "output": "str", | |
816 | "x": 520, | |
817 | "y": 260, | |
818 | "wires": [ | |
819 | [ | |
820 | "85c5103f.d3124" | |
821 | ] | |
822 | ] | |
823 | }, | |
824 | { | |
825 | "id": "85c5103f.d3124", | |
826 | "type": "trigger", | |
827 | "z": "ad110fd5.2b872", | |
828 | "op1": "1", | |
829 | "op2": "0", | |
830 | "op1type": "str", | |
831 | "op2type": "str", | |
832 | "duration": "-250", | |
833 | "extend": false, | |
834 | "units": "ms", | |
835 | "reset": "false", | |
836 | "bytopic": "all", | |
837 | "name": "", | |
838 | "x": 700, | |
839 | "y": 260, | |
840 | "wires": [ | |
841 | [ | |
842 | "1e8afca0.331de3" | |
843 | ] | |
844 | ] | |
845 | }, | |
846 | { | |
847 | "id": "bc5ab1d0.5259d", | |
848 | "type": "trigger", | |
849 | "z": "ad110fd5.2b872", | |
850 | "op1": "1", | |
851 | "op2": "0", | |
852 | "op1type": "str", | |
853 | "op2type": "str", | |
854 | "duration": "-250", | |
855 | "extend": false, | |
856 | "units": "ms", | |
857 | "reset": "false", | |
858 | "bytopic": "all", | |
859 | "name": "", | |
860 | "x": 700, | |
861 | "y": 300, | |
862 | "wires": [ | |
863 | [ | |
864 | "7e354639.029668" | |
865 | ] | |
866 | ] | |
867 | }, | |
868 | { | |
869 | "id": "575e2948.bf4f08", | |
870 | "type": "template", | |
871 | "z": "ad110fd5.2b872", | |
872 | "name": "pin_state", | |
873 | "field": "payload", | |
874 | "fieldType": "msg", | |
875 | "format": "handlebars", | |
876 | "syntax": "mustache", | |
877 | "template": "{{payload.pin_state}}", | |
878 | "output": "str", | |
879 | "x": 520, | |
880 | "y": 300, | |
881 | "wires": [ | |
882 | [ | |
883 | "bc5ab1d0.5259d" | |
884 | ] | |
885 | ] | |
886 | }, | |
887 | { | |
888 | "id": "4c8f3565.fcb08c", | |
889 | "type": "template", | |
890 | "z": "ad110fd5.2b872", | |
891 | "name": "pin_state", | |
892 | "field": "payload", | |
893 | "fieldType": "msg", | |
894 | "format": "handlebars", | |
895 | "syntax": "mustache", | |
896 | "template": "{{payload.pin_state}}", | |
897 | "output": "str", | |
898 | "x": 520, | |
899 | "y": 340, | |
900 | "wires": [ | |
901 | [ | |
902 | "c870a07.f76d46" | |
903 | ] | |
904 | ] | |
905 | }, | |
906 | { | |
907 | "id": "c870a07.f76d46", | |
908 | "type": "trigger", | |
909 | "z": "ad110fd5.2b872", | |
910 | "op1": "1", | |
911 | "op2": "0", | |
912 | "op1type": "str", | |
913 | "op2type": "str", | |
914 | "duration": "-250", | |
915 | "extend": false, | |
916 | "units": "ms", | |
917 | "reset": "false", | |
918 | "bytopic": "all", | |
919 | "name": "", | |
920 | "x": 700, | |
921 | "y": 340, | |
922 | "wires": [ | |
923 | [ | |
924 | "b9d07baa.91bd88" | |
925 | ] | |
926 | ] | |
927 | }, | |
928 | { | |
929 | "id": "3c53c9b8.8965a6", | |
930 | "type": "mqtt-broker", | |
931 | "z": "", | |
932 | "name": "fkainka.de", | |
933 | "broker": "broker.fkainka.de", | |
934 | "port": "1883", | |
935 | "clientid": "", | |
936 | "usetls": false, | |
937 | "compatmode": true, | |
938 | "keepalive": "60", | |
939 | "cleansession": true, | |
940 | "willTopic": "", | |
941 | "willQos": "0", | |
942 | "willPayload": "", | |
943 | "birthTopic": "", | |
944 | "birthQos": "0", | |
945 | "birthPayload": "" | |
946 | }, | |
947 | { | |
948 | "id": "a260dabf.f82928", | |
949 | "type": "ui_group", | |
950 | "z": "", | |
951 | "name": "LED1", | |
952 | "tab": "a36589e4.c55a28", | |
953 | "order": 1, | |
954 | "disp": true, | |
955 | "width": "6", | |
956 | "collapse": false | |
957 | }, | |
958 | { | |
959 | "id": "d920fbc5.d14b98", | |
960 | "type": "ui_group", | |
961 | "z": "", | |
962 | "name": "LED2", | |
963 | "tab": "a36589e4.c55a28", | |
964 | "order": 2, | |
965 | "disp": true, | |
966 | "width": "6", | |
967 | "collapse": false | |
968 | }, | |
969 | { | |
970 | "id": "a36589e4.c55a28", | |
971 | "type": "ui_tab", | |
972 | "z": "", | |
973 | - | "name": "Day14", |
973 | + | "name": "[K3_P9]", |
974 | "icon": "dashboard", | |
975 | "order": 9 | |
976 | } | |
977 | ] |