Advertisement
pokornymartin

schody_node_red

May 7th, 2021
2,660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 10.92 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "c618d565.fd2b08",
  4.         "type": "subflow",
  5.         "name": "schodiste-podminky",
  6.         "info": "",
  7.         "category": "",
  8.         "in": [
  9.             {
  10.                 "x": 40,
  11.                 "y": 180,
  12.                 "wires": [
  13.                     {
  14.                         "id": "c308197b.4d6f58"
  15.                     }
  16.                 ]
  17.             }
  18.         ],
  19.         "out": [
  20.             {
  21.                 "x": 1580,
  22.                 "y": 180,
  23.                 "wires": [
  24.                     {
  25.                         "id": "a150a1e0.b9056",
  26.                         "port": 0
  27.                     }
  28.                 ]
  29.             }
  30.         ],
  31.         "env": [],
  32.         "color": "#FFF0F0",
  33.         "inputLabels": [
  34.             "MQTT vstup"
  35.         ],
  36.         "outputLabels": [
  37.             "MQTT výstup"
  38.         ],
  39.         "icon": "font-awesome/fa-arrows-alt"
  40.     },
  41.     {
  42.         "id": "c308197b.4d6f58",
  43.         "type": "json",
  44.         "z": "c618d565.fd2b08",
  45.         "name": "",
  46.         "x": 130,
  47.         "y": 180,
  48.         "wires": [
  49.             [
  50.                 "88c062fb.3486d"
  51.             ]
  52.         ]
  53.     },
  54.     {
  55.         "id": "88c062fb.3486d",
  56.         "type": "contrib-json",
  57.         "z": "c618d565.fd2b08",
  58.         "engine": "JSONPath",
  59.         "command": "jq",
  60.         "expr": "$..occupancy",
  61.         "complete": "property",
  62.         "prop": "payload",
  63.         "name": "Get state",
  64.         "x": 260,
  65.         "y": 180,
  66.         "wires": [
  67.             [
  68.                 "8a396542.26d8f8"
  69.             ]
  70.         ]
  71.     },
  72.     {
  73.         "id": "a2219bd4.316988",
  74.         "type": "switch",
  75.         "z": "c618d565.fd2b08",
  76.         "name": "pokud je pohyb",
  77.         "property": "payload",
  78.         "propertyType": "msg",
  79.         "rules": [
  80.             {
  81.                 "t": "true"
  82.             }
  83.         ],
  84.         "checkall": "true",
  85.         "repair": false,
  86.         "outputs": 1,
  87.         "x": 560,
  88.         "y": 180,
  89.         "wires": [
  90.             [
  91.                 "c403647a.ff0458"
  92.             ]
  93.         ]
  94.     },
  95.     {
  96.         "id": "8a396542.26d8f8",
  97.         "type": "splitter",
  98.         "z": "c618d565.fd2b08",
  99.         "name": "Split array",
  100.         "property": "payload",
  101.         "x": 400,
  102.         "y": 180,
  103.         "wires": [
  104.             [
  105.                 "a2219bd4.316988"
  106.             ]
  107.         ]
  108.     },
  109.     {
  110.         "id": "c403647a.ff0458",
  111.         "type": "switch",
  112.         "z": "c618d565.fd2b08",
  113.         "name": "dolni / horni cidlo",
  114.         "property": "topic",
  115.         "propertyType": "msg",
  116.         "rules": [
  117.             {
  118.                 "t": "cont",
  119.                 "v": "XIAOMI_move_1",
  120.                 "vt": "str"
  121.             },
  122.             {
  123.                 "t": "cont",
  124.                 "v": "XIAOMI_move_3",
  125.                 "vt": "str"
  126.             }
  127.         ],
  128.         "checkall": "true",
  129.         "repair": false,
  130.         "outputs": 2,
  131.         "x": 770,
  132.         "y": 180,
  133.         "wires": [
  134.             [
  135.                 "62492982.c78678"
  136.             ],
  137.             [
  138.                 "c9768c30.339e"
  139.             ]
  140.         ]
  141.     },
  142.     {
  143.         "id": "9e34635f.a43dc",
  144.         "type": "change",
  145.         "z": "c618d565.fd2b08",
  146.         "name": "denní svit",
  147.         "rules": [
  148.             {
  149.                 "t": "set",
  150.                 "p": "payload",
  151.                 "pt": "msg",
  152.                 "to": "{\"smer\":1,\"rychlost\":90,\"cas\":61000,\"intenzita\":130,\"schody\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}",
  153.                 "tot": "str"
  154.             }
  155.         ],
  156.         "action": "",
  157.         "property": "",
  158.         "from": "",
  159.         "to": "",
  160.         "reg": false,
  161.         "x": 1180,
  162.         "y": 100,
  163.         "wires": [
  164.             [
  165.                 "a150a1e0.b9056"
  166.             ]
  167.         ]
  168.     },
  169.     {
  170.         "id": "83a4fb2a.e5b368",
  171.         "type": "change",
  172.         "z": "c618d565.fd2b08",
  173.         "name": "noční svit",
  174.         "rules": [
  175.             {
  176.                 "t": "set",
  177.                 "p": "payload",
  178.                 "pt": "msg",
  179.                 "to": "{\"smer\":1,\"rychlost\":90,\"cas\":61000,\"intenzita\":20,\"schody\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}",
  180.                 "tot": "str"
  181.             }
  182.         ],
  183.         "action": "",
  184.         "property": "",
  185.         "from": "",
  186.         "to": "",
  187.         "reg": false,
  188.         "x": 1180,
  189.         "y": 140,
  190.         "wires": [
  191.             [
  192.                 "a150a1e0.b9056"
  193.             ]
  194.         ]
  195.     },
  196.     {
  197.         "id": "39ce5762.013e28",
  198.         "type": "change",
  199.         "z": "c618d565.fd2b08",
  200.         "name": "denní svit",
  201.         "rules": [
  202.             {
  203.                 "t": "set",
  204.                 "p": "payload",
  205.                 "pt": "msg",
  206.                 "to": "{\"smer\":2,\"rychlost\":90,\"cas\":61000,\"intenzita\":130,\"schody\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}",
  207.                 "tot": "str"
  208.             }
  209.         ],
  210.         "action": "",
  211.         "property": "",
  212.         "from": "",
  213.         "to": "",
  214.         "reg": false,
  215.         "x": 1180,
  216.         "y": 220,
  217.         "wires": [
  218.             [
  219.                 "a150a1e0.b9056"
  220.             ]
  221.         ]
  222.     },
  223.     {
  224.         "id": "9a93c8bb.158518",
  225.         "type": "change",
  226.         "z": "c618d565.fd2b08",
  227.         "name": "noční svit",
  228.         "rules": [
  229.             {
  230.                 "t": "set",
  231.                 "p": "payload",
  232.                 "pt": "msg",
  233.                 "to": "{\"smer\":2,\"rychlost\":90,\"cas\":61000,\"intenzita\":20,\"schody\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}",
  234.                 "tot": "str"
  235.             }
  236.         ],
  237.         "action": "",
  238.         "property": "",
  239.         "from": "",
  240.         "to": "",
  241.         "reg": false,
  242.         "x": 1180,
  243.         "y": 260,
  244.         "wires": [
  245.             [
  246.                 "a150a1e0.b9056"
  247.             ]
  248.         ]
  249.     },
  250.     {
  251.         "id": "62492982.c78678",
  252.         "type": "switch",
  253.         "z": "c618d565.fd2b08",
  254.         "name": "den / noc",
  255.         "property": "den",
  256.         "propertyType": "global",
  257.         "rules": [
  258.             {
  259.                 "t": "eq",
  260.                 "v": "1",
  261.                 "vt": "num"
  262.             },
  263.             {
  264.                 "t": "eq",
  265.                 "v": "0",
  266.                 "vt": "num"
  267.             }
  268.         ],
  269.         "checkall": "true",
  270.         "repair": false,
  271.         "outputs": 2,
  272.         "x": 1000,
  273.         "y": 120,
  274.         "wires": [
  275.             [
  276.                 "9e34635f.a43dc"
  277.             ],
  278.             [
  279.                 "83a4fb2a.e5b368"
  280.             ]
  281.         ]
  282.     },
  283.     {
  284.         "id": "c9768c30.339e",
  285.         "type": "switch",
  286.         "z": "c618d565.fd2b08",
  287.         "name": "den / noc",
  288.         "property": "den",
  289.         "propertyType": "global",
  290.         "rules": [
  291.             {
  292.                 "t": "eq",
  293.                 "v": "1",
  294.                 "vt": "num"
  295.             },
  296.             {
  297.                 "t": "eq",
  298.                 "v": "0",
  299.                 "vt": "num"
  300.             }
  301.         ],
  302.         "checkall": "true",
  303.         "repair": false,
  304.         "outputs": 2,
  305.         "x": 1000,
  306.         "y": 240,
  307.         "wires": [
  308.             [
  309.                 "39ce5762.013e28"
  310.             ],
  311.             [
  312.                 "9a93c8bb.158518"
  313.             ]
  314.         ]
  315.     },
  316.     {
  317.         "id": "a150a1e0.b9056",
  318.         "type": "delay",
  319.         "z": "c618d565.fd2b08",
  320.         "name": "",
  321.         "pauseType": "rate",
  322.         "timeout": "5",
  323.         "timeoutUnits": "seconds",
  324.         "rate": "1",
  325.         "nbRateUnits": "59",
  326.         "rateUnits": "second",
  327.         "randomFirst": "1",
  328.         "randomLast": "5",
  329.         "randomUnits": "seconds",
  330.         "drop": true,
  331.         "x": 1400,
  332.         "y": 180,
  333.         "wires": [
  334.             []
  335.         ]
  336.     },
  337.     {
  338.         "id": "81ca12dd.6e4a7",
  339.         "type": "mqtt in",
  340.         "z": "80a49586.f821d8",
  341.         "name": "",
  342.         "topic": "zigbee2mqtt/XIAOMI_move_1",
  343.         "qos": "2",
  344.         "datatype": "auto",
  345.         "broker": "19d9cca8.4620f3",
  346.         "x": 140,
  347.         "y": 140,
  348.         "wires": [
  349.             [
  350.                 "1e244a5a.ccaef6"
  351.             ]
  352.         ]
  353.     },
  354.     {
  355.         "id": "7e5f7d5f.d91024",
  356.         "type": "mqtt out",
  357.         "z": "80a49586.f821d8",
  358.         "name": "",
  359.         "topic": "domek/schodiste/set/",
  360.         "qos": "",
  361.         "retain": "",
  362.         "broker": "8203a7e.9939f58",
  363.         "x": 740,
  364.         "y": 200,
  365.         "wires": []
  366.     },
  367.     {
  368.         "id": "67df1b5.4d068e4",
  369.         "type": "comment",
  370.         "z": "80a49586.f821d8",
  371.         "name": "spodni cidlo",
  372.         "info": "",
  373.         "x": 90,
  374.         "y": 100,
  375.         "wires": []
  376.     },
  377.     {
  378.         "id": "b159738c.04939",
  379.         "type": "comment",
  380.         "z": "80a49586.f821d8",
  381.         "name": "horni cidlo",
  382.         "info": "",
  383.         "x": 80,
  384.         "y": 200,
  385.         "wires": []
  386.     },
  387.     {
  388.         "id": "1e244a5a.ccaef6",
  389.         "type": "subflow:c618d565.fd2b08",
  390.         "z": "80a49586.f821d8",
  391.         "name": "",
  392.         "env": [],
  393.         "x": 460,
  394.         "y": 200,
  395.         "wires": [
  396.             [
  397.                 "7e5f7d5f.d91024"
  398.             ]
  399.         ]
  400.     },
  401.     {
  402.         "id": "af88f0da.4183d",
  403.         "type": "mqtt in",
  404.         "z": "80a49586.f821d8",
  405.         "name": "",
  406.         "topic": "zigbee2mqtt/XIAOMI_move_3",
  407.         "qos": "2",
  408.         "datatype": "auto",
  409.         "broker": "19d9cca8.4620f3",
  410.         "x": 140,
  411.         "y": 240,
  412.         "wires": [
  413.             [
  414.                 "1e244a5a.ccaef6"
  415.             ]
  416.         ]
  417.     },
  418.     {
  419.         "id": "19d9cca8.4620f3",
  420.         "type": "mqtt-broker",
  421.         "name": "",
  422.         "broker": "172.16.0.200",
  423.         "port": "1883",
  424.         "tls": "f66ba3dc.9a5d7",
  425.         "clientid": "",
  426.         "usetls": false,
  427.         "compatmode": true,
  428.         "keepalive": "15",
  429.         "cleansession": true,
  430.         "birthTopic": "",
  431.         "birthQos": "0",
  432.         "birthPayload": "",
  433.         "closeTopic": "",
  434.         "closePayload": "",
  435.         "willTopic": "",
  436.         "willQos": "0",
  437.         "willPayload": ""
  438.     },
  439.     {
  440.         "id": "8203a7e.9939f58",
  441.         "type": "mqtt-broker",
  442.         "broker": "0.0.0.0",
  443.         "port": "1883",
  444.         "clientid": "",
  445.         "usetls": false,
  446.         "compatmode": true,
  447.         "keepalive": "60",
  448.         "cleansession": true,
  449.         "birthTopic": "",
  450.         "birthQos": "0",
  451.         "birthPayload": "",
  452.         "willTopic": "",
  453.         "willQos": "0",
  454.         "willPayload": ""
  455.     },
  456.     {
  457.         "id": "f66ba3dc.9a5d7",
  458.         "type": "tls-config",
  459.         "name": "",
  460.         "cert": "",
  461.         "key": "",
  462.         "ca": "",
  463.         "certname": "m2mqtt_srv.crt",
  464.         "keyname": "m2mqtt_srv.key",
  465.         "caname": "m2mqtt_ca.crt",
  466.         "servername": "",
  467.         "verifyservercert": false
  468.     }
  469. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement