[
{
"id": "881247eedaf45dd2",
"type": "tab",
"label": "Flow 4",
"disabled": false,
"info": "",
"env": []
},
{
"id": "95e1145bc81a2c92",
"type": "debug",
"z": "881247eedaf45dd2",
"name": "Device Data",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1150,
"y": 660,
"wires": []
},
{
"id": "856113dda2fb1f59",
"type": "debug",
"z": "881247eedaf45dd2",
"name": "Node State",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1150,
"y": 740,
"wires": []
},
{
"id": "de87126daa5b3d32",
"type": "function",
"z": "881247eedaf45dd2",
"name": "",
"func": "msg.payload ={\n //dps : 1,\n dps: 20,\n set : msg.payload\n}\n\n/*\n\n */\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 880,
"y": 700,
"wires": [
[
"ed51085275c4c2de"
]
]
},
{
"id": "ed51085275c4c2de",
"type": "tuya-smart-device",
"z": "881247eedaf45dd2",
"deviceName": "Tuya",
"disableAutoStart": false,
"deviceId": "",
"deviceKey": "123456789",
"deviceIp": "10.1.1.168",
"retryTimeout": 1000,
"findTimeout": "2000",
"tuyaVersion": "3.0",
"eventMode": "event-both",
"x": 1010,
"y": 700,
"wires": [
[
"95e1145bc81a2c92"
],
[
"856113dda2fb1f59"
]
]
},
{
"id": "e14260a2f7a7650f",
"type": "http in",
"z": "881247eedaf45dd2",
"name": "",
"url": "/i3-button-1",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 400,
"y": 80,
"wires": [
[
"91e4188f86bee7e8"
]
]
},
{
"id": "91e4188f86bee7e8",
"type": "function",
"z": "881247eedaf45dd2",
"name": "",
"func": "msg.payload=\"true\"\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 80,
"wires": [
[
"274c0cd76815a720",
"1d244b908b48c616",
"74c6376bba0a3c50"
]
]
},
{
"id": "82d49993d7826a50",
"type": "powerswitch",
"z": "881247eedaf45dd2",
"name": "",
"toggleTopic": "",
"togglePayload": "true",
"togglePayloadType": "bool",
"motionTopic": "",
"motionPayloadOn": "true",
"motionPayloadOnType": "bool",
"motionPayloadOff": "false",
"motionPayloadOffType": "bool",
"motionTimeoutValue": "3",
"motionTimeoutUnit": "s",
"feedbackActive": false,
"feedbackTopic": "",
"feedbackPayloadOn": "true",
"feedbackPayloadOnType": "bool",
"feedbackPayloadOff": "false",
"feedbackPayloadOffType": "bool",
"forceTopic": "",
"forcePayloadOn": "true",
"forcePayloadOnType": "bool",
"forcePayloadOff": "false",
"forcePayloadOffType": "bool",
"absTimeoutActive": true,
"absTimeoutValue": "6",
"absTimeoutUnit": "h",
"x": 720,
"y": 700,
"wires": [
[
"de87126daa5b3d32"
]
]
},
{
"id": "1d244b908b48c616",
"type": "toggle",
"z": "881247eedaf45dd2",
"name": "",
"onOffTopic": "",
"onValue": "true",
"onType": "bool",
"offValue": "false",
"offType": "bool",
"toggleTopic": "",
"toggleValue": "",
"toggleType": "any",
"passOnOff": "ifChanged",
"x": 730,
"y": 500,
"wires": [
[
"de87126daa5b3d32",
"74c6376bba0a3c50"
]
]
},
{
"id": "74a84814.4ecc6",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "Taster 1",
"payloadType": "str",
"x": 530,
"y": 500,
"wires": [
[
"1d244b908b48c616"
]
]
},
{
"id": "c088c2d7.67dc1",
"type": "comment",
"z": "881247eedaf45dd2",
"name": "Toggle usage",
"info": "",
"x": 530,
"y": 460,
"wires": []
},
{
"id": "167c78e0d9e79eaf",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "toggle",
"props": [
{
"p": "topic",
"vt": "str"
},
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "toggle",
"payload": "true",
"payloadType": "bool",
"x": 530,
"y": 660,
"wires": [
[
"82d49993d7826a50"
]
]
},
{
"id": "e03a91af9ed57134",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "force",
"props": [
{
"p": "topic",
"vt": "str"
},
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "force",
"payload": "false",
"payloadType": "bool",
"x": 530,
"y": 700,
"wires": [
[
"82d49993d7826a50"
]
]
},
{
"id": "17a1ba85cb887d6f",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "motion",
"props": [
{
"p": "topic",
"vt": "str"
},
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "motion",
"payload": "true",
"payloadType": "bool",
"x": 530,
"y": 740,
"wires": [
[
"82d49993d7826a50"
]
]
},
{
"id": "04764ea3218021fb",
"type": "comment",
"z": "881247eedaf45dd2",
"name": "PowerSwitch usage",
"info": "",
"x": 550,
"y": 620,
"wires": []
},
{
"id": "274c0cd76815a720",
"type": "http response",
"z": "881247eedaf45dd2",
"name": "",
"statusCode": "",
"headers": {},
"x": 710,
"y": 80,
"wires": []
},
{
"id": "74c6376bba0a3c50",
"type": "debug",
"z": "881247eedaf45dd2",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 300,
"wires": []
},
{
"id": "45588195fd2c918d",
"type": "comment",
"z": "881247eedaf45dd2",
"name": "Create an HTTP Endpoint",
"info": "",
"x": 430,
"y": 20,
"wires": []
},
{
"id": "7d6cba96f932f8cb",
"type": "shelly-button",
"z": "881247eedaf45dd2",
"hostname": "10.1.1.98",
"description": "i3",
"pollinginterval": 1000,
"pollstatus": false,
"outputs": 1,
"x": 530,
"y": 300,
"wires": [
[
"74c6376bba0a3c50",
"1d244b908b48c616"
]
]
},
{
"id": "a17ea2abb2724a98",
"type": "function",
"z": "881247eedaf45dd2",
"name": "short push",
"func": "msg.payload = {\n input : 0,\n event : \"S\"\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 250,
"y": 300,
"wires": [
[
"7d6cba96f932f8cb"
]
]
},
{
"id": "b99ae84b801779a3",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "1 SP",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 74.99413108825684,
"y": 300.193359375,
"wires": [
[
"a17ea2abb2724a98"
]
]
},
{
"id": "fcef123fb6ba2ba8",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "Poll Status",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 100,
"y": 240,
"wires": [
[
"7d6cba96f932f8cb"
]
]
},
{
"id": "c34aed6add8933b9",
"type": "function",
"z": "881247eedaf45dd2",
"name": "double short push",
"func": "msg.payload = {\n input : 0,\n event : 'SS'\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 360,
"wires": [
[
"7d6cba96f932f8cb"
]
]
},
{
"id": "7e8fcda6923a7de5",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "2 DSP",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 74.99413108825684,
"y": 360.193359375,
"wires": [
[
"c34aed6add8933b9"
]
]
},
{
"id": "33ccf901c5c6d9e6",
"type": "function",
"z": "881247eedaf45dd2",
"name": "triple short push",
"func": "msg.payload = {\n input : 0,\n event : 'SSS'\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 260,
"y": 420,
"wires": [
[
"7d6cba96f932f8cb"
]
]
},
{
"id": "8d2fed0ad18756af",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "3 SP",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 74.99413108825684,
"y": 420.193359375,
"wires": [
[
"33ccf901c5c6d9e6"
]
]
},
{
"id": "ba78ece2e46076bd",
"type": "function",
"z": "881247eedaf45dd2",
"name": "long push",
"func": "msg.payload = {\n input : 0,\n event : 'L'\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 240,
"y": 480,
"wires": [
[
"7d6cba96f932f8cb"
]
]
},
{
"id": "ac84c3d657c36ca0",
"type": "inject",
"z": "881247eedaf45dd2",
"name": "3 LP",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 74.99413108825684,
"y": 480.193359375,
"wires": [
[
"ba78ece2e46076bd"
]
]
},
{
"id": "4f8d1b69a5d25ecd",
"type": "comment",
"z": "881247eedaf45dd2",
"name": "-----oder-----",
"info": "",
"x": 530,
"y": 560,
"wires": []
},
{
"id": "149aa57047cc3eb7",
"type": "mqtt in",
"z": "881247eedaf45dd2",
"name": "",
"topic": "shellies/shellyix3-XXXXXXX/#",
"qos": "2",
"datatype": "auto",
"broker": "18f755773f28321b",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 360,
"y": 180,
"wires": [
[
"74c6376bba0a3c50"
]
]
},
{
"id": "18f755773f28321b",
"type": "mqtt-broker",
"name": "",
"broker": "10.1.1.166",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
}
]
Alles anzeigen