Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "ab45cd03.bafba",
- "type": "mqtt out",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "/home/Zo18/Licht/Charlie",
- "qos": "0",
- "retain": "true",
- "broker": "ed83f9bb.ce19e8",
- "x": 750,
- "y": 720,
- "wires": []
- },
- {
- "id": "47c6c5f.0e5f13c",
- "type": "mqtt in",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "/home/Zo18/Licht/Charlie",
- "qos": "2",
- "broker": "ed83f9bb.ce19e8",
- "x": 750,
- "y": 920,
- "wires": [
- [
- "daa682af.6abf5",
- "c3ac046a.d5a5e8"
- ]
- ]
- },
- {
- "id": "daa682af.6abf5",
- "type": "http request",
- "z": "b128db8e.4f5468",
- "name": "Zo18-Plug02-LED",
- "method": "GET",
- "ret": "txt",
- "paytoqs": false,
- "url": "http://192.168.123.132/tools?cmd=GPIO,14,{{{payload}}}",
- "tls": "",
- "proxy": "",
- "x": 1022,
- "y": 921,
- "wires": [
- []
- ]
- },
- {
- "id": "c3ac046a.d5a5e8",
- "type": "function",
- "z": "b128db8e.4f5468",
- "name": "Inverts msg.payload",
- "func": "if (msg.payload == \"1\") {\n msg = {payload:\"0\"};\n}\n else {\n msg = {payload:\"1\"};\n}\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 760,
- "y": 860,
- "wires": [
- [
- "de91bdd1.3da64"
- ]
- ]
- },
- {
- "id": "de91bdd1.3da64",
- "type": "http request",
- "z": "b128db8e.4f5468",
- "name": "Zo18-Plug02-Relais",
- "method": "GET",
- "ret": "txt",
- "paytoqs": false,
- "url": "http://192.168.123.132/tools?cmd=GPIO,12,{{{payload}}}",
- "tls": "",
- "proxy": "",
- "x": 1032,
- "y": 861,
- "wires": [
- []
- ]
- },
- {
- "id": "3171fda4.c18312",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "x": 210,
- "y": 940,
- "wires": [
- [
- "cf0ac5c9.768328"
- ]
- ]
- },
- {
- "id": "74d2e8b3.261a58",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Off",
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "x": 210,
- "y": 900,
- "wires": [
- [
- "cf0ac5c9.768328"
- ]
- ]
- },
- {
- "id": "50524ac6.6957c4",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "x": 207,
- "y": 761,
- "wires": [
- [
- "ca6e9d66.becd4"
- ]
- ]
- },
- {
- "id": "a11b4275.c7518",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Off",
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "x": 207,
- "y": 721,
- "wires": [
- [
- "ca6e9d66.becd4"
- ]
- ]
- },
- {
- "id": "d3001cfe.56513",
- "type": "comment",
- "z": "b128db8e.4f5468",
- "name": "Licht Charllie (Flur)",
- "info": "",
- "x": 130,
- "y": 660,
- "wires": []
- },
- {
- "id": "ca6e9d66.becd4",
- "type": "schedex",
- "z": "b128db8e.4f5468",
- "name": "Flur Licht (morgens)",
- "suspended": false,
- "lat": "48.8124353",
- "lon": "8.9792637",
- "ontime": "5:30",
- "ontopic": "",
- "onpayload": "1",
- "onoffset": 0,
- "onrandomoffset": 0,
- "offtime": "5:50",
- "offtopic": "",
- "offpayload": "0",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": false,
- "sun": false,
- "x": 440,
- "y": 720,
- "wires": [
- [
- "ab45cd03.bafba"
- ]
- ]
- },
- {
- "id": "cf0ac5c9.768328",
- "type": "schedex",
- "z": "b128db8e.4f5468",
- "name": "Flur Licht (abends)",
- "suspended": false,
- "lat": "48.8124353",
- "lon": "8.9792637",
- "ontime": "sunset",
- "ontopic": "",
- "onpayload": "1",
- "onoffset": 0,
- "onrandomoffset": 0,
- "offtime": "0:30",
- "offtopic": "",
- "offpayload": "0",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true,
- "x": 430,
- "y": 900,
- "wires": [
- [
- "ab45cd03.bafba"
- ]
- ]
- },
- {
- "id": "c7b275e3.900de8",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Resume Schedule",
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 170,
- "y": 840,
- "wires": [
- [
- "ca6e9d66.becd4"
- ]
- ]
- },
- {
- "id": "c7a6cd03.ec53b",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Suspend",
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 200,
- "y": 800,
- "wires": [
- [
- "ca6e9d66.becd4"
- ]
- ]
- },
- {
- "id": "6fb8cadf.e92b34",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Resume Schedule",
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 170,
- "y": 1020,
- "wires": [
- [
- "cf0ac5c9.768328"
- ]
- ]
- },
- {
- "id": "47d9f7e0.476e28",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Suspend",
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 200,
- "y": 980,
- "wires": [
- [
- "cf0ac5c9.768328"
- ]
- ]
- },
- {
- "id": "9441404.b5bbac",
- "type": "mqtt in",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "/home/Zo18/RF-Bridge01/relay/3",
- "qos": "2",
- "datatype": "auto",
- "broker": "ed83f9bb.ce19e8",
- "x": 190,
- "y": 1140,
- "wires": [
- [
- "b3b2bfbd.8aa0b"
- ]
- ]
- },
- {
- "id": "ee6df6a9.64f128",
- "type": "trigger",
- "z": "b128db8e.4f5468",
- "op1": "1",
- "op2": "0",
- "op1type": "str",
- "op2type": "str",
- "duration": "2",
- "extend": true,
- "units": "min",
- "reset": "off",
- "bytopic": "all",
- "name": "Pulse",
- "x": 550,
- "y": 1140,
- "wires": [
- [
- "72e94714.7de818"
- ]
- ]
- },
- {
- "id": "b3b2bfbd.8aa0b",
- "type": "switch",
- "z": "b128db8e.4f5468",
- "name": "ON",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 410,
- "y": 1140,
- "wires": [
- [
- "ee6df6a9.64f128"
- ]
- ]
- },
- {
- "id": "26cee9d0.478d46",
- "type": "inject",
- "z": "b128db8e.4f5468",
- "name": "Pulse Off",
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 260,
- "y": 1200,
- "wires": [
- [
- "ee6df6a9.64f128"
- ]
- ]
- },
- {
- "id": "7794bd4e.38dcd4",
- "type": "mqtt in",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "/home/Zo18/AutoLicht/Flur",
- "qos": "2",
- "datatype": "auto",
- "broker": "ed83f9bb.ce19e8",
- "x": 750,
- "y": 800,
- "wires": [
- [
- "c3ac046a.d5a5e8",
- "daa682af.6abf5"
- ]
- ]
- },
- {
- "id": "72e94714.7de818",
- "type": "mqtt out",
- "z": "b128db8e.4f5468",
- "name": "",
- "topic": "/home/Zo18/AutoLicht/Flur",
- "qos": "",
- "retain": "",
- "broker": "ed83f9bb.ce19e8",
- "x": 800,
- "y": 1140,
- "wires": []
- },
- {
- "id": "c152e8d4.d1c698",
- "type": "fake-wemo",
- "z": "b128db8e.4f5468",
- "initialState": "false",
- "initialStateType": "bool",
- "name": "Charly",
- "friendlyName": "Charly",
- "interface": "eth0",
- "port": "40102",
- "onTopic": "",
- "onPayload": "on",
- "offTopic": "",
- "offPayload": "off",
- "x": 210,
- "y": 1060,
- "wires": [
- [
- "cf0ac5c9.768328"
- ]
- ]
- },
- {
- "id": "ed83f9bb.ce19e8",
- "type": "mqtt-broker",
- "z": "",
- "broker": "192.168.123.40",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": "",
- "willTopic": "",
- "willQos": "0",
- "willPayload": ""
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement