Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "bcc64ec3.65567",
- "type": "tab",
- "label": "Licht Flur",
- "disabled": false,
- "info": ""
- },
- {
- "id": "265b10ee.a0bdf",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "x": 190,
- "y": 300,
- "wires": [
- [
- "82552f7d.509a8"
- ]
- ]
- },
- {
- "id": "d007ed4e.f8ce",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "x": 190,
- "y": 260,
- "wires": [
- [
- "82552f7d.509a8"
- ]
- ]
- },
- {
- "id": "6826f33d.8cc40c",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "x": 187,
- "y": 121,
- "wires": [
- [
- "3311704d.12916"
- ]
- ]
- },
- {
- "id": "1a1e9d45.659fd3",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "x": 187,
- "y": 81,
- "wires": [
- [
- "3311704d.12916"
- ]
- ]
- },
- {
- "id": "f2d36fb.1b95f9",
- "type": "comment",
- "z": "bcc64ec3.65567",
- "name": "Licht Charllie (Flur)",
- "info": "",
- "x": 110,
- "y": 20,
- "wires": []
- },
- {
- "id": "879d686e.2b4248",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Resume Schedule",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "x": 150,
- "y": 200,
- "wires": [
- [
- "3311704d.12916"
- ]
- ]
- },
- {
- "id": "fe02c5f7.96fd78",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Suspend",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "x": 180,
- "y": 160,
- "wires": [
- [
- "3311704d.12916"
- ]
- ]
- },
- {
- "id": "206bbcb4.c7eff4",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Resume Schedule",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "x": 150,
- "y": 380,
- "wires": [
- [
- "82552f7d.509a8"
- ]
- ]
- },
- {
- "id": "c9eb522f.3a9d5",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Suspend",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "x": 180,
- "y": 340,
- "wires": [
- [
- "82552f7d.509a8"
- ]
- ]
- },
- {
- "id": "e04c8213.b7e47",
- "type": "mqtt in",
- "z": "bcc64ec3.65567",
- "name": "",
- "topic": "/home/Koss/RF-Bridge01/relay/3",
- "qos": "2",
- "datatype": "auto",
- "broker": "595dfa51.2c1224",
- "nl": false,
- "rap": false,
- "x": 150,
- "y": 520,
- "wires": [
- []
- ]
- },
- {
- "id": "9bc37d65.2dafe",
- "type": "trigger",
- "z": "bcc64ec3.65567",
- "name": "Pulse 2 min.",
- "op1": "1",
- "op2": "0",
- "op1type": "str",
- "op2type": "str",
- "duration": "2",
- "extend": true,
- "overrideDelay": false,
- "units": "min",
- "reset": "off",
- "bytopic": "all",
- "topic": "topic",
- "outputs": 1,
- "x": 570,
- "y": 540,
- "wires": [
- [
- "7b9168a3.d09a48"
- ]
- ]
- },
- {
- "id": "7b9168a3.d09a48",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "0",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 750,
- "y": 540,
- "wires": [
- [
- "eb486e23.1d7b3"
- ],
- [
- "686c213c.0d67d"
- ]
- ]
- },
- {
- "id": "5ec7728a.260b2c",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "Messages",
- "property": "payload.action",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "brightness_up_click",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "brightness_down_click",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "brightness_up_release",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "brightness_up_hold",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "brightness_down_hold",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "brightness_down_release",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 6,
- "x": 390,
- "y": 840,
- "wires": [
- [
- "62f283d6.e6a9cc"
- ],
- [
- "cb7fe390.05aac"
- ],
- [
- "24d1d455.09d35c"
- ],
- [
- "d12a08e4.b57008",
- "ea4d7beb.eb7ba8"
- ],
- [
- "38f7319.c10dece",
- "ea4d7beb.eb7ba8"
- ],
- [
- "24d1d455.09d35c"
- ]
- ]
- },
- {
- "id": "d12a08e4.b57008",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Brightness up",
- "func": "var step = global.get(\"Step\");\nvar brightness = global.get(\"Hue-Flur-Brightness\");\nvar ColorTemp = global.get(\"Hue-Flur-ColorTemp\");\n\nif(brightness > 0){\n brightness = brightness + step;\n global.set(\"Hue-Flur-Brightness\",brightness);\n\t}\n\t\nif(brightness >= 255){\n brightness = 254;\n flow.set('press', false);\n global.set(\"Hue-Flur-Brightness\",brightness);\n }\n\n// msg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 720,
- "y": 900,
- "wires": [
- [
- "fb2c6aed.bf3388",
- "1114cb41.f25cf5",
- "f5daffd6.7364"
- ]
- ]
- },
- {
- "id": "38f7319.c10dece",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Brightness down",
- "func": "var step = global.get(\"Step\");\nvar brightness = global.get(\"Hue-Flur-Brightness\");\nvar ColorTemp = global.get(\"Hue-Flur-ColorTemp\");\n\nif(brightness <= 255){\n brightness = brightness - step; \n global.set(\"Hue-Flur-Brightness\",brightness);\n\t}\n\t\nif(brightness <= 0){\n brightness = 1;\n flow.set('press', false);\n global.set(\"Hue-Flur-Brightness\",brightness);\n }\n\n// msg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 710,
- "y": 980,
- "wires": [
- [
- "e48bfa7c.fac988",
- "f5daffd6.7364",
- "1114cb41.f25cf5"
- ]
- ]
- },
- {
- "id": "ac3954fd.8c5348",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "Control loop",
- "property": "press",
- "propertyType": "flow",
- "rules": [
- {
- "t": "true"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1130,
- "y": 900,
- "wires": [
- [
- "38f7319.c10dece"
- ]
- ]
- },
- {
- "id": "21c8571d.da85b8",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "Control loop",
- "property": "press",
- "propertyType": "flow",
- "rules": [
- {
- "t": "true"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1130,
- "y": 980,
- "wires": [
- [
- "d12a08e4.b57008"
- ]
- ]
- },
- {
- "id": "fb2c6aed.bf3388",
- "type": "delay",
- "z": "bcc64ec3.65567",
- "name": "",
- "pauseType": "delay",
- "timeout": "100",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 950,
- "y": 980,
- "wires": [
- [
- "21c8571d.da85b8"
- ]
- ]
- },
- {
- "id": "e48bfa7c.fac988",
- "type": "delay",
- "z": "bcc64ec3.65567",
- "name": "",
- "pauseType": "delay",
- "timeout": "100",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 950,
- "y": 900,
- "wires": [
- [
- "ac3954fd.8c5348"
- ]
- ]
- },
- {
- "id": "ea4d7beb.eb7ba8",
- "type": "change",
- "z": "bcc64ec3.65567",
- "name": "start",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 750,
- "y": 800,
- "wires": [
- [
- "e7b3fa52.76b158"
- ]
- ]
- },
- {
- "id": "24d1d455.09d35c",
- "type": "change",
- "z": "bcc64ec3.65567",
- "name": "stop",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 750,
- "y": 840,
- "wires": [
- [
- "e7b3fa52.76b158"
- ]
- ]
- },
- {
- "id": "e7b3fa52.76b158",
- "type": "change",
- "z": "bcc64ec3.65567",
- "name": "Control the loop",
- "rules": [
- {
- "t": "set",
- "p": "press",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1140,
- "y": 820,
- "wires": [
- []
- ]
- },
- {
- "id": "62f283d6.e6a9cc",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "ON",
- "func": "var step = global.get(\"Step\");\nvar brightness = global.get(\"Hue-Flur-Brightness\");\nvar ColorTemp = global.get(\"Hue-Flur-ColorTemp\");\n\n// msg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 750,
- "y": 660,
- "wires": [
- [
- "1114cb41.f25cf5",
- "f5daffd6.7364"
- ]
- ]
- },
- {
- "id": "cb7fe390.05aac",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "OFF",
- "func": "var step = global.get(\"Step\");\nvar brightness = global.get(\"Hue-Flur-Brightness\");\nvar ColorTemp = global.get(\"Hue-Flur-ColorTemp\");\n\n// msg.payload = {\"state\":\"OFF\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nmsg.payload = {\"state\":\"OFF\",\"brightness\":brightness};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 750,
- "y": 720,
- "wires": [
- [
- "1114cb41.f25cf5",
- "f5daffd6.7364"
- ]
- ]
- },
- {
- "id": "c32638d5.92f2b8",
- "type": "mqtt in",
- "z": "bcc64ec3.65567",
- "name": "IKEA Button",
- "topic": "/home/zigbee/Ikea-Button",
- "qos": "1",
- "datatype": "json",
- "broker": "595dfa51.2c1224",
- "x": 110,
- "y": 840,
- "wires": [
- [
- "5ec7728a.260b2c"
- ]
- ]
- },
- {
- "id": "667250dc.f0ace",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "props": [
- {
- "p": "payload"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": true,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 130,
- "y": 1080,
- "wires": [
- [
- "bdb52d1e.a4bdb"
- ]
- ]
- },
- {
- "id": "54f65de3.efd854",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 710,
- "y": 1080,
- "wires": []
- },
- {
- "id": "bdb52d1e.a4bdb",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "global.set(\"Step\",8);\n\n// Ikea Schlazi\nglobal.set(\"IKEA-Schlazi-Brightness\",127);\nglobal.set(\"IKEA-Schlazi-ColorTemp\",155);\n\n// Hue Flur\nglobal.set(\"Hue-Flur-Brightness\",127);\nglobal.set(\"Hue-Flur-ColorTemp\",155);\n\n// Osram-Kueche\nglobal.set(\"Osram-Kueche-Brightness\",127);\nglobal.set(\"Osram-Kueche-ColorTemp\",155);\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 440,
- "y": 1080,
- "wires": [
- [
- "54f65de3.efd854"
- ]
- ]
- },
- {
- "id": "6fb9230e.8495cc",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Hue-Flur-Nacht",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 140,
- "y": 1420,
- "wires": [
- [
- "a8b55ef5.c9be9"
- ]
- ]
- },
- {
- "id": "a8b55ef5.c9be9",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Set Hue-Flur and Osram-Flur to 2",
- "func": "global.set(\"Hue-Flur-Brightness\",2);\nglobal.set(\"Hue-Flur-ColorTemp\",454);\n\nglobal.set(\"Osram-Flur-Brightness\",2);\nglobal.set(\"Osram-Flur-ColorTemp\",454);\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 760,
- "y": 1540,
- "wires": [
- [
- "950cb22379637a8a"
- ]
- ]
- },
- {
- "id": "acc3cfa1.3e5e6",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Set Hue-Flur and Osram-Flur to 255",
- "func": "global.set(\"Hue-Flur-Brightness\",160);\nglobal.set(\"Hue-Flur-ColorTemp\",155);\n\nglobal.set(\"Osram-Flur-Brightness\",160);\nglobal.set(\"Osram-Flur-ColorTemp\",155);\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 770,
- "y": 1260,
- "wires": [
- [
- "54f68562.70893c",
- "2af8024b9060eaee"
- ]
- ]
- },
- {
- "id": "54f68562.70893c",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "df1c0dcd.655ff"
- ],
- "x": 1015,
- "y": 1220,
- "wires": []
- },
- {
- "id": "d0131704.1ae748",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "df1c0dcd.655ff"
- ],
- "x": 1155,
- "y": 1520,
- "wires": []
- },
- {
- "id": "94fd7684.689ba8",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "IKEA-Flur-On",
- "links": [
- "510c7a5.0f1ec84",
- "e6845af6.c3c7d8",
- "d61b338f26cd3223"
- ],
- "x": 615,
- "y": 620,
- "wires": [
- [
- "62f283d6.e6a9cc"
- ]
- ]
- },
- {
- "id": "df1c0dcd.655ff",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "IKEA-Flur-Off",
- "links": [
- "54f68562.70893c",
- "d0131704.1ae748"
- ],
- "x": 615,
- "y": 780,
- "wires": [
- [
- "cb7fe390.05aac"
- ]
- ]
- },
- {
- "id": "3311704d.12916",
- "type": "schedex",
- "z": "bcc64ec3.65567",
- "name": "Flur Licht (morgens)",
- "passthroughunhandled": false,
- "suspended": true,
- "lat": "51.4987183",
- "lon": "13.2259348",
- "ontime": "5:30",
- "ontopic": "",
- "onpayload": "1",
- "onoffset": 0,
- "onrandomoffset": 0,
- "offtime": "5:55",
- "offtopic": "",
- "offpayload": "0",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": false,
- "sun": false,
- "x": 420,
- "y": 80,
- "wires": [
- [
- "7b9168a3.d09a48",
- "4da371e92b388cb2",
- "d4c2f39edee35e4e",
- "8b4b5082ff118d7b"
- ]
- ]
- },
- {
- "id": "82552f7d.509a8",
- "type": "schedex",
- "z": "bcc64ec3.65567",
- "name": "Flur Licht (abends)",
- "passthroughunhandled": false,
- "suspended": false,
- "lat": "51.4987183",
- "lon": "13.2259348",
- "ontime": "sunset",
- "ontopic": "",
- "onpayload": "1",
- "onoffset": "0",
- "onrandomoffset": 0,
- "offtime": "23:00",
- "offtopic": "",
- "offpayload": "0",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true,
- "x": 410,
- "y": 260,
- "wires": [
- [
- "3634bbd8c37b7217",
- "d4c2f39edee35e4e",
- "8b4b5082ff118d7b"
- ]
- ]
- },
- {
- "id": "ecb7ed61.5577c",
- "type": "schedex",
- "z": "bcc64ec3.65567",
- "name": "Nachtschaltung ab 23.00h",
- "passthroughunhandled": false,
- "suspended": false,
- "lat": "51.4987183",
- "lon": "13.2259348",
- "ontime": "23:00",
- "ontopic": "",
- "onpayload": "1",
- "onoffset": 0,
- "onrandomoffset": 0,
- "offtime": "",
- "offtopic": "",
- "offpayload": "",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true,
- "x": 410,
- "y": 1540,
- "wires": [
- [
- "a8b55ef5.c9be9"
- ]
- ]
- },
- {
- "id": "e25b5c0c.d087e",
- "type": "schedex",
- "z": "bcc64ec3.65567",
- "name": "Tag-Schaltung",
- "passthroughunhandled": false,
- "suspended": false,
- "lat": "51.4987183",
- "lon": "13.2259348",
- "ontime": "sunrise",
- "ontopic": "",
- "onpayload": "",
- "onoffset": 0,
- "onrandomoffset": 0,
- "offtime": "sunset",
- "offtopic": "",
- "offpayload": "",
- "offoffset": 0,
- "offrandomoffset": 0,
- "mon": true,
- "tue": true,
- "wed": true,
- "thu": true,
- "fri": true,
- "sat": true,
- "sun": true,
- "x": 380,
- "y": 1260,
- "wires": [
- [
- "acc3cfa1.3e5e6"
- ]
- ]
- },
- {
- "id": "1e98ee22.01f372",
- "type": "wemo-emulator",
- "z": "bcc64ec3.65567",
- "name": "Dose Drei",
- "friendlyName": "Dose Drei",
- "serial": "37003",
- "port": "1903",
- "onTopic": "",
- "onPayload": "1",
- "offTopic": "",
- "offPayload": "0",
- "x": 180,
- "y": 440,
- "wires": [
- [
- "d4c2f39edee35e4e",
- "8b4b5082ff118d7b",
- "7b9168a3.d09a48"
- ]
- ]
- },
- {
- "id": "3317c5b1.aa359a",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "ON",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "OFF",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 430,
- "y": 1940,
- "wires": [
- [
- "615931e2.a0de7"
- ],
- [
- "f6381d48.f7482"
- ]
- ]
- },
- {
- "id": "615931e2.a0de7",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "ON",
- "func": "var brightness = global.get(\"Osram-Flur-Brightness\");\nvar ColorTemp = global.get(\"Osram-Flur-ColorTemp\");\n\nmsg.topic = \"/home/zigbee/Osram-Flur/set\"\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 850,
- "y": 1900,
- "wires": [
- [
- "d144768c.78ded8"
- ]
- ]
- },
- {
- "id": "f6381d48.f7482",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "OFF",
- "func": "var brightness = global.get(\"Osram-Flur-Brightness\");\nvar ColorTemp = global.get(\"Osram-Flur-ColorTemp\");\n\nmsg.topic = \"/home/zigbee/Osram-Flur/set\"\nmsg.payload = {\"state\":\"OFF\",\"brightness\":brightness};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 850,
- "y": 1960,
- "wires": [
- [
- "d144768c.78ded8"
- ]
- ]
- },
- {
- "id": "d144768c.78ded8",
- "type": "mqtt out",
- "z": "bcc64ec3.65567",
- "name": "Osram Flur",
- "topic": "",
- "qos": "",
- "retain": "",
- "broker": "595dfa51.2c1224",
- "x": 1170,
- "y": 1940,
- "wires": []
- },
- {
- "id": "bf9dee25.5b01d",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "On",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "ON",
- "payloadType": "str",
- "x": 110,
- "y": 1920,
- "wires": [
- [
- "3317c5b1.aa359a"
- ]
- ]
- },
- {
- "id": "2b7680a.d18908",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "OFF",
- "payloadType": "str",
- "x": 110,
- "y": 1960,
- "wires": [
- [
- "3317c5b1.aa359a"
- ]
- ]
- },
- {
- "id": "75b0d4de.62b71c",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "global.set(\"Osram-Flur-Brightness\",64);\nglobal.set(\"Osram-Flur-ColorTemp\",200);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 660,
- "y": 1680,
- "wires": [
- []
- ]
- },
- {
- "id": "1114cb41.f25cf5",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "msg.topic = \"/home/zigbee/Hue-01-Flur/set\";\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 1100,
- "y": 660,
- "wires": [
- [
- "405dd0d1.ebebf"
- ]
- ]
- },
- {
- "id": "f5daffd6.7364",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "msg.topic = \"/home/zigbee/Hue-02-Flur/set\";\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 1100,
- "y": 720,
- "wires": [
- [
- "dd56c14f.4a65b"
- ]
- ]
- },
- {
- "id": "405dd0d1.ebebf",
- "type": "mqtt out",
- "z": "bcc64ec3.65567",
- "name": "Hue-01-Flur",
- "topic": "",
- "qos": "",
- "retain": "",
- "broker": "595dfa51.2c1224",
- "x": 1310,
- "y": 660,
- "wires": []
- },
- {
- "id": "dd56c14f.4a65b",
- "type": "mqtt out",
- "z": "bcc64ec3.65567",
- "name": "Hue-02-Flur",
- "topic": "",
- "qos": "",
- "retain": "",
- "broker": "595dfa51.2c1224",
- "x": 1310,
- "y": 720,
- "wires": []
- },
- {
- "id": "e0364df3.1195",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "var TagNacht = global.get(\"DayNight\")\n\nif(TagNacht == \"0\")\n{\n Status = \"1\";\n node.status({fill:\"blue\",shape:\"ring\",text:\"TagNacht: \" + TagNacht});\n return {payload:TagNacht};\n}\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"TagNacht: \" + TagNacht});\n",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 460,
- "y": 600,
- "wires": [
- [
- "9bc37d65.2dafe"
- ]
- ]
- },
- {
- "id": "5f54cd42.afae14",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "1",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "ON",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 370,
- "y": 540,
- "wires": [
- [
- "e0364df3.1195",
- "9bc37d65.2dafe"
- ],
- [
- "9bc37d65.2dafe"
- ]
- ]
- },
- {
- "id": "eb486e23.1d7b3",
- "type": "within-time-switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "nameInt": "",
- "positionConfig": "d54b4b8e.d537a8",
- "startTime": "22:45",
- "startTimeType": "entered",
- "startOffset": 0,
- "startOffsetType": "none",
- "startOffsetMultiplier": 60000,
- "endTime": "05:29:00",
- "endTimeType": "entered",
- "endOffset": 0,
- "endOffsetType": "none",
- "endOffsetMultiplier": 60000,
- "timeRestrictions": 0,
- "timeRestrictionsType": "none",
- "timeDays": "*",
- "timeOnlyOddDays": false,
- "timeOnlyEvenDays": false,
- "timeMonths": "*",
- "timedatestart": "",
- "timedateend": "",
- "propertyStart": "",
- "propertyStartType": "none",
- "propertyStartCompare": "true",
- "propertyStartThreshold": "",
- "propertyStartThresholdType": "num",
- "startTimeAlt": "",
- "startTimeAltType": "entered",
- "startOffsetAlt": 0,
- "startOffsetAltType": "none",
- "startOffsetAltMultiplier": 60000,
- "propertyEnd": "",
- "propertyEndType": "none",
- "propertyEndCompare": "true",
- "propertyEndThreshold": "",
- "propertyEndThresholdType": "num",
- "endTimeAlt": "",
- "endTimeAltType": "entered",
- "endOffsetAlt": 0,
- "endOffsetAltType": "none",
- "endOffsetAltMultiplier": 60000,
- "tsCompare": "0",
- "x": 920,
- "y": 500,
- "wires": [
- [
- "d6d76c95.3ae7b"
- ],
- [
- "62f283d6.e6a9cc"
- ]
- ]
- },
- {
- "id": "6e3dde1e.66cdd",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "Osram-Flur On",
- "links": [
- "d6d76c95.3ae7b",
- "f15f464cb4a1a351"
- ],
- "x": 675,
- "y": 1860,
- "wires": [
- [
- "615931e2.a0de7",
- "30e1392d.6abdd6"
- ]
- ]
- },
- {
- "id": "db418d6d.14dce",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "Osram-Flur Off",
- "links": [
- "5e02ffa.b7968",
- "2af8024b9060eaee",
- "7238676dc3bdb29f"
- ],
- "x": 675,
- "y": 2020,
- "wires": [
- [
- "f6381d48.f7482",
- "f09d5be8.3b1838"
- ]
- ]
- },
- {
- "id": "686c213c.0d67d",
- "type": "within-time-switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "nameInt": "",
- "positionConfig": "d54b4b8e.d537a8",
- "startTime": "22:45",
- "startTimeType": "entered",
- "startOffset": 0,
- "startOffsetType": "none",
- "startOffsetMultiplier": 60000,
- "endTime": "05:29",
- "endTimeType": "entered",
- "endOffset": 0,
- "endOffsetType": "none",
- "endOffsetMultiplier": 60000,
- "timeRestrictions": 0,
- "timeRestrictionsType": "none",
- "timeDays": "*",
- "timeOnlyOddDays": false,
- "timeOnlyEvenDays": false,
- "timeMonths": "*",
- "timedatestart": "",
- "timedateend": "",
- "propertyStart": "",
- "propertyStartType": "none",
- "propertyStartCompare": "true",
- "propertyStartThreshold": "",
- "propertyStartThresholdType": "num",
- "startTimeAlt": "",
- "startTimeAltType": "entered",
- "startOffsetAlt": 0,
- "startOffsetAltType": "none",
- "startOffsetAltMultiplier": 60000,
- "propertyEnd": "",
- "propertyEndType": "none",
- "propertyEndCompare": "true",
- "propertyEndThreshold": "",
- "propertyEndThresholdType": "num",
- "endTimeAlt": "",
- "endTimeAltType": "entered",
- "endOffsetAlt": 0,
- "endOffsetAltType": "none",
- "endOffsetAltMultiplier": 60000,
- "tsCompare": "0",
- "x": 910,
- "y": 580,
- "wires": [
- [
- "5e02ffa.b7968"
- ],
- [
- "cb7fe390.05aac"
- ]
- ]
- },
- {
- "id": "d6d76c95.3ae7b",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "6e3dde1e.66cdd"
- ],
- "x": 1155,
- "y": 480,
- "wires": []
- },
- {
- "id": "5e02ffa.b7968",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "db418d6d.14dce"
- ],
- "x": 1155,
- "y": 560,
- "wires": []
- },
- {
- "id": "30e1392d.6abdd6",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 870,
- "y": 1860,
- "wires": []
- },
- {
- "id": "f09d5be8.3b1838",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 870,
- "y": 2020,
- "wires": []
- },
- {
- "id": "bac5216b.56483",
- "type": "mqtt in",
- "z": "bcc64ec3.65567",
- "name": "",
- "topic": "/home/zigbee/Osram-Flur/#",
- "qos": "2",
- "datatype": "auto",
- "broker": "595dfa51.2c1224",
- "x": 190,
- "y": 2400,
- "wires": [
- [
- "7520ee27.fcee8"
- ]
- ]
- },
- {
- "id": "4a6d9c8e.284df4",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 910,
- "y": 2420,
- "wires": []
- },
- {
- "id": "72de166a.383578",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "600",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "/home/zigbee/Osram-Flur/get",
- "payload": "{\"state\": \"\"}",
- "payloadType": "str",
- "x": 910,
- "y": 2100,
- "wires": [
- [
- "d144768c.78ded8"
- ]
- ]
- },
- {
- "id": "7520ee27.fcee8",
- "type": "json",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 430,
- "y": 2400,
- "wires": [
- [
- "80fcda5d.c45a98"
- ]
- ]
- },
- {
- "id": "80fcda5d.c45a98",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "/*\n\tobject\t\t{5}\nbrightness\t:\t1\nlinkquality\t:\t34\nstate\t:\tOFF\n\tupdate\t\t{1}\nstate\t:\tidle\nupdate_available\t:\tfalse\n\n*/\n\n// {\"brightness\":2,\"linkquality\":73,\"state\":\"OFF\",\"update\":{\"state\":\"available\"},\"update_available\":true}\nvar Knoten = \"Osram-Flur\"\n\nvar brightness = msg.payload.brightness\nvar qual = msg.payload.linkquality\nvar state = msg.payload.state\n\nmsg.payload = [{\n Room: Knoten,\n Bright: brightness,\n Qual: qual,\n State: state\n}]\n\nvar newMsg1 = {payload:brightness};\nvar newMsg2 = {payload:state};\nvar newMsg3 = {payload:qual};\nvar newMsg4 = {payload:msg};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness + \", Qual: \" + qual + \"%, State: \" + state });\n\nreturn [newMsg1, newMsg2, newMsg3, newMsg4];",
- "outputs": 4,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 640,
- "y": 2400,
- "wires": [
- [
- "5b0c6e16.7c2da"
- ],
- [
- "fa3f9a48.db2b18",
- "8fcbe6bc.cfc408"
- ],
- [
- "f6a172be.522de"
- ],
- [
- "4a6d9c8e.284df4"
- ]
- ]
- },
- {
- "id": "fa3f9a48.db2b18",
- "type": "ui_led",
- "z": "bcc64ec3.65567",
- "order": 3,
- "group": "7b5e04a5.3567dc",
- "width": "0",
- "height": "0",
- "label": "Ein / Aus LED",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "#ff0000",
- "value": "OFF",
- "valueType": "str"
- },
- {
- "color": "#008000",
- "value": "ON",
- "valueType": "str"
- }
- ],
- "allowColorForValueInMessage": false,
- "shape": "circle",
- "showGlow": true,
- "name": "",
- "x": 890,
- "y": 2280,
- "wires": []
- },
- {
- "id": "f6a172be.522de",
- "type": "ui_gauge",
- "z": "bcc64ec3.65567",
- "name": "Link Quality",
- "group": "7b5e04a5.3567dc",
- "order": 4,
- "width": "0",
- "height": "0",
- "gtype": "gage",
- "title": "Link Quality",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#ff0000",
- "#e6e600",
- "#00ff01"
- ],
- "seg1": "",
- "seg2": "",
- "x": 910,
- "y": 2380,
- "wires": []
- },
- {
- "id": "8fcbe6bc.cfc408",
- "type": "ui_switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "label": "Ein / Ausschalter",
- "tooltip": "",
- "group": "7b5e04a5.3567dc",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "decouple": "true",
- "topic": "/home/zigbee/Osram-Flur/set",
- "topicType": "str",
- "style": "",
- "onvalue": "ON",
- "onvalueType": "str",
- "onicon": "",
- "oncolor": "",
- "offvalue": "OFF",
- "offvalueType": "str",
- "officon": "",
- "offcolor": "",
- "animate": false,
- "x": 930,
- "y": 2320,
- "wires": [
- [
- "3317c5b1.aa359a"
- ]
- ]
- },
- {
- "id": "5b0c6e16.7c2da",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "255",
- "minout": "1",
- "maxout": "100",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 800,
- "y": 2240,
- "wires": [
- [
- "6de664db.46648c"
- ]
- ]
- },
- {
- "id": "6de664db.46648c",
- "type": "ui_slider",
- "z": "bcc64ec3.65567",
- "name": "Helligkeit",
- "label": "Helligkeit",
- "tooltip": "",
- "group": "7b5e04a5.3567dc",
- "order": 1,
- "width": 0,
- "height": 0,
- "passthru": false,
- "outs": "end",
- "topic": "/home/zigbee/Osram-Flur/set",
- "topicType": "str",
- "min": "1",
- "max": "100",
- "step": "2",
- "x": 880,
- "y": 2160,
- "wires": [
- [
- "9ab50888.e0e758"
- ]
- ]
- },
- {
- "id": "9ab50888.e0e758",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "100",
- "minout": "1",
- "maxout": "255",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 980,
- "y": 2240,
- "wires": [
- []
- ]
- },
- {
- "id": "1d3c179e.df0da8",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "Hue-Flur-1-In",
- "links": [
- "b79b47c7.3d8a58"
- ],
- "x": 1175,
- "y": 620,
- "wires": [
- [
- "405dd0d1.ebebf"
- ]
- ]
- },
- {
- "id": "912fe0a6.0de46",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "Hue-Flur-2-In",
- "links": [
- "47e6a3b6.ccd59c"
- ],
- "x": 1175,
- "y": 760,
- "wires": [
- [
- "dd56c14f.4a65b"
- ]
- ]
- },
- {
- "id": "440b9337.29f23c",
- "type": "mqtt in",
- "z": "bcc64ec3.65567",
- "name": "",
- "topic": "/home/zigbee/Hue-01-Flur",
- "qos": "2",
- "datatype": "auto",
- "broker": "595dfa51.2c1224",
- "x": 190,
- "y": 2800,
- "wires": [
- [
- "5550c93a.dcf208"
- ]
- ]
- },
- {
- "id": "190beb5a.560465",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 930,
- "y": 2820,
- "wires": []
- },
- {
- "id": "d1426718.b32178",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "600",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "/home/zigbee/Hue-01-Flur/get",
- "payload": "{\"state\": \"\"}",
- "payloadType": "str",
- "x": 930,
- "y": 2500,
- "wires": [
- [
- "b79b47c7.3d8a58"
- ]
- ]
- },
- {
- "id": "5550c93a.dcf208",
- "type": "json",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 430,
- "y": 2800,
- "wires": [
- [
- "97332a26.ac5908"
- ]
- ]
- },
- {
- "id": "97332a26.ac5908",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "// {\"brightness\":2,\"linkquality\":73,\"state\":\"OFF\",\"update\":{\"state\":\"available\"},\"update_available\":true}\nvar Knoten = \"Hue-Flur-01\"\n\nvar brightness = msg.payload.brightness\nvar qual = msg.payload.linkquality\nvar state = msg.payload.state\n\nmsg.payload = [{\n Room: Knoten,\n Bright: brightness,\n Qual: qual,\n State: state\n}]\n\nvar newMsg1 = {payload:brightness};\nvar newMsg2 = {payload:state};\nvar newMsg3 = {payload:qual};\nvar newMsg4 = {payload:msg};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness + \", Qual: \" + qual + \"%, State: \" + state });\n\nreturn [newMsg1, newMsg2, newMsg3, newMsg4];",
- "outputs": 4,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 660,
- "y": 2800,
- "wires": [
- [
- "9f13776c.bd0b88"
- ],
- [
- "d26c8220.4b93d",
- "1e0b4112.6a2e7f"
- ],
- [
- "91f93ba9.bb6928"
- ],
- [
- "190beb5a.560465"
- ]
- ]
- },
- {
- "id": "d26c8220.4b93d",
- "type": "ui_led",
- "z": "bcc64ec3.65567",
- "order": 3,
- "group": "39b918d8.7dd778",
- "width": "0",
- "height": "0",
- "label": "Ein / Aus LED",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "#ff0000",
- "value": "OFF",
- "valueType": "str"
- },
- {
- "color": "#008000",
- "value": "ON",
- "valueType": "str"
- }
- ],
- "allowColorForValueInMessage": false,
- "shape": "circle",
- "showGlow": true,
- "name": "",
- "x": 910,
- "y": 2680,
- "wires": []
- },
- {
- "id": "91f93ba9.bb6928",
- "type": "ui_gauge",
- "z": "bcc64ec3.65567",
- "name": "Link Quality",
- "group": "39b918d8.7dd778",
- "order": 4,
- "width": "0",
- "height": "0",
- "gtype": "gage",
- "title": "Link Quality",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#ff0000",
- "#e6e600",
- "#00ff01"
- ],
- "seg1": "",
- "seg2": "",
- "x": 930,
- "y": 2780,
- "wires": []
- },
- {
- "id": "9f13776c.bd0b88",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "255",
- "minout": "1",
- "maxout": "100",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 820,
- "y": 2640,
- "wires": [
- [
- "2723c802.c2d2d8"
- ]
- ]
- },
- {
- "id": "2723c802.c2d2d8",
- "type": "ui_slider",
- "z": "bcc64ec3.65567",
- "name": "Helligkeit",
- "label": "Helligkeit",
- "tooltip": "",
- "group": "39b918d8.7dd778",
- "order": 1,
- "width": 0,
- "height": 0,
- "passthru": false,
- "outs": "end",
- "topic": "/home/zigbee/Osram-Flur/set",
- "topicType": "str",
- "min": "1",
- "max": "100",
- "step": "2",
- "x": 900,
- "y": 2560,
- "wires": [
- [
- "8cf0d38d.1eae"
- ]
- ]
- },
- {
- "id": "8cf0d38d.1eae",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "100",
- "minout": "1",
- "maxout": "255",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 1000,
- "y": 2640,
- "wires": [
- []
- ]
- },
- {
- "id": "b79b47c7.3d8a58",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "1d3c179e.df0da8"
- ],
- "x": 1175,
- "y": 2500,
- "wires": []
- },
- {
- "id": "1e0b4112.6a2e7f",
- "type": "ui_switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "label": "Ein / Ausschalter",
- "tooltip": "",
- "group": "39b918d8.7dd778",
- "order": 2,
- "width": 0,
- "height": 0,
- "passthru": false,
- "decouple": "true",
- "topic": "/home/zigbee/Hue-01-Flur/set",
- "topicType": "str",
- "style": "",
- "onvalue": "ON",
- "onvalueType": "str",
- "onicon": "",
- "oncolor": "",
- "offvalue": "OFF",
- "offvalueType": "str",
- "officon": "",
- "offcolor": "",
- "animate": false,
- "x": 950,
- "y": 2720,
- "wires": [
- [
- "b79b47c7.3d8a58"
- ]
- ]
- },
- {
- "id": "a972f07c.64da8",
- "type": "mqtt in",
- "z": "bcc64ec3.65567",
- "name": "",
- "topic": "/home/zigbee/Hue-02-Flur",
- "qos": "2",
- "datatype": "auto",
- "broker": "595dfa51.2c1224",
- "x": 230,
- "y": 3280,
- "wires": [
- [
- "ceec6f96.255be"
- ]
- ]
- },
- {
- "id": "c17614de.6925b8",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": false,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 950,
- "y": 3300,
- "wires": []
- },
- {
- "id": "c5605d5b.03bb3",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "600",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "/home/zigbee/Hue-02-Flur/get",
- "payload": "{\"state\": \"\"}",
- "payloadType": "str",
- "x": 950,
- "y": 2980,
- "wires": [
- [
- "47e6a3b6.ccd59c"
- ]
- ]
- },
- {
- "id": "ceec6f96.255be",
- "type": "json",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 470,
- "y": 3280,
- "wires": [
- [
- "ccfe1d8f.17574"
- ]
- ]
- },
- {
- "id": "ccfe1d8f.17574",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "// {\"brightness\":2,\"linkquality\":73,\"state\":\"OFF\",\"update\":{\"state\":\"available\"},\"update_available\":true}\nvar Knoten = \"Hue-Flur-02\"\n\nvar brightness = msg.payload.brightness\nvar qual = msg.payload.linkquality\nvar state = msg.payload.state\n\nmsg.payload = [{\n Room: Knoten,\n Bright: brightness,\n Qual: qual,\n State: state\n}]\n\nvar newMsg1 = {payload:brightness};\nvar newMsg2 = {payload:state};\nvar newMsg3 = {payload:qual};\nvar newMsg4 = {payload:msg};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness + \", Qual: \" + qual + \"%, State: \" + state });\n\nreturn [newMsg1, newMsg2, newMsg3, newMsg4];",
- "outputs": 4,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "x": 680,
- "y": 3280,
- "wires": [
- [
- "4b3e6154.5e95a"
- ],
- [
- "273fb64b.344b1a",
- "687f3505.6703cc"
- ],
- [
- "c5d54c5c.634f9"
- ],
- [
- "c17614de.6925b8"
- ]
- ]
- },
- {
- "id": "273fb64b.344b1a",
- "type": "ui_led",
- "z": "bcc64ec3.65567",
- "order": 3,
- "group": "7e09d455.9ad7dc",
- "width": "0",
- "height": "0",
- "label": "Ein / Aus LED",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "#ff0000",
- "value": "OFF",
- "valueType": "str"
- },
- {
- "color": "#008000",
- "value": "ON",
- "valueType": "str"
- }
- ],
- "allowColorForValueInMessage": false,
- "shape": "circle",
- "showGlow": true,
- "name": "",
- "x": 930,
- "y": 3160,
- "wires": []
- },
- {
- "id": "c5d54c5c.634f9",
- "type": "ui_gauge",
- "z": "bcc64ec3.65567",
- "name": "Link Quality",
- "group": "7e09d455.9ad7dc",
- "order": 4,
- "width": "0",
- "height": "0",
- "gtype": "gage",
- "title": "Link Quality",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#ff0000",
- "#e6e600",
- "#00ff01"
- ],
- "seg1": "",
- "seg2": "",
- "x": 950,
- "y": 3260,
- "wires": []
- },
- {
- "id": "4b3e6154.5e95a",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "255",
- "minout": "1",
- "maxout": "100",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 840,
- "y": 3120,
- "wires": [
- [
- "88c9840c.bd1338"
- ]
- ]
- },
- {
- "id": "88c9840c.bd1338",
- "type": "ui_slider",
- "z": "bcc64ec3.65567",
- "name": "Helligkeit",
- "label": "Helligkeit",
- "tooltip": "",
- "group": "7e09d455.9ad7dc",
- "order": 1,
- "width": 0,
- "height": 0,
- "passthru": false,
- "outs": "end",
- "topic": "/home/zigbee/Osram-Flur/set",
- "topicType": "str",
- "min": "1",
- "max": "100",
- "step": "2",
- "x": 920,
- "y": 3040,
- "wires": [
- [
- "adfe2228.9cd82"
- ]
- ]
- },
- {
- "id": "311291e6.99182e",
- "type": "debug",
- "z": "bcc64ec3.65567",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1230,
- "y": 3200,
- "wires": []
- },
- {
- "id": "adfe2228.9cd82",
- "type": "range",
- "z": "bcc64ec3.65567",
- "minin": "1",
- "maxin": "100",
- "minout": "1",
- "maxout": "255",
- "action": "scale",
- "round": true,
- "property": "payload",
- "name": "",
- "x": 1020,
- "y": 3120,
- "wires": [
- []
- ]
- },
- {
- "id": "47e6a3b6.ccd59c",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "912fe0a6.0de46"
- ],
- "x": 1195,
- "y": 2980,
- "wires": []
- },
- {
- "id": "687f3505.6703cc",
- "type": "ui_switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "label": "Ein / Ausschalter",
- "tooltip": "",
- "group": "7e09d455.9ad7dc",
- "order": 2,
- "width": 0,
- "height": 0,
- "passthru": false,
- "decouple": "true",
- "topic": "/home/zigbee/Hue-02-Flur/set",
- "topicType": "str",
- "style": "",
- "onvalue": "ON",
- "onvalueType": "str",
- "onicon": "",
- "oncolor": "",
- "offvalue": "OFF",
- "offvalueType": "str",
- "officon": "",
- "offcolor": "",
- "animate": false,
- "x": 970,
- "y": 3200,
- "wires": [
- [
- "47e6a3b6.ccd59c",
- "311291e6.99182e"
- ]
- ]
- },
- {
- "id": "3e97ce82.3ea722",
- "type": "comment",
- "z": "bcc64ec3.65567",
- "name": "Osram-Flur",
- "info": "",
- "x": 140,
- "y": 2120,
- "wires": []
- },
- {
- "id": "a3af0f3f.9b5aa",
- "type": "switch",
- "z": "bcc64ec3.65567",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "ON",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "OFF",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 430,
- "y": 700,
- "wires": [
- [
- "62f283d6.e6a9cc"
- ],
- [
- "cb7fe390.05aac"
- ]
- ]
- },
- {
- "id": "cddd13a5.f5171",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "On",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "ON",
- "payloadType": "str",
- "x": 110,
- "y": 680,
- "wires": [
- [
- "a3af0f3f.9b5aa"
- ]
- ]
- },
- {
- "id": "7d0dd19b.4d7ca",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "OFF",
- "payloadType": "str",
- "x": 110,
- "y": 720,
- "wires": [
- [
- "a3af0f3f.9b5aa"
- ]
- ]
- },
- {
- "id": "78b00a9c.759254",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "x": 170,
- "y": 1180,
- "wires": [
- [
- "e25b5c0c.d087e"
- ]
- ]
- },
- {
- "id": "f0f49778.59f8d8",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "x": 170,
- "y": 1140,
- "wires": [
- [
- "e25b5c0c.d087e"
- ]
- ]
- },
- {
- "id": "c27f1d94.d5d06",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Resume Schedule",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "x": 133,
- "y": 1259,
- "wires": [
- [
- "e25b5c0c.d087e"
- ]
- ]
- },
- {
- "id": "2ce60b41.1a9ff4",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Suspend",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "x": 163,
- "y": 1219,
- "wires": [
- [
- "e25b5c0c.d087e"
- ]
- ]
- },
- {
- "id": "3249dcc.075b324",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "on",
- "payloadType": "str",
- "x": 170,
- "y": 1520,
- "wires": [
- [
- "ecb7ed61.5577c"
- ]
- ]
- },
- {
- "id": "3a304202.dc495e",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Off",
- "repeat": "",
- "crontab": "",
- "once": false,
- "topic": "",
- "payload": "off",
- "payloadType": "str",
- "x": 170,
- "y": 1480,
- "wires": [
- [
- "ecb7ed61.5577c"
- ]
- ]
- },
- {
- "id": "9d351b48.a67ae8",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Resume Schedule",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended false",
- "payloadType": "str",
- "x": 133,
- "y": 1599,
- "wires": [
- [
- "ecb7ed61.5577c"
- ]
- ]
- },
- {
- "id": "fecaf6b3.a12db8",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Suspend",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "suspended true",
- "payloadType": "str",
- "x": 163,
- "y": 1559,
- "wires": [
- [
- "ecb7ed61.5577c"
- ]
- ]
- },
- {
- "id": "10f44427.77e61c",
- "type": "inject",
- "z": "bcc64ec3.65567",
- "name": "Osram-Flur-Morgens",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 130,
- "y": 1680,
- "wires": [
- [
- "75b0d4de.62b71c"
- ]
- ]
- },
- {
- "id": "3634bbd8c37b7217",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Set Hue-Flur-Brightness and Osram-Flur-Brightness to 127",
- "func": "global.set(\"Hue-Flur-Brightness\",127);\nglobal.set(\"Hue-Flur-ColorTemp\",355);\n\nglobal.set(\"Osram-Flur-Brightness\",127);\nglobal.set(\"Osram-Flur-ColorTemp\",355);\n\nglobal.set(\"Hue-Flur-Brightness\",127);\nglobal.set(\"Hue-Flur-ColorTemp\",355);\n\nglobal.set(\"Osram-Flur-Brightness\",127);\nglobal.set(\"Osram-Flur-ColorTemp\",355);\n\nglobal.set(\"Hue-Flur-Brightness\",127);\nglobal.set(\"Hue-Flur-ColorTemp\",355);\n\nglobal.set(\"Osram-Flur-Brightness\",127);\nglobal.set(\"Osram-Flur-ColorTemp\",355);\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 900,
- "y": 260,
- "wires": [
- [
- "7b9168a3.d09a48"
- ]
- ]
- },
- {
- "id": "4da371e92b388cb2",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "Set Hue-Flur and Osram-Flur-Brightness to 64",
- "func": "global.set(\"Hue-Flur-Brightness\",64);\nglobal.set(\"Hue-Flur-ColorTemp\",200);\n\nglobal.set(\"Osram-Flur-Brightness\",64);\nglobal.set(\"Osram-Flur-ColorTemp\",355);\n\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 860,
- "y": 200,
- "wires": [
- [
- "d61b338f26cd3223"
- ]
- ]
- },
- {
- "id": "d61b338f26cd3223",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "94fd7684.689ba8"
- ],
- "x": 1215,
- "y": 200,
- "wires": []
- },
- {
- "id": "2af8024b9060eaee",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "db418d6d.14dce"
- ],
- "x": 1015,
- "y": 1280,
- "wires": []
- },
- {
- "id": "7238676dc3bdb29f",
- "type": "link out",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "db418d6d.14dce"
- ],
- "x": 1155,
- "y": 1580,
- "wires": []
- },
- {
- "id": "8b4b5082ff118d7b",
- "type": "mqtt out",
- "z": "bcc64ec3.65567",
- "name": "Plug03 - GPIO-5 (Relais)",
- "topic": "/home/Koss/Plug03/GPIO/5 -m 0",
- "qos": "",
- "retain": "",
- "respTopic": "",
- "contentType": "",
- "userProps": "",
- "correl": "",
- "expiry": "",
- "broker": "595dfa51.2c1224",
- "x": 1210,
- "y": 100,
- "wires": []
- },
- {
- "id": "d4c2f39edee35e4e",
- "type": "function",
- "z": "bcc64ec3.65567",
- "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": 780,
- "y": 40,
- "wires": [
- [
- "50fdff73c40b2154"
- ]
- ]
- },
- {
- "id": "50fdff73c40b2154",
- "type": "mqtt out",
- "z": "bcc64ec3.65567",
- "name": "Plug03 - GPIO-4 (LED)",
- "topic": "/home/Koss/Plug03/GPIO/4 -m 0",
- "qos": "",
- "retain": "",
- "respTopic": "",
- "contentType": "",
- "userProps": "",
- "correl": "",
- "expiry": "",
- "broker": "595dfa51.2c1224",
- "x": 1210,
- "y": 40,
- "wires": []
- },
- {
- "id": "24cb45836a5224b4",
- "type": "link in",
- "z": "bcc64ec3.65567",
- "name": "",
- "links": [
- "e7f78883d3ad1517"
- ],
- "x": 95,
- "y": 600,
- "wires": [
- [
- "e835a2506b19e055"
- ]
- ]
- },
- {
- "id": "e835a2506b19e055",
- "type": "function",
- "z": "bcc64ec3.65567",
- "name": "",
- "func": "var Knoten = \"PIR-Flur\"\n\nvar Switch = msg.payload.switch\nvar State = msg.payload.cmd\n\nmsg.payload = [{\n Room: Knoten,\n Switch: Switch,\n State: State\n}]\n\nvar newMsg1 = {payload:Switch};\nvar newMsg2 = {payload:State};\nvar newMsg3 = {payload:msg};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Switch: \" + Switch + \", State: \" + State });\n\nreturn [newMsg1, newMsg2, newMsg3];",
- "outputs": 3,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 220,
- "y": 600,
- "wires": [
- [],
- [
- "5f54cd42.afae14"
- ],
- []
- ]
- },
- {
- "id": "950cb22379637a8a",
- "type": "delay",
- "z": "bcc64ec3.65567",
- "name": "",
- "pauseType": "delay",
- "timeout": "10",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "allowrate": false,
- "x": 1000,
- "y": 1540,
- "wires": [
- [
- "d0131704.1ae748",
- "7238676dc3bdb29f"
- ]
- ]
- },
- {
- "id": "595dfa51.2c1224",
- "type": "mqtt-broker",
- "name": "",
- "broker": "192.168.123.16",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": "",
- "closeTopic": "",
- "closePayload": "",
- "willTopic": "",
- "willQos": "0",
- "willPayload": ""
- },
- {
- "id": "d54b4b8e.d537a8",
- "type": "position-config",
- "name": "",
- "isValide": "true",
- "longitude": "0",
- "latitude": "0",
- "angleType": "deg",
- "timeZoneOffset": "99",
- "timeZoneDST": "0",
- "stateTimeFormat": "3",
- "stateDateFormat": "12"
- },
- {
- "id": "7b5e04a5.3567dc",
- "type": "ui_group",
- "name": "Osram-Flur",
- "tab": "67152ec1.2f63e",
- "order": 2,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "39b918d8.7dd778",
- "type": "ui_group",
- "name": "Flur hinten",
- "tab": "67152ec1.2f63e",
- "order": 4,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "7e09d455.9ad7dc",
- "type": "ui_group",
- "name": "Flur vorn",
- "tab": "67152ec1.2f63e",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "67152ec1.2f63e",
- "type": "ui_tab",
- "name": "Licht",
- "icon": "dashboard",
- "order": 4,
- "disabled": false,
- "hidden": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement