Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "58b181928b360da1",
- "type": "subflow",
- "name": "I4 btn action",
- "info": "",
- "category": "",
- "in": [
- {
- "x": 80,
- "y": 460,
- "wires": [
- {
- "id": "5a8e35321a082689"
- }
- ]
- }
- ],
- "out": [
- {
- "x": 840,
- "y": 60,
- "wires": [
- {
- "id": "c2991fdf334bc78f",
- "port": 0
- }
- ]
- },
- {
- "x": 900,
- "y": 100,
- "wires": [
- {
- "id": "c2991fdf334bc78f",
- "port": 1
- }
- ]
- },
- {
- "x": 840,
- "y": 140,
- "wires": [
- {
- "id": "c2991fdf334bc78f",
- "port": 2
- }
- ]
- },
- {
- "x": 900,
- "y": 180,
- "wires": [
- {
- "id": "c2991fdf334bc78f",
- "port": 3
- }
- ]
- },
- {
- "x": 840,
- "y": 260,
- "wires": [
- {
- "id": "7f7123c5939ead14",
- "port": 0
- }
- ]
- },
- {
- "x": 900,
- "y": 300,
- "wires": [
- {
- "id": "7f7123c5939ead14",
- "port": 1
- }
- ]
- },
- {
- "x": 840,
- "y": 340,
- "wires": [
- {
- "id": "7f7123c5939ead14",
- "port": 2
- }
- ]
- },
- {
- "x": 900,
- "y": 380,
- "wires": [
- {
- "id": "7f7123c5939ead14",
- "port": 3
- }
- ]
- },
- {
- "x": 840,
- "y": 460,
- "wires": [
- {
- "id": "191542cc5f6c8406",
- "port": 0
- }
- ]
- },
- {
- "x": 900,
- "y": 500,
- "wires": [
- {
- "id": "191542cc5f6c8406",
- "port": 1
- }
- ]
- },
- {
- "x": 840,
- "y": 540,
- "wires": [
- {
- "id": "191542cc5f6c8406",
- "port": 2
- }
- ]
- },
- {
- "x": 900,
- "y": 580,
- "wires": [
- {
- "id": "191542cc5f6c8406",
- "port": 3
- }
- ]
- },
- {
- "x": 840,
- "y": 660,
- "wires": [
- {
- "id": "5f5b417858c495ec",
- "port": 0
- }
- ]
- },
- {
- "x": 900,
- "y": 700,
- "wires": [
- {
- "id": "5f5b417858c495ec",
- "port": 1
- }
- ]
- },
- {
- "x": 840,
- "y": 740,
- "wires": [
- {
- "id": "5f5b417858c495ec",
- "port": 2
- }
- ]
- },
- {
- "x": 900,
- "y": 780,
- "wires": [
- {
- "id": "5f5b417858c495ec",
- "port": 3
- }
- ]
- }
- ],
- "env": [],
- "meta": {},
- "color": "#DDAA99"
- },
- {
- "id": "c2991fdf334bc78f",
- "type": "button-events",
- "z": "58b181928b360da1",
- "name": "",
- "outputs": 4,
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "downValue": "true",
- "downValueType": "bool",
- "upValue": "false",
- "upValueType": "bool",
- "idleValue": "1",
- "buttonEventsConfig": "2b5f554fba088ec9",
- "clickedInterval": null,
- "pressedInterval": null,
- "debounceInterval": null,
- "events": [
- {
- "type": "clicked"
- },
- {
- "type": "double_clicked"
- },
- {
- "type": "triple_clicked"
- },
- {
- "type": "pressed"
- }
- ],
- "x": 600,
- "y": 320,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "5a8e35321a082689",
- "type": "switch",
- "z": "58b181928b360da1",
- "name": "button",
- "property": "payload.params",
- "propertyType": "msg",
- "rules": [
- {
- "t": "hask",
- "v": "input:0",
- "vt": "str"
- },
- {
- "t": "hask",
- "v": "input:1",
- "vt": "str"
- },
- {
- "t": "hask",
- "v": "input:2",
- "vt": "str"
- },
- {
- "t": "hask",
- "v": "input:3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 4,
- "x": 190,
- "y": 460,
- "wires": [
- [
- "9c8a8aa9ea574125"
- ],
- [
- "3a42bb71265f34bf"
- ],
- [
- "f8b1bd70338f73cc"
- ],
- [
- "40ca29a9d69c1764"
- ]
- ]
- },
- {
- "id": "9c8a8aa9ea574125",
- "type": "change",
- "z": "58b181928b360da1",
- "name": "to payload",
- "rules": [
- {
- "t": "move",
- "p": "payload.params[\"input:0\"].state",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 390,
- "y": 380,
- "wires": [
- [
- "c2991fdf334bc78f"
- ]
- ]
- },
- {
- "id": "3a42bb71265f34bf",
- "type": "change",
- "z": "58b181928b360da1",
- "name": "to payload",
- "rules": [
- {
- "t": "move",
- "p": "payload.params[\"input:1\"].state",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 390,
- "y": 440,
- "wires": [
- [
- "7f7123c5939ead14"
- ]
- ]
- },
- {
- "id": "f8b1bd70338f73cc",
- "type": "change",
- "z": "58b181928b360da1",
- "name": "to payload",
- "rules": [
- {
- "t": "move",
- "p": "payload.params[\"input:2\"].state",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 390,
- "y": 500,
- "wires": [
- [
- "191542cc5f6c8406"
- ]
- ]
- },
- {
- "id": "40ca29a9d69c1764",
- "type": "change",
- "z": "58b181928b360da1",
- "name": "to payload",
- "rules": [
- {
- "t": "move",
- "p": "payload.params[\"input:3\"].state",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 390,
- "y": 560,
- "wires": [
- [
- "5f5b417858c495ec"
- ]
- ]
- },
- {
- "id": "7f7123c5939ead14",
- "type": "button-events",
- "z": "58b181928b360da1",
- "name": "",
- "outputs": 4,
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "downValue": "true",
- "downValueType": "bool",
- "upValue": "false",
- "upValueType": "bool",
- "idleValue": "1",
- "buttonEventsConfig": "2b5f554fba088ec9",
- "clickedInterval": null,
- "pressedInterval": null,
- "debounceInterval": null,
- "events": [
- {
- "type": "clicked"
- },
- {
- "type": "double_clicked"
- },
- {
- "type": "triple_clicked"
- },
- {
- "type": "pressed"
- }
- ],
- "x": 600,
- "y": 420,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "191542cc5f6c8406",
- "type": "button-events",
- "z": "58b181928b360da1",
- "name": "",
- "outputs": 4,
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "downValue": "true",
- "downValueType": "bool",
- "upValue": "false",
- "upValueType": "bool",
- "idleValue": "1",
- "buttonEventsConfig": "2b5f554fba088ec9",
- "clickedInterval": null,
- "pressedInterval": null,
- "debounceInterval": null,
- "events": [
- {
- "type": "clicked"
- },
- {
- "type": "double_clicked"
- },
- {
- "type": "triple_clicked"
- },
- {
- "type": "pressed"
- }
- ],
- "x": 600,
- "y": 520,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "5f5b417858c495ec",
- "type": "button-events",
- "z": "58b181928b360da1",
- "name": "",
- "outputs": 4,
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "downValue": "true",
- "downValueType": "bool",
- "upValue": "false",
- "upValueType": "bool",
- "idleValue": "1",
- "buttonEventsConfig": "2b5f554fba088ec9",
- "clickedInterval": null,
- "pressedInterval": null,
- "debounceInterval": null,
- "events": [
- {
- "type": "clicked"
- },
- {
- "type": "double_clicked"
- },
- {
- "type": "triple_clicked"
- },
- {
- "type": "pressed"
- }
- ],
- "x": 600,
- "y": 620,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "2b5f554fba088ec9",
- "type": "button-events-config",
- "name": "ShellyI4",
- "clickedInterval": "200",
- "pressedInterval": "750",
- "debounceInterval": "15"
- },
- {
- "id": "31da8329692b364b",
- "type": "subflow:58b181928b360da1",
- "z": "a8f9a50fa0468a1d",
- "name": "",
- "x": 1490,
- "y": 1620,
- "wires": [
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ],
- [],
- [],
- [],
- [],
- [],
- [],
- [],
- [],
- [],
- [],
- [],
- []
- ],
- "inputLabels": [
- "mqtt in"
- ],
- "outputLabels": [
- "Btn1 clicked",
- "Btn1 double clicked",
- "Btn1 triple clicked",
- "Btn1 pressed",
- "Btn2 clicked",
- "Btn2 double clicked",
- "Btn2 triple clicked",
- "Btn2 pressed",
- "Btn3 clicked",
- "Btn3 double clicked",
- "Btn3 triple clicked",
- "Btn3 pressed",
- "Btn4 clicked",
- "Btn4 double clicked",
- "Btn4 triple clicked",
- "Btn4 pressed"
- ],
- "icon": "node-red-contrib-shelly/shelly.png"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement