IoT Buttons - Flow

From The TinkerNet Wiki
Jump to navigation Jump to search

Notes

SkyNet is the name of the automation server on my network (Has Node-Red & Mosquitto installed.)

The MQTT In node labelled Message is subscribed to the topic Arduino/Keypad/nanoClient/Message.

The MQTT Out node labelled mqtt gets its topic from its input.

(The topic for MQTT is set from the msg.target property passed into the Change node immediately before the MQTT Out node because it may eventually get chenged elsewhere...)

The actual flow

IoT Buttons Flow.png

   1 [
   2     {
   3         "id": "67f1efdc.110188",
   4         "type": "tab",
   5         "label": "IoT Keypad",
   6         "disabled": false,
   7         "info": ""
   8     },
   9     {
  10         "id": "30143f44.a3c3e8",
  11         "type": "mqtt in",
  12         "z": "67f1efdc.110188",
  13         "name": "Message",
  14         "topic": "Arduino/Keypad/nanoClient/Message",
  15         "qos": "2",
  16         "datatype": "auto",
  17         "broker": "f32dd71f.7c852",
  18         "nl": false,
  19         "rap": false,
  20         "x": 80,
  21         "y": 480,
  22         "wires": [
  23             [
  24                 "41bd1087.82e87",
  25                 "266b721f.473d0e"
  26             ]
  27         ]
  28     },
  29     {
  30         "id": "41bd1087.82e87",
  31         "type": "switch",
  32         "z": "67f1efdc.110188",
  33         "name": "",
  34         "property": "payload",
  35         "propertyType": "msg",
  36         "rules": [
  37             {
  38                 "t": "regex",
  39                 "v": "[0-9]",
  40                 "vt": "str",
  41                 "case": false
  42             },
  43             {
  44                 "t": "regex",
  45                 "v": "[\\*\\#]",
  46                 "vt": "str",
  47                 "case": false
  48             },
  49             {
  50                 "t": "regex",
  51                 "v": "[a-z]",
  52                 "vt": "str",
  53                 "case": true
  54             }
  55         ],
  56         "checkall": "true",
  57         "repair": false,
  58         "outputs": 3,
  59         "x": 230,
  60         "y": 480,
  61         "wires": [
  62             [
  63                 "a0fa172e.12b3c"
  64             ],
  65             [
  66                 "e951bbf3.7e90c8"
  67             ],
  68             [
  69                 "a3c9ded4.b09598"
  70             ]
  71         ]
  72     },
  73     {
  74         "id": "a0fa172e.12b3c",
  75         "type": "switch",
  76         "z": "67f1efdc.110188",
  77         "name": "Numbers",
  78         "property": "payload",
  79         "propertyType": "msg",
  80         "rules": [
  81             {
  82                 "t": "eq",
  83                 "v": "1",
  84                 "vt": "str"
  85             },
  86             {
  87                 "t": "eq",
  88                 "v": "2",
  89                 "vt": "str"
  90             },
  91             {
  92                 "t": "eq",
  93                 "v": "3",
  94                 "vt": "num"
  95             },
  96             {
  97                 "t": "eq",
  98                 "v": "4",
  99                 "vt": "num"
 100             },
 101             {
 102                 "t": "eq",
 103                 "v": "5",
 104                 "vt": "num"
 105             },
 106             {
 107                 "t": "eq",
 108                 "v": "6",
 109                 "vt": "num"
 110             },
 111             {
 112                 "t": "eq",
 113                 "v": "7",
 114                 "vt": "num"
 115             },
 116             {
 117                 "t": "eq",
 118                 "v": "8",
 119                 "vt": "num"
 120             },
 121             {
 122                 "t": "eq",
 123                 "v": "9",
 124                 "vt": "num"
 125             },
 126             {
 127                 "t": "eq",
 128                 "v": "0",
 129                 "vt": "num"
 130             }
 131         ],
 132         "checkall": "true",
 133         "repair": false,
 134         "outputs": 10,
 135         "x": 380,
 136         "y": 220,
 137         "wires": [
 138             [
 139                 "261e1818.fd02f8"
 140             ],
 141             [
 142                 "c90e7db6.8a82f"
 143             ],
 144             [
 145                 "a37c4099.3528d"
 146             ],
 147             [
 148                 "8c0855cd.68b388"
 149             ],
 150             [
 151                 "f627441.1d8a9b8"
 152             ],
 153             [
 154                 "23398b41.849d64"
 155             ],
 156             [
 157                 "3439a40d.49f7bc"
 158             ],
 159             [
 160                 "477a4cd6.fbd194"
 161             ],
 162             [
 163                 "1e363993.46fcd6"
 164             ],
 165             [
 166                 "2c309c2e.3d2154"
 167             ]
 168         ]
 169     },
 170     {
 171         "id": "a3c9ded4.b09598",
 172         "type": "switch",
 173         "z": "67f1efdc.110188",
 174         "name": "Letters",
 175         "property": "payload",
 176         "propertyType": "msg",
 177         "rules": [
 178             {
 179                 "t": "regex",
 180                 "v": "A",
 181                 "vt": "str",
 182                 "case": true
 183             },
 184             {
 185                 "t": "regex",
 186                 "v": "B",
 187                 "vt": "str",
 188                 "case": true
 189             },
 190             {
 191                 "t": "regex",
 192                 "v": "C",
 193                 "vt": "str",
 194                 "case": true
 195             },
 196             {
 197                 "t": "regex",
 198                 "v": "D",
 199                 "vt": "str",
 200                 "case": true
 201             }
 202         ],
 203         "checkall": "true",
 204         "repair": false,
 205         "outputs": 4,
 206         "x": 370,
 207         "y": 620,
 208         "wires": [
 209             [
 210                 "94a22f0a.8a6d4"
 211             ],
 212             [
 213                 "5fd1f360.77e72c"
 214             ],
 215             [
 216                 "40d2093d.283f98"
 217             ],
 218             [
 219                 "81371de5.c7e41"
 220             ]
 221         ]
 222     },
 223     {
 224         "id": "e951bbf3.7e90c8",
 225         "type": "switch",
 226         "z": "67f1efdc.110188",
 227         "name": "Symbols",
 228         "property": "payload",
 229         "propertyType": "msg",
 230         "rules": [
 231             {
 232                 "t": "eq",
 233                 "v": "*",
 234                 "vt": "str"
 235             },
 236             {
 237                 "t": "eq",
 238                 "v": "#",
 239                 "vt": "str"
 240             }
 241         ],
 242         "checkall": "true",
 243         "repair": false,
 244         "outputs": 2,
 245         "x": 380,
 246         "y": 480,
 247         "wires": [
 248             [
 249                 "18cbd6ec.370b69"
 250             ],
 251             [
 252                 "8d59ed2d.2c3aa"
 253             ]
 254         ]
 255     },
 256     {
 257         "id": "a8dfea2e.904b6",
 258         "type": "comment",
 259         "z": "67f1efdc.110188",
 260         "name": "A",
 261         "info": "",
 262         "x": 770,
 263         "y": 560,
 264         "wires": []
 265     },
 266     {
 267         "id": "248d5bb3.22bb0c",
 268         "type": "comment",
 269         "z": "67f1efdc.110188",
 270         "name": "B",
 271         "info": "",
 272         "x": 770,
 273         "y": 600,
 274         "wires": []
 275     },
 276     {
 277         "id": "a46ba32e.9346d",
 278         "type": "comment",
 279         "z": "67f1efdc.110188",
 280         "name": "C",
 281         "info": "",
 282         "x": 770,
 283         "y": 640,
 284         "wires": []
 285     },
 286     {
 287         "id": "eb3b1314.a03c4",
 288         "type": "comment",
 289         "z": "67f1efdc.110188",
 290         "name": "D",
 291         "info": "",
 292         "x": 770,
 293         "y": 680,
 294         "wires": []
 295     },
 296     {
 297         "id": "266b721f.473d0e",
 298         "type": "debug",
 299         "z": "67f1efdc.110188",
 300         "name": "wtf",
 301         "active": false,
 302         "tosidebar": true,
 303         "console": false,
 304         "tostatus": false,
 305         "complete": "true",
 306         "targetType": "full",
 307         "statusVal": "",
 308         "statusType": "auto",
 309         "x": 210,
 310         "y": 540,
 311         "wires": []
 312     },
 313     {
 314         "id": "4787e954.dca8f8",
 315         "type": "link out",
 316         "z": "67f1efdc.110188",
 317         "name": "",
 318         "links": [
 319             "5f2ccefb.beed3",
 320             "af2b73ea.20735"
 321         ],
 322         "x": 855,
 323         "y": 40,
 324         "wires": []
 325     },
 326     {
 327         "id": "ab11f967.ca9318",
 328         "type": "link out",
 329         "z": "67f1efdc.110188",
 330         "name": "",
 331         "links": [
 332             "5f2ccefb.beed3",
 333             "af2b73ea.20735"
 334         ],
 335         "x": 855,
 336         "y": 80,
 337         "wires": []
 338     },
 339     {
 340         "id": "78928728.913068",
 341         "type": "link out",
 342         "z": "67f1efdc.110188",
 343         "name": "",
 344         "links": [
 345             "5f2ccefb.beed3",
 346             "af2b73ea.20735"
 347         ],
 348         "x": 855,
 349         "y": 120,
 350         "wires": []
 351     },
 352     {
 353         "id": "884190b7.fcccb",
 354         "type": "link out",
 355         "z": "67f1efdc.110188",
 356         "name": "",
 357         "links": [
 358             "5f2ccefb.beed3",
 359             "af2b73ea.20735"
 360         ],
 361         "x": 855,
 362         "y": 160,
 363         "wires": []
 364     },
 365     {
 366         "id": "ba2a4e96.38183",
 367         "type": "link out",
 368         "z": "67f1efdc.110188",
 369         "name": "",
 370         "links": [
 371             "5f2ccefb.beed3",
 372             "af2b73ea.20735"
 373         ],
 374         "x": 855,
 375         "y": 200,
 376         "wires": []
 377     },
 378     {
 379         "id": "573426cb.688fb8",
 380         "type": "link out",
 381         "z": "67f1efdc.110188",
 382         "name": "",
 383         "links": [
 384             "5f2ccefb.beed3",
 385             "af2b73ea.20735"
 386         ],
 387         "x": 855,
 388         "y": 240,
 389         "wires": []
 390     },
 391     {
 392         "id": "bb32bce.4eb6e4",
 393         "type": "link out",
 394         "z": "67f1efdc.110188",
 395         "name": "",
 396         "links": [
 397             "5f2ccefb.beed3",
 398             "af2b73ea.20735"
 399         ],
 400         "x": 855,
 401         "y": 280,
 402         "wires": []
 403     },
 404     {
 405         "id": "edbcc362.8a038",
 406         "type": "link out",
 407         "z": "67f1efdc.110188",
 408         "name": "",
 409         "links": [
 410             "5f2ccefb.beed3",
 411             "af2b73ea.20735"
 412         ],
 413         "x": 855,
 414         "y": 320,
 415         "wires": []
 416     },
 417     {
 418         "id": "fe187230.31bad",
 419         "type": "link out",
 420         "z": "67f1efdc.110188",
 421         "name": "",
 422         "links": [
 423             "5f2ccefb.beed3",
 424             "af2b73ea.20735"
 425         ],
 426         "x": 855,
 427         "y": 360,
 428         "wires": []
 429     },
 430     {
 431         "id": "5c8a909e.ffc5b",
 432         "type": "link out",
 433         "z": "67f1efdc.110188",
 434         "name": "",
 435         "links": [
 436             "5f2ccefb.beed3",
 437             "af2b73ea.20735"
 438         ],
 439         "x": 855,
 440         "y": 400,
 441         "wires": []
 442     },
 443     {
 444         "id": "bdded2e4.4994d",
 445         "type": "link out",
 446         "z": "67f1efdc.110188",
 447         "name": "",
 448         "links": [
 449             "93579c63.f7078",
 450             "54e93366.ac80ac",
 451             "af2b73ea.20735"
 452         ],
 453         "x": 855,
 454         "y": 560,
 455         "wires": []
 456     },
 457     {
 458         "id": "5c362ee6.22b7e",
 459         "type": "link out",
 460         "z": "67f1efdc.110188",
 461         "name": "",
 462         "links": [
 463             "93579c63.f7078",
 464             "54e93366.ac80ac",
 465             "af2b73ea.20735"
 466         ],
 467         "x": 855,
 468         "y": 600,
 469         "wires": []
 470     },
 471     {
 472         "id": "55a67f69.48409",
 473         "type": "link out",
 474         "z": "67f1efdc.110188",
 475         "name": "",
 476         "links": [
 477             "93579c63.f7078",
 478             "54e93366.ac80ac",
 479             "af2b73ea.20735"
 480         ],
 481         "x": 855,
 482         "y": 640,
 483         "wires": []
 484     },
 485     {
 486         "id": "28dca17.38b0b5e",
 487         "type": "link out",
 488         "z": "67f1efdc.110188",
 489         "name": "",
 490         "links": [
 491             "93579c63.f7078",
 492             "54e93366.ac80ac",
 493             "af2b73ea.20735"
 494         ],
 495         "x": 855,
 496         "y": 680,
 497         "wires": []
 498     },
 499     {
 500         "id": "a09ae489.32bed8",
 501         "type": "link out",
 502         "z": "67f1efdc.110188",
 503         "name": "",
 504         "links": [
 505             "5f2ccefb.beed3",
 506             "af2b73ea.20735"
 507         ],
 508         "x": 855,
 509         "y": 500,
 510         "wires": []
 511     },
 512     {
 513         "id": "e6840c01.acfc8",
 514         "type": "link out",
 515         "z": "67f1efdc.110188",
 516         "name": "",
 517         "links": [
 518             "5f2ccefb.beed3",
 519             "af2b73ea.20735"
 520         ],
 521         "x": 855,
 522         "y": 460,
 523         "wires": []
 524     },
 525     {
 526         "id": "30f4143a.aa5cec",
 527         "type": "comment",
 528         "z": "67f1efdc.110188",
 529         "name": "1",
 530         "info": "",
 531         "x": 770,
 532         "y": 40,
 533         "wires": []
 534     },
 535     {
 536         "id": "cd085a34.5de048",
 537         "type": "comment",
 538         "z": "67f1efdc.110188",
 539         "name": "2",
 540         "info": "",
 541         "x": 770,
 542         "y": 80,
 543         "wires": []
 544     },
 545     {
 546         "id": "d5ea9592.6ebe48",
 547         "type": "comment",
 548         "z": "67f1efdc.110188",
 549         "name": "3",
 550         "info": "",
 551         "x": 770,
 552         "y": 120,
 553         "wires": []
 554     },
 555     {
 556         "id": "ed59c9eb.88ba48",
 557         "type": "comment",
 558         "z": "67f1efdc.110188",
 559         "name": "4",
 560         "info": "",
 561         "x": 770,
 562         "y": 160,
 563         "wires": []
 564     },
 565     {
 566         "id": "ed0ca1ab.92b6c",
 567         "type": "comment",
 568         "z": "67f1efdc.110188",
 569         "name": "5",
 570         "info": "",
 571         "x": 770,
 572         "y": 200,
 573         "wires": []
 574     },
 575     {
 576         "id": "d11b03a2.cbbce",
 577         "type": "comment",
 578         "z": "67f1efdc.110188",
 579         "name": "6",
 580         "info": "",
 581         "x": 770,
 582         "y": 240,
 583         "wires": []
 584     },
 585     {
 586         "id": "f396db9f.0f3878",
 587         "type": "comment",
 588         "z": "67f1efdc.110188",
 589         "name": "7",
 590         "info": "",
 591         "x": 770,
 592         "y": 280,
 593         "wires": []
 594     },
 595     {
 596         "id": "e65e4f89.c0af4",
 597         "type": "comment",
 598         "z": "67f1efdc.110188",
 599         "name": "8",
 600         "info": "",
 601         "x": 770,
 602         "y": 320,
 603         "wires": []
 604     },
 605     {
 606         "id": "54ea4482.f0ca4c",
 607         "type": "comment",
 608         "z": "67f1efdc.110188",
 609         "name": "9",
 610         "info": "",
 611         "x": 770,
 612         "y": 360,
 613         "wires": []
 614     },
 615     {
 616         "id": "5499770.f640b88",
 617         "type": "comment",
 618         "z": "67f1efdc.110188",
 619         "name": "0",
 620         "info": "",
 621         "x": 770,
 622         "y": 400,
 623         "wires": []
 624     },
 625     {
 626         "id": "aaf519f7.02d078",
 627         "type": "comment",
 628         "z": "67f1efdc.110188",
 629         "name": "#",
 630         "info": "",
 631         "x": 770,
 632         "y": 500,
 633         "wires": []
 634     },
 635     {
 636         "id": "c6b946d2.448628",
 637         "type": "comment",
 638         "z": "67f1efdc.110188",
 639         "name": "*",
 640         "info": "",
 641         "x": 770,
 642         "y": 460,
 643         "wires": []
 644     },
 645     {
 646         "id": "18cbd6ec.370b69",
 647         "type": "change",
 648         "z": "67f1efdc.110188",
 649         "name": "Say: bork",
 650         "rules": [
 651             {
 652                 "t": "set",
 653                 "p": "topic",
 654                 "pt": "msg",
 655                 "to": "Button Pressed",
 656                 "tot": "str"
 657             },
 658             {
 659                 "t": "set",
 660                 "p": "type",
 661                 "pt": "msg",
 662                 "to": "Speech",
 663                 "tot": "str"
 664             },
 665             {
 666                 "t": "set",
 667                 "p": "target",
 668                 "pt": "msg",
 669                 "to": "Scotts Speaker",
 670                 "tot": "str"
 671             },
 672             {
 673                 "t": "set",
 674                 "p": "payload",
 675                 "pt": "msg",
 676                 "to": "bork",
 677                 "tot": "str"
 678             }
 679         ],
 680         "action": "",
 681         "property": "",
 682         "from": "",
 683         "to": "",
 684         "reg": false,
 685         "x": 580,
 686         "y": 460,
 687         "wires": [
 688             [
 689                 "e6840c01.acfc8"
 690             ]
 691         ]
 692     },
 693     {
 694         "id": "8d59ed2d.2c3aa",
 695         "type": "change",
 696         "z": "67f1efdc.110188",
 697         "name": "Say: bork",
 698         "rules": [
 699             {
 700                 "t": "set",
 701                 "p": "topic",
 702                 "pt": "msg",
 703                 "to": "Button Pressed",
 704                 "tot": "str"
 705             },
 706             {
 707                 "t": "set",
 708                 "p": "type",
 709                 "pt": "msg",
 710                 "to": "Speech",
 711                 "tot": "str"
 712             },
 713             {
 714                 "t": "set",
 715                 "p": "target",
 716                 "pt": "msg",
 717                 "to": "Scotts Speaker",
 718                 "tot": "str"
 719             },
 720             {
 721                 "t": "set",
 722                 "p": "payload",
 723                 "pt": "msg",
 724                 "to": "Say wut?",
 725                 "tot": "str"
 726             }
 727         ],
 728         "action": "",
 729         "property": "",
 730         "from": "",
 731         "to": "",
 732         "reg": false,
 733         "x": 580,
 734         "y": 500,
 735         "wires": [
 736             [
 737                 "a09ae489.32bed8"
 738             ]
 739         ]
 740     },
 741     {
 742         "id": "2c309c2e.3d2154",
 743         "type": "change",
 744         "z": "67f1efdc.110188",
 745         "name": "Dang!",
 746         "rules": [
 747             {
 748                 "t": "set",
 749                 "p": "topic",
 750                 "pt": "msg",
 751                 "to": "Button Pressed",
 752                 "tot": "str"
 753             },
 754             {
 755                 "t": "set",
 756                 "p": "type",
 757                 "pt": "msg",
 758                 "to": "Speech",
 759                 "tot": "str"
 760             },
 761             {
 762                 "t": "set",
 763                 "p": "target",
 764                 "pt": "msg",
 765                 "to": "Scotts Speaker",
 766                 "tot": "str"
 767             },
 768             {
 769                 "t": "set",
 770                 "p": "payload",
 771                 "pt": "msg",
 772                 "to": "Dang!",
 773                 "tot": "str"
 774             }
 775         ],
 776         "action": "",
 777         "property": "",
 778         "from": "",
 779         "to": "",
 780         "reg": false,
 781         "x": 570,
 782         "y": 400,
 783         "wires": [
 784             [
 785                 "5c8a909e.ffc5b"
 786             ]
 787         ]
 788     },
 789     {
 790         "id": "1e363993.46fcd6",
 791         "type": "change",
 792         "z": "67f1efdc.110188",
 793         "name": "OogaBooga",
 794         "rules": [
 795             {
 796                 "t": "set",
 797                 "p": "topic",
 798                 "pt": "msg",
 799                 "to": "Button Pressed",
 800                 "tot": "str"
 801             },
 802             {
 803                 "t": "set",
 804                 "p": "type",
 805                 "pt": "msg",
 806                 "to": "Speech",
 807                 "tot": "str"
 808             },
 809             {
 810                 "t": "set",
 811                 "p": "target",
 812                 "pt": "msg",
 813                 "to": "Scotts Speaker",
 814                 "tot": "str"
 815             },
 816             {
 817                 "t": "set",
 818                 "p": "payload",
 819                 "pt": "msg",
 820                 "to": "OogaBooga",
 821                 "tot": "str"
 822             }
 823         ],
 824         "action": "",
 825         "property": "",
 826         "from": "",
 827         "to": "",
 828         "reg": false,
 829         "x": 590,
 830         "y": 360,
 831         "wires": [
 832             [
 833                 "fe187230.31bad"
 834             ]
 835         ]
 836     },
 837     {
 838         "id": "3439a40d.49f7bc",
 839         "type": "change",
 840         "z": "67f1efdc.110188",
 841         "name": "Bull Shit!",
 842         "rules": [
 843             {
 844                 "t": "set",
 845                 "p": "topic",
 846                 "pt": "msg",
 847                 "to": "Button Pressed",
 848                 "tot": "str"
 849             },
 850             {
 851                 "t": "set",
 852                 "p": "type",
 853                 "pt": "msg",
 854                 "to": "Speech",
 855                 "tot": "str"
 856             },
 857             {
 858                 "t": "set",
 859                 "p": "target",
 860                 "pt": "msg",
 861                 "to": "Scotts Speaker",
 862                 "tot": "str"
 863             },
 864             {
 865                 "t": "set",
 866                 "p": "payload",
 867                 "pt": "msg",
 868                 "to": "Bull Shit!",
 869                 "tot": "str"
 870             }
 871         ],
 872         "action": "",
 873         "property": "",
 874         "from": "",
 875         "to": "",
 876         "reg": false,
 877         "x": 580,
 878         "y": 280,
 879         "wires": [
 880             [
 881                 "bb32bce.4eb6e4"
 882             ]
 883         ]
 884     },
 885     {
 886         "id": "261e1818.fd02f8",
 887         "type": "change",
 888         "z": "67f1efdc.110188",
 889         "name": "Fucking Retard!",
 890         "rules": [
 891             {
 892                 "t": "set",
 893                 "p": "topic",
 894                 "pt": "msg",
 895                 "to": "Button Pressed",
 896                 "tot": "str"
 897             },
 898             {
 899                 "t": "set",
 900                 "p": "type",
 901                 "pt": "msg",
 902                 "to": "Speech",
 903                 "tot": "str"
 904             },
 905             {
 906                 "t": "set",
 907                 "p": "target",
 908                 "pt": "msg",
 909                 "to": "Scotts Speaker",
 910                 "tot": "str"
 911             },
 912             {
 913                 "t": "set",
 914                 "p": "payload",
 915                 "pt": "msg",
 916                 "to": "Fucking Retard!",
 917                 "tot": "str"
 918             }
 919         ],
 920         "action": "",
 921         "property": "",
 922         "from": "",
 923         "to": "",
 924         "reg": false,
 925         "x": 600,
 926         "y": 40,
 927         "wires": [
 928             [
 929                 "4787e954.dca8f8"
 930             ]
 931         ]
 932     },
 933     {
 934         "id": "c90e7db6.8a82f",
 935         "type": "change",
 936         "z": "67f1efdc.110188",
 937         "name": "well... shit",
 938         "rules": [
 939             {
 940                 "t": "set",
 941                 "p": "topic",
 942                 "pt": "msg",
 943                 "to": "Button Pressed",
 944                 "tot": "str"
 945             },
 946             {
 947                 "t": "set",
 948                 "p": "type",
 949                 "pt": "msg",
 950                 "to": "Speech",
 951                 "tot": "str"
 952             },
 953             {
 954                 "t": "set",
 955                 "p": "target",
 956                 "pt": "msg",
 957                 "to": "Scotts Speaker",
 958                 "tot": "str"
 959             },
 960             {
 961                 "t": "set",
 962                 "p": "payload",
 963                 "pt": "msg",
 964                 "to": "well... shit",
 965                 "tot": "str"
 966             }
 967         ],
 968         "action": "",
 969         "property": "",
 970         "from": "",
 971         "to": "",
 972         "reg": false,
 973         "x": 580,
 974         "y": 80,
 975         "wires": [
 976             [
 977                 "ab11f967.ca9318"
 978             ]
 979         ]
 980     },
 981     {
 982         "id": "a37c4099.3528d",
 983         "type": "change",
 984         "z": "67f1efdc.110188",
 985         "name": "woot woot",
 986         "rules": [
 987             {
 988                 "t": "set",
 989                 "p": "topic",
 990                 "pt": "msg",
 991                 "to": "Button Pressed",
 992                 "tot": "str"
 993             },
 994             {
 995                 "t": "set",
 996                 "p": "type",
 997                 "pt": "msg",
 998                 "to": "Speech",
 999                 "tot": "str"
1000             },
1001             {
1002                 "t": "set",
1003                 "p": "target",
1004                 "pt": "msg",
1005                 "to": "Scotts Speaker",
1006                 "tot": "str"
1007             },
1008             {
1009                 "t": "set",
1010                 "p": "payload",
1011                 "pt": "msg",
1012                 "to": "woot woot",
1013                 "tot": "str"
1014             }
1015         ],
1016         "action": "",
1017         "property": "",
1018         "from": "",
1019         "to": "",
1020         "reg": false,
1021         "x": 580,
1022         "y": 120,
1023         "wires": [
1024             [
1025                 "78928728.913068"
1026             ]
1027         ]
1028     },
1029     {
1030         "id": "8c0855cd.68b388",
1031         "type": "change",
1032         "z": "67f1efdc.110188",
1033         "name": "it jit",
1034         "rules": [
1035             {
1036                 "t": "set",
1037                 "p": "topic",
1038                 "pt": "msg",
1039                 "to": "Button Pressed",
1040                 "tot": "str"
1041             },
1042             {
1043                 "t": "set",
1044                 "p": "type",
1045                 "pt": "msg",
1046                 "to": "Speech",
1047                 "tot": "str"
1048             },
1049             {
1050                 "t": "set",
1051                 "p": "target",
1052                 "pt": "msg",
1053                 "to": "Scotts Speaker",
1054                 "tot": "str"
1055             },
1056             {
1057                 "t": "set",
1058                 "p": "payload",
1059                 "pt": "msg",
1060                 "to": "it jit",
1061                 "tot": "str"
1062             }
1063         ],
1064         "action": "",
1065         "property": "",
1066         "from": "",
1067         "to": "",
1068         "reg": false,
1069         "x": 570,
1070         "y": 160,
1071         "wires": [
1072             [
1073                 "884190b7.fcccb"
1074             ]
1075         ]
1076     },
1077     {
1078         "id": "f627441.1d8a9b8",
1079         "type": "change",
1080         "z": "67f1efdc.110188",
1081         "name": "Bloody Hell!",
1082         "rules": [
1083             {
1084                 "t": "set",
1085                 "p": "topic",
1086                 "pt": "msg",
1087                 "to": "Button Pressed",
1088                 "tot": "str"
1089             },
1090             {
1091                 "t": "set",
1092                 "p": "type",
1093                 "pt": "msg",
1094                 "to": "Speech",
1095                 "tot": "str"
1096             },
1097             {
1098                 "t": "set",
1099                 "p": "target",
1100                 "pt": "msg",
1101                 "to": "Scotts Speaker",
1102                 "tot": "str"
1103             },
1104             {
1105                 "t": "set",
1106                 "p": "payload",
1107                 "pt": "msg",
1108                 "to": "Bloody Hell!",
1109                 "tot": "str"
1110             }
1111         ],
1112         "action": "",
1113         "property": "",
1114         "from": "",
1115         "to": "",
1116         "reg": false,
1117         "x": 590,
1118         "y": 200,
1119         "wires": [
1120             [
1121                 "ba2a4e96.38183"
1122             ]
1123         ]
1124     },
1125     {
1126         "id": "23398b41.849d64",
1127         "type": "change",
1128         "z": "67f1efdc.110188",
1129         "name": "Yee Ha!",
1130         "rules": [
1131             {
1132                 "t": "set",
1133                 "p": "topic",
1134                 "pt": "msg",
1135                 "to": "Button Pressed",
1136                 "tot": "str"
1137             },
1138             {
1139                 "t": "set",
1140                 "p": "type",
1141                 "pt": "msg",
1142                 "to": "Speech",
1143                 "tot": "str"
1144             },
1145             {
1146                 "t": "set",
1147                 "p": "target",
1148                 "pt": "msg",
1149                 "to": "Scotts Speaker",
1150                 "tot": "str"
1151             },
1152             {
1153                 "t": "set",
1154                 "p": "payload",
1155                 "pt": "msg",
1156                 "to": "Yee Ha!",
1157                 "tot": "str"
1158             }
1159         ],
1160         "action": "",
1161         "property": "",
1162         "from": "",
1163         "to": "",
1164         "reg": false,
1165         "x": 580,
1166         "y": 240,
1167         "wires": [
1168             [
1169                 "573426cb.688fb8"
1170             ]
1171         ]
1172     },
1173     {
1174         "id": "477a4cd6.fbd194",
1175         "type": "change",
1176         "z": "67f1efdc.110188",
1177         "name": "Oh poop",
1178         "rules": [
1179             {
1180                 "t": "set",
1181                 "p": "topic",
1182                 "pt": "msg",
1183                 "to": "Button Pressed",
1184                 "tot": "str"
1185             },
1186             {
1187                 "t": "set",
1188                 "p": "type",
1189                 "pt": "msg",
1190                 "to": "Speech",
1191                 "tot": "str"
1192             },
1193             {
1194                 "t": "set",
1195                 "p": "target",
1196                 "pt": "msg",
1197                 "to": "Scotts Speaker",
1198                 "tot": "str"
1199             },
1200             {
1201                 "t": "set",
1202                 "p": "payload",
1203                 "pt": "msg",
1204                 "to": "Oh poop",
1205                 "tot": "str"
1206             }
1207         ],
1208         "action": "",
1209         "property": "",
1210         "from": "",
1211         "to": "",
1212         "reg": false,
1213         "x": 580,
1214         "y": 320,
1215         "wires": [
1216             [
1217                 "edbcc362.8a038"
1218             ]
1219         ]
1220     },
1221     {
1222         "id": "94a22f0a.8a6d4",
1223         "type": "change",
1224         "z": "67f1efdc.110188",
1225         "name": "toggle Screens",
1226         "rules": [
1227             {
1228                 "t": "set",
1229                 "p": "topic",
1230                 "pt": "msg",
1231                 "to": "Button Pressed",
1232                 "tot": "str"
1233             },
1234             {
1235                 "t": "set",
1236                 "p": "type",
1237                 "pt": "msg",
1238                 "to": "Control",
1239                 "tot": "str"
1240             },
1241             {
1242                 "t": "set",
1243                 "p": "target",
1244                 "pt": "msg",
1245                 "to": "TasmOTA/Screens/cmnd/POWER",
1246                 "tot": "str"
1247             },
1248             {
1249                 "t": "set",
1250                 "p": "payload",
1251                 "pt": "msg",
1252                 "to": "toggle",
1253                 "tot": "str"
1254             }
1255         ],
1256         "action": "",
1257         "property": "",
1258         "from": "",
1259         "to": "",
1260         "reg": false,
1261         "x": 600,
1262         "y": 560,
1263         "wires": [
1264             [
1265                 "bdded2e4.4994d"
1266             ]
1267         ]
1268     },
1269     {
1270         "id": "5fd1f360.77e72c",
1271         "type": "change",
1272         "z": "67f1efdc.110188",
1273         "name": "toggle NightLight",
1274         "rules": [
1275             {
1276                 "t": "set",
1277                 "p": "topic",
1278                 "pt": "msg",
1279                 "to": "Button Pressed",
1280                 "tot": "str"
1281             },
1282             {
1283                 "t": "set",
1284                 "p": "type",
1285                 "pt": "msg",
1286                 "to": "Control",
1287                 "tot": "str"
1288             },
1289             {
1290                 "t": "set",
1291                 "p": "target",
1292                 "pt": "msg",
1293                 "to": "cmnd/Night_Light/POWER",
1294                 "tot": "str"
1295             },
1296             {
1297                 "t": "set",
1298                 "p": "payload",
1299                 "pt": "msg",
1300                 "to": "toggle",
1301                 "tot": "str"
1302             }
1303         ],
1304         "action": "",
1305         "property": "",
1306         "from": "",
1307         "to": "",
1308         "reg": false,
1309         "x": 610,
1310         "y": 600,
1311         "wires": [
1312             [
1313                 "5c362ee6.22b7e"
1314             ]
1315         ]
1316     },
1317     {
1318         "id": "81371de5.c7e41",
1319         "type": "change",
1320         "z": "67f1efdc.110188",
1321         "name": "toggle PantryLight",
1322         "rules": [
1323             {
1324                 "t": "set",
1325                 "p": "topic",
1326                 "pt": "msg",
1327                 "to": "Button Pressed",
1328                 "tot": "str"
1329             },
1330             {
1331                 "t": "set",
1332                 "p": "type",
1333                 "pt": "msg",
1334                 "to": "Control",
1335                 "tot": "str"
1336             },
1337             {
1338                 "t": "set",
1339                 "p": "target",
1340                 "pt": "msg",
1341                 "to": "cmnd/PantryLight/POWER",
1342                 "tot": "str"
1343             },
1344             {
1345                 "t": "set",
1346                 "p": "payload",
1347                 "pt": "msg",
1348                 "to": "toggle",
1349                 "tot": "str"
1350             }
1351         ],
1352         "action": "",
1353         "property": "",
1354         "from": "",
1355         "to": "",
1356         "reg": false,
1357         "x": 610,
1358         "y": 680,
1359         "wires": [
1360             [
1361                 "28dca17.38b0b5e"
1362             ]
1363         ]
1364     },
1365     {
1366         "id": "40d2093d.283f98",
1367         "type": "change",
1368         "z": "67f1efdc.110188",
1369         "name": "toggle BeerLight",
1370         "rules": [
1371             {
1372                 "t": "set",
1373                 "p": "topic",
1374                 "pt": "msg",
1375                 "to": "Button Pressed",
1376                 "tot": "str"
1377             },
1378             {
1379                 "t": "set",
1380                 "p": "type",
1381                 "pt": "msg",
1382                 "to": "Control",
1383                 "tot": "str"
1384             },
1385             {
1386                 "t": "set",
1387                 "p": "target",
1388                 "pt": "msg",
1389                 "to": "cmnd/Beer_Light/POWER",
1390                 "tot": "str"
1391             },
1392             {
1393                 "t": "set",
1394                 "p": "payload",
1395                 "pt": "msg",
1396                 "to": "toggle",
1397                 "tot": "str"
1398             }
1399         ],
1400         "action": "",
1401         "property": "",
1402         "from": "",
1403         "to": "",
1404         "reg": false,
1405         "x": 600,
1406         "y": 640,
1407         "wires": [
1408             [
1409                 "55a67f69.48409"
1410             ]
1411         ]
1412     },
1413     {
1414         "id": "c566ad0b.aadf5",
1415         "type": "change",
1416         "z": "67f1efdc.110188",
1417         "name": "",
1418         "rules": [
1419             {
1420                 "t": "set",
1421                 "p": "topic",
1422                 "pt": "msg",
1423                 "to": "target",
1424                 "tot": "msg"
1425             }
1426         ],
1427         "action": "",
1428         "property": "",
1429         "from": "",
1430         "to": "",
1431         "reg": false,
1432         "x": 990,
1433         "y": 80,
1434         "wires": [
1435             [
1436                 "c895d910.352f08",
1437                 "ae88fa.ec8a8708"
1438             ]
1439         ]
1440     },
1441     {
1442         "id": "af2b73ea.20735",
1443         "type": "link in",
1444         "z": "67f1efdc.110188",
1445         "name": "",
1446         "links": [
1447             "4787e954.dca8f8",
1448             "ab11f967.ca9318",
1449             "78928728.913068",
1450             "884190b7.fcccb",
1451             "ba2a4e96.38183",
1452             "573426cb.688fb8",
1453             "bb32bce.4eb6e4",
1454             "edbcc362.8a038",
1455             "fe187230.31bad",
1456             "5c8a909e.ffc5b",
1457             "a09ae489.32bed8",
1458             "e6840c01.acfc8",
1459             "bdded2e4.4994d",
1460             "5c362ee6.22b7e",
1461             "55a67f69.48409",
1462             "28dca17.38b0b5e"
1463         ],
1464         "x": 935,
1465         "y": 40,
1466         "wires": [
1467             [
1468                 "c566ad0b.aadf5"
1469             ]
1470         ]
1471     },
1472     {
1473         "id": "c895d910.352f08",
1474         "type": "debug",
1475         "z": "67f1efdc.110188",
1476         "name": "",
1477         "active": false,
1478         "tosidebar": true,
1479         "console": false,
1480         "tostatus": false,
1481         "complete": "true",
1482         "targetType": "full",
1483         "statusVal": "",
1484         "statusType": "auto",
1485         "x": 1070,
1486         "y": 40,
1487         "wires": []
1488     },
1489     {
1490         "id": "ae88fa.ec8a8708",
1491         "type": "mqtt out",
1492         "z": "67f1efdc.110188",
1493         "name": "",
1494         "topic": "",
1495         "qos": "",
1496         "retain": "",
1497         "respTopic": "",
1498         "contentType": "",
1499         "userProps": "",
1500         "correl": "",
1501         "expiry": "",
1502         "broker": "f32dd71f.7c852",
1503         "x": 1090,
1504         "y": 120,
1505         "wires": []
1506     },
1507     {
1508         "id": "f32dd71f.7c852",
1509         "type": "mqtt-broker",
1510         "name": "",
1511         "broker": "skynet",
1512         "port": "1883",
1513         "clientid": "",
1514         "usetls": false,
1515         "protocolVersion": "4",
1516         "keepalive": "60",
1517         "cleansession": true,
1518         "birthTopic": "",
1519         "birthQos": "0",
1520         "birthPayload": "",
1521         "birthMsg": {},
1522         "closeTopic": "",
1523         "closePayload": "",
1524         "closeMsg": {},
1525         "willTopic": "",
1526         "willQos": "0",
1527         "willPayload": "",
1528         "willMsg": {},
1529         "sessionExpiry": ""
1530     }
1531 ]