Advertisement
-Teme-

Shelly I4 4 button map

Nov 14th, 2022
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 11.73 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "417ed508cf8538a4",
  4.         "type": "subflow",
  5.         "name": "Shelly I4",
  6.         "info": "",
  7.         "category": "",
  8.         "in": [
  9.             {
  10.                 "x": 60,
  11.                 "y": 220,
  12.                 "wires": [
  13.                     {
  14.                         "id": "5a8e35321a082689"
  15.                     }
  16.                 ]
  17.             }
  18.         ],
  19.         "out": [
  20.             {
  21.                 "x": 760,
  22.                 "y": 80,
  23.                 "wires": [
  24.                     {
  25.                         "id": "c2991fdf334bc78f",
  26.                         "port": 3
  27.                     },
  28.                     {
  29.                         "id": "c2991fdf334bc78f",
  30.                         "port": 2
  31.                     },
  32.                     {
  33.                         "id": "c2991fdf334bc78f",
  34.                         "port": 1
  35.                     },
  36.                     {
  37.                         "id": "c2991fdf334bc78f",
  38.                         "port": 0
  39.                     }
  40.                 ]
  41.             },
  42.             {
  43.                 "x": 760,
  44.                 "y": 180,
  45.                 "wires": [
  46.                     {
  47.                         "id": "7f7123c5939ead14",
  48.                         "port": 3
  49.                     },
  50.                     {
  51.                         "id": "7f7123c5939ead14",
  52.                         "port": 2
  53.                     },
  54.                     {
  55.                         "id": "7f7123c5939ead14",
  56.                         "port": 1
  57.                     },
  58.                     {
  59.                         "id": "7f7123c5939ead14",
  60.                         "port": 0
  61.                     }
  62.                 ]
  63.             },
  64.             {
  65.                 "x": 760,
  66.                 "y": 280,
  67.                 "wires": [
  68.                     {
  69.                         "id": "191542cc5f6c8406",
  70.                         "port": 0
  71.                     },
  72.                     {
  73.                         "id": "191542cc5f6c8406",
  74.                         "port": 1
  75.                     },
  76.                     {
  77.                         "id": "191542cc5f6c8406",
  78.                         "port": 2
  79.                     },
  80.                     {
  81.                         "id": "191542cc5f6c8406",
  82.                         "port": 3
  83.                     }
  84.                 ]
  85.             },
  86.             {
  87.                 "x": 760,
  88.                 "y": 380,
  89.                 "wires": [
  90.                     {
  91.                         "id": "5f5b417858c495ec",
  92.                         "port": 0
  93.                     },
  94.                     {
  95.                         "id": "5f5b417858c495ec",
  96.                         "port": 1
  97.                     },
  98.                     {
  99.                         "id": "5f5b417858c495ec",
  100.                         "port": 2
  101.                     },
  102.                     {
  103.                         "id": "5f5b417858c495ec",
  104.                         "port": 3
  105.                     }
  106.                 ]
  107.             }
  108.         ],
  109.         "env": [],
  110.         "meta": {},
  111.         "color": "#DDAA99"
  112.     },
  113.     {
  114.         "id": "c2991fdf334bc78f",
  115.         "type": "button-events",
  116.         "z": "417ed508cf8538a4",
  117.         "name": "",
  118.         "outputs": 4,
  119.         "inputField": "payload",
  120.         "inputFieldType": "msg",
  121.         "outputField": "payload",
  122.         "outputFieldType": "msg",
  123.         "downValue": "true",
  124.         "downValueType": "bool",
  125.         "upValue": "false",
  126.         "upValueType": "bool",
  127.         "idleValue": "1",
  128.         "buttonEventsConfig": "2b5f554fba088ec9",
  129.         "clickedInterval": null,
  130.         "pressedInterval": null,
  131.         "debounceInterval": null,
  132.         "events": [
  133.             {
  134.                 "type": "clicked"
  135.             },
  136.             {
  137.                 "type": "double_clicked"
  138.             },
  139.             {
  140.                 "type": "triple_clicked"
  141.             },
  142.             {
  143.                 "type": "pressed"
  144.             }
  145.         ],
  146.         "x": 600,
  147.         "y": 80,
  148.         "wires": [
  149.             [],
  150.             [],
  151.             [],
  152.             []
  153.         ]
  154.     },
  155.     {
  156.         "id": "5a8e35321a082689",
  157.         "type": "switch",
  158.         "z": "417ed508cf8538a4",
  159.         "name": "button",
  160.         "property": "payload.params",
  161.         "propertyType": "msg",
  162.         "rules": [
  163.             {
  164.                 "t": "hask",
  165.                 "v": "input:0",
  166.                 "vt": "str"
  167.             },
  168.             {
  169.                 "t": "hask",
  170.                 "v": "input:1",
  171.                 "vt": "str"
  172.             },
  173.             {
  174.                 "t": "hask",
  175.                 "v": "input:2",
  176.                 "vt": "str"
  177.             },
  178.             {
  179.                 "t": "hask",
  180.                 "v": "input:3",
  181.                 "vt": "str"
  182.             }
  183.         ],
  184.         "checkall": "false",
  185.         "repair": false,
  186.         "outputs": 4,
  187.         "x": 190,
  188.         "y": 220,
  189.         "wires": [
  190.             [
  191.                 "9c8a8aa9ea574125"
  192.             ],
  193.             [
  194.                 "3a42bb71265f34bf"
  195.             ],
  196.             [
  197.                 "f8b1bd70338f73cc"
  198.             ],
  199.             [
  200.                 "40ca29a9d69c1764"
  201.             ]
  202.         ]
  203.     },
  204.     {
  205.         "id": "9c8a8aa9ea574125",
  206.         "type": "change",
  207.         "z": "417ed508cf8538a4",
  208.         "name": "to payload",
  209.         "rules": [
  210.             {
  211.                 "t": "move",
  212.                 "p": "payload.params[\"input:0\"].state",
  213.                 "pt": "msg",
  214.                 "to": "payload",
  215.                 "tot": "msg"
  216.             }
  217.         ],
  218.         "action": "",
  219.         "property": "",
  220.         "from": "",
  221.         "to": "",
  222.         "reg": false,
  223.         "x": 390,
  224.         "y": 140,
  225.         "wires": [
  226.             [
  227.                 "c2991fdf334bc78f"
  228.             ]
  229.         ]
  230.     },
  231.     {
  232.         "id": "3a42bb71265f34bf",
  233.         "type": "change",
  234.         "z": "417ed508cf8538a4",
  235.         "name": "to payload",
  236.         "rules": [
  237.             {
  238.                 "t": "move",
  239.                 "p": "payload.params[\"input:1\"].state",
  240.                 "pt": "msg",
  241.                 "to": "payload",
  242.                 "tot": "msg"
  243.             }
  244.         ],
  245.         "action": "",
  246.         "property": "",
  247.         "from": "",
  248.         "to": "",
  249.         "reg": false,
  250.         "x": 390,
  251.         "y": 200,
  252.         "wires": [
  253.             [
  254.                 "7f7123c5939ead14"
  255.             ]
  256.         ]
  257.     },
  258.     {
  259.         "id": "f8b1bd70338f73cc",
  260.         "type": "change",
  261.         "z": "417ed508cf8538a4",
  262.         "name": "to payload",
  263.         "rules": [
  264.             {
  265.                 "t": "move",
  266.                 "p": "payload.params[\"input:2\"].state",
  267.                 "pt": "msg",
  268.                 "to": "payload",
  269.                 "tot": "msg"
  270.             }
  271.         ],
  272.         "action": "",
  273.         "property": "",
  274.         "from": "",
  275.         "to": "",
  276.         "reg": false,
  277.         "x": 390,
  278.         "y": 260,
  279.         "wires": [
  280.             [
  281.                 "191542cc5f6c8406"
  282.             ]
  283.         ]
  284.     },
  285.     {
  286.         "id": "40ca29a9d69c1764",
  287.         "type": "change",
  288.         "z": "417ed508cf8538a4",
  289.         "name": "to payload",
  290.         "rules": [
  291.             {
  292.                 "t": "move",
  293.                 "p": "payload.params[\"input:3\"].state",
  294.                 "pt": "msg",
  295.                 "to": "payload",
  296.                 "tot": "msg"
  297.             }
  298.         ],
  299.         "action": "",
  300.         "property": "",
  301.         "from": "",
  302.         "to": "",
  303.         "reg": false,
  304.         "x": 390,
  305.         "y": 320,
  306.         "wires": [
  307.             [
  308.                 "5f5b417858c495ec"
  309.             ]
  310.         ]
  311.     },
  312.     {
  313.         "id": "7f7123c5939ead14",
  314.         "type": "button-events",
  315.         "z": "417ed508cf8538a4",
  316.         "name": "",
  317.         "outputs": 4,
  318.         "inputField": "payload",
  319.         "inputFieldType": "msg",
  320.         "outputField": "payload",
  321.         "outputFieldType": "msg",
  322.         "downValue": "true",
  323.         "downValueType": "bool",
  324.         "upValue": "false",
  325.         "upValueType": "bool",
  326.         "idleValue": "1",
  327.         "buttonEventsConfig": "2b5f554fba088ec9",
  328.         "clickedInterval": null,
  329.         "pressedInterval": null,
  330.         "debounceInterval": null,
  331.         "events": [
  332.             {
  333.                 "type": "clicked"
  334.             },
  335.             {
  336.                 "type": "double_clicked"
  337.             },
  338.             {
  339.                 "type": "triple_clicked"
  340.             },
  341.             {
  342.                 "type": "pressed"
  343.             }
  344.         ],
  345.         "x": 600,
  346.         "y": 180,
  347.         "wires": [
  348.             [],
  349.             [],
  350.             [],
  351.             []
  352.         ]
  353.     },
  354.     {
  355.         "id": "191542cc5f6c8406",
  356.         "type": "button-events",
  357.         "z": "417ed508cf8538a4",
  358.         "name": "",
  359.         "outputs": 4,
  360.         "inputField": "payload",
  361.         "inputFieldType": "msg",
  362.         "outputField": "payload",
  363.         "outputFieldType": "msg",
  364.         "downValue": "true",
  365.         "downValueType": "bool",
  366.         "upValue": "false",
  367.         "upValueType": "bool",
  368.         "idleValue": "1",
  369.         "buttonEventsConfig": "2b5f554fba088ec9",
  370.         "clickedInterval": null,
  371.         "pressedInterval": null,
  372.         "debounceInterval": null,
  373.         "events": [
  374.             {
  375.                 "type": "clicked"
  376.             },
  377.             {
  378.                 "type": "double_clicked"
  379.             },
  380.             {
  381.                 "type": "triple_clicked"
  382.             },
  383.             {
  384.                 "type": "pressed"
  385.             }
  386.         ],
  387.         "x": 600,
  388.         "y": 280,
  389.         "wires": [
  390.             [],
  391.             [],
  392.             [],
  393.             []
  394.         ]
  395.     },
  396.     {
  397.         "id": "5f5b417858c495ec",
  398.         "type": "button-events",
  399.         "z": "417ed508cf8538a4",
  400.         "name": "",
  401.         "outputs": 4,
  402.         "inputField": "payload",
  403.         "inputFieldType": "msg",
  404.         "outputField": "payload",
  405.         "outputFieldType": "msg",
  406.         "downValue": "true",
  407.         "downValueType": "bool",
  408.         "upValue": "false",
  409.         "upValueType": "bool",
  410.         "idleValue": "1",
  411.         "buttonEventsConfig": "2b5f554fba088ec9",
  412.         "clickedInterval": null,
  413.         "pressedInterval": null,
  414.         "debounceInterval": null,
  415.         "events": [
  416.             {
  417.                 "type": "clicked"
  418.             },
  419.             {
  420.                 "type": "double_clicked"
  421.             },
  422.             {
  423.                 "type": "triple_clicked"
  424.             },
  425.             {
  426.                 "type": "pressed"
  427.             }
  428.         ],
  429.         "x": 600,
  430.         "y": 380,
  431.         "wires": [
  432.             [],
  433.             [],
  434.             [],
  435.             []
  436.         ]
  437.     },
  438.     {
  439.         "id": "2b5f554fba088ec9",
  440.         "type": "button-events-config",
  441.         "name": "ShellyI4",
  442.         "clickedInterval": "200",
  443.         "pressedInterval": "750",
  444.         "debounceInterval": "15"
  445.     },
  446.     {
  447.         "id": "f8769fe7895db242",
  448.         "type": "subflow:417ed508cf8538a4",
  449.         "z": "a8f9a50fa0468a1d",
  450.         "name": "",
  451.         "x": 1500,
  452.         "y": 1620,
  453.         "wires": [
  454.             [
  455.                 "ce34bc9faebbca85"
  456.             ],
  457.             [
  458.                 "ce34bc9faebbca85"
  459.             ],
  460.             [
  461.                 "ce34bc9faebbca85"
  462.             ],
  463.             [
  464.                 "ce34bc9faebbca85"
  465.             ]
  466.         ],
  467.         "inputLabels": [
  468.             "mqtt in"
  469.         ],
  470.         "outputLabels": [
  471.             "Button 1",
  472.             "Button 2",
  473.             "Button 3",
  474.             "Button 4"
  475.         ],
  476.         "icon": "node-red-contrib-shelly/shelly.png"
  477.     }
  478. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement