Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "417ed508cf8538a4",
- "type": "subflow",
- "name": "Shelly I4",
- "info": "",
- "category": "",
- "in": [
- {
- "x": 60,
- "y": 220,
- "wires": [
- {
- "id": "5a8e35321a082689"
- }
- ]
- }
- ],
- "out": [
- {
- "x": 760,
- "y": 80,
- "wires": [
- {
- "id": "c2991fdf334bc78f",
- "port": 3
- },
- {
- "id": "c2991fdf334bc78f",
- "port": 2
- },
- {
- "id": "c2991fdf334bc78f",
- "port": 1
- },
- {
- "id": "c2991fdf334bc78f",
- "port": 0
- }
- ]
- },
- {
- "x": 760,
- "y": 180,
- "wires": [
- {
- "id": "7f7123c5939ead14",
- "port": 3
- },
- {
- "id": "7f7123c5939ead14",
- "port": 2
- },
- {
- "id": "7f7123c5939ead14",
- "port": 1
- },
- {
- "id": "7f7123c5939ead14",
- "port": 0
- }
- ]
- },
- {
- "x": 760,
- "y": 280,
- "wires": [
- {
- "id": "191542cc5f6c8406",
- "port": 0
- },
- {
- "id": "191542cc5f6c8406",
- "port": 1
- },
- {
- "id": "191542cc5f6c8406",
- "port": 2
- },
- {
- "id": "191542cc5f6c8406",
- "port": 3
- }
- ]
- },
- {
- "x": 760,
- "y": 380,
- "wires": [
- {
- "id": "5f5b417858c495ec",
- "port": 0
- },
- {
- "id": "5f5b417858c495ec",
- "port": 1
- },
- {
- "id": "5f5b417858c495ec",
- "port": 2
- },
- {
- "id": "5f5b417858c495ec",
- "port": 3
- }
- ]
- }
- ],
- "env": [],
- "meta": {},
- "color": "#DDAA99"
- },
- {
- "id": "c2991fdf334bc78f",
- "type": "button-events",
- "z": "417ed508cf8538a4",
- "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": 80,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "5a8e35321a082689",
- "type": "switch",
- "z": "417ed508cf8538a4",
- "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": 220,
- "wires": [
- [
- "9c8a8aa9ea574125"
- ],
- [
- "3a42bb71265f34bf"
- ],
- [
- "f8b1bd70338f73cc"
- ],
- [
- "40ca29a9d69c1764"
- ]
- ]
- },
- {
- "id": "9c8a8aa9ea574125",
- "type": "change",
- "z": "417ed508cf8538a4",
- "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": 140,
- "wires": [
- [
- "c2991fdf334bc78f"
- ]
- ]
- },
- {
- "id": "3a42bb71265f34bf",
- "type": "change",
- "z": "417ed508cf8538a4",
- "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": 200,
- "wires": [
- [
- "7f7123c5939ead14"
- ]
- ]
- },
- {
- "id": "f8b1bd70338f73cc",
- "type": "change",
- "z": "417ed508cf8538a4",
- "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": 260,
- "wires": [
- [
- "191542cc5f6c8406"
- ]
- ]
- },
- {
- "id": "40ca29a9d69c1764",
- "type": "change",
- "z": "417ed508cf8538a4",
- "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": 320,
- "wires": [
- [
- "5f5b417858c495ec"
- ]
- ]
- },
- {
- "id": "7f7123c5939ead14",
- "type": "button-events",
- "z": "417ed508cf8538a4",
- "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": 180,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "191542cc5f6c8406",
- "type": "button-events",
- "z": "417ed508cf8538a4",
- "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": 280,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "5f5b417858c495ec",
- "type": "button-events",
- "z": "417ed508cf8538a4",
- "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": 380,
- "wires": [
- [],
- [],
- [],
- []
- ]
- },
- {
- "id": "2b5f554fba088ec9",
- "type": "button-events-config",
- "name": "ShellyI4",
- "clickedInterval": "200",
- "pressedInterval": "750",
- "debounceInterval": "15"
- },
- {
- "id": "f8769fe7895db242",
- "type": "subflow:417ed508cf8538a4",
- "z": "a8f9a50fa0468a1d",
- "name": "",
- "x": 1500,
- "y": 1620,
- "wires": [
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ],
- [
- "ce34bc9faebbca85"
- ]
- ],
- "inputLabels": [
- "mqtt in"
- ],
- "outputLabels": [
- "Button 1",
- "Button 2",
- "Button 3",
- "Button 4"
- ],
- "icon": "node-red-contrib-shelly/shelly.png"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement