NittyGritty icon

Auto-Licht Flur

NittyGritty | PRO | 02/05/21 10:35:59 AM UTC (Edited) | 0 ⭐ | 577 👁️ | Never ⏰ | []
JavaScript |

33.28 KB

|

None

|

0 👍

/

0 👎

[
    {
        "id": "13feb79.316a248",
        "type": "tab",
        "label": "Auto Licht Flur",
        "disabled": false,
        "info": ""
    },
    {
        "id": "897c5177.92d4e",
        "type": "http request",
        "z": "13feb79.316a248",
        "name": "Plug02-LED",
        "method": "GET",
        "ret": "txt",
        "paytoqs": false,
        "url": "http://192.168.123.106/tools?cmd=GPIO,14,{{{payload}}}",
        "tls": "",
        "proxy": "",
        "authType": "",
        "x": 1030,
        "y": 440,
        "wires": [
            []
        ]
    },
    {
        "id": "2efe1e11.1c22a2",
        "type": "function",
        "z": "13feb79.316a248",
        "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": 800,
        "y": 380,
        "wires": [
            [
                "d1644ced.fb3c3"
            ]
        ]
    },
    {
        "id": "d1644ced.fb3c3",
        "type": "http request",
        "z": "13feb79.316a248",
        "name": "Plug02-Relais",
        "method": "GET",
        "ret": "txt",
        "paytoqs": false,
        "url": "http://192.168.123.106/tools?cmd=GPIO,12,{{{payload}}}",
        "tls": "",
        "proxy": "",
        "authType": "",
        "x": 1040,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "3b0be589.e8852a",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": false,
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "x": 190,
        "y": 300,
        "wires": [
            [
                "be73dc9f.1c96b"
            ]
        ]
    },
    {
        "id": "42802f52.9d65e",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Off",
        "repeat": "",
        "crontab": "",
        "once": false,
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "x": 190,
        "y": 260,
        "wires": [
            [
                "be73dc9f.1c96b"
            ]
        ]
    },
    {
        "id": "fe510b0f.b7a8f8",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": false,
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "x": 187,
        "y": 121,
        "wires": [
            [
                "5bcac9ae.9816c8"
            ]
        ]
    },
    {
        "id": "27e79737.45f2d8",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Off",
        "repeat": "",
        "crontab": "",
        "once": false,
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "x": 187,
        "y": 81,
        "wires": [
            [
                "5bcac9ae.9816c8"
            ]
        ]
    },
    {
        "id": "aad4e8e7.195b28",
        "type": "comment",
        "z": "13feb79.316a248",
        "name": "Licht Charllie (Flur)",
        "info": "",
        "x": 110,
        "y": 20,
        "wires": []
    },
    {
        "id": "d8819d1.557406",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Resume Schedule",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "suspended false",
        "payloadType": "str",
        "x": 150,
        "y": 200,
        "wires": [
            [
                "5bcac9ae.9816c8"
            ]
        ]
    },
    {
        "id": "da6988d3.49bf38",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Suspend",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "suspended true",
        "payloadType": "str",
        "x": 180,
        "y": 160,
        "wires": [
            [
                "5bcac9ae.9816c8"
            ]
        ]
    },
    {
        "id": "a5d390e4.bf00b",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Resume Schedule",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "suspended false",
        "payloadType": "str",
        "x": 150,
        "y": 380,
        "wires": [
            [
                "be73dc9f.1c96b"
            ]
        ]
    },
    {
        "id": "d5aadb54.4c4e48",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Suspend",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "suspended true",
        "payloadType": "str",
        "x": 180,
        "y": 340,
        "wires": [
            [
                "be73dc9f.1c96b"
            ]
        ]
    },
    {
        "id": "70191001.50ae6",
        "type": "mqtt in",
        "z": "13feb79.316a248",
        "name": "",
        "topic": "/home/Zo18/RF-Bridge01/relay/3",
        "qos": "2",
        "datatype": "auto",
        "broker": "9d4f73b8.d5ee7",
        "x": 170,
        "y": 580,
        "wires": [
            [
                "df7440f5.b03e8"
            ]
        ]
    },
    {
        "id": "df7440f5.b03e8",
        "type": "trigger",
        "z": "13feb79.316a248",
        "name": "Pulse",
        "op1": "1",
        "op2": "0",
        "op1type": "str",
        "op2type": "str",
        "duration": "2",
        "extend": true,
        "units": "min",
        "reset": "off",
        "bytopic": "all",
        "outputs": 1,
        "x": 530,
        "y": 580,
        "wires": [
            [
                "ceb4095a.3bab98",
                "3a58022b.c9ed9e"
            ]
        ]
    },
    {
        "id": "5eb567b2.ed0358",
        "type": "mqtt in",
        "z": "13feb79.316a248",
        "name": "",
        "topic": "/home/Zo18/Licht/Flur",
        "qos": "2",
        "datatype": "auto",
        "broker": "9d4f73b8.d5ee7",
        "x": 780,
        "y": 440,
        "wires": [
            [
                "2efe1e11.1c22a2",
                "897c5177.92d4e",
                "ff67051e.1bc988"
            ]
        ]
    },
    {
        "id": "3a58022b.c9ed9e",
        "type": "mqtt out",
        "z": "13feb79.316a248",
        "name": "",
        "topic": "/home/Zo18/Licht/Flur",
        "qos": "",
        "retain": "",
        "broker": "9d4f73b8.d5ee7",
        "x": 780,
        "y": 500,
        "wires": []
    },
    {
        "id": "ceb4095a.3bab98",
        "type": "switch",
        "z": "13feb79.316a248",
        "name": "Flurlicht ein / aus",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 770,
        "y": 580,
        "wires": [
            [
                "e4e0690f.d760e8"
            ],
            [
                "576eb264.fe489c"
            ]
        ]
    },
    {
        "id": "24175d10.8c5e92",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "On",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 130,
        "y": 740,
        "wires": [
            [
                "e4e0690f.d760e8"
            ]
        ]
    },
    {
        "id": "86b5276f.16c678",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "Off",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 130,
        "y": 780,
        "wires": [
            [
                "576eb264.fe489c"
            ]
        ]
    },
    {
        "id": "f90dccb7.66c17",
        "type": "switch",
        "z": "13feb79.316a248",
        "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": 330,
        "y": 900,
        "wires": [
            [
                "e4e0690f.d760e8"
            ],
            [
                "576eb264.fe489c"
            ],
            [
                "4d736bfc.9c41d4"
            ],
            [
                "edf77924.b162b8",
                "8d758ada.5d6ac8"
            ],
            [
                "8cc96f30.dad85",
                "8d758ada.5d6ac8"
            ],
            [
                "4d736bfc.9c41d4"
            ]
        ]
    },
    {
        "id": "edf77924.b162b8",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "Brightness up",
        "func": "var step = global.get(\"Step\");\n\nvar brightness =  global.get(\"IKEA-Flur-Brightness\");\nvar ColorTemp = global.get(\"IKEA-Flur-ColorTemp\");\n\nif(brightness > 0){\n    brightness = brightness + step;\n    global.set(\"IKEA-Flur-Brightness\",brightness);\n\t}\n\t\nif(brightness >= 255){\n    brightness = 254;\n    flow.set('press', false);\n    global.set(\"IKEA-Flur-Brightness\",brightness);\n    }\n\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 720,
        "y": 960,
        "wires": [
            [
                "81a4325d.18e42",
                "dc72e9dc.1726d8"
            ]
        ]
    },
    {
        "id": "8cc96f30.dad85",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "Brightness down",
        "func": "var step = global.get(\"Step\");\n\nvar brightness =  global.get(\"IKEA-Flur-Brightness\");\nvar ColorTemp = global.get(\"IKEA-Flur-ColorTemp\");\n\nif(brightness <= 255){\n    brightness = brightness - step; \n    global.set(\"IKEA-Flur-Brightness\",brightness);\n\t}\n\t\nif(brightness <= 0){\n    brightness = 1;\n    flow.set('press', false);\n    global.set(\"IKEA-Flur-Brightness\",brightness);\n    }\n\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 710,
        "y": 1040,
        "wires": [
            [
                "81a4325d.18e42",
                "3df263e0.f4289c"
            ]
        ]
    },
    {
        "id": "2012dc83.39e174",
        "type": "switch",
        "z": "13feb79.316a248",
        "name": "Control loop",
        "property": "press",
        "propertyType": "flow",
        "rules": [
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1130,
        "y": 960,
        "wires": [
            [
                "8cc96f30.dad85"
            ]
        ]
    },
    {
        "id": "1199e17b.726f6f",
        "type": "switch",
        "z": "13feb79.316a248",
        "name": "Control loop",
        "property": "press",
        "propertyType": "flow",
        "rules": [
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1130,
        "y": 1040,
        "wires": [
            [
                "edf77924.b162b8"
            ]
        ]
    },
    {
        "id": "dc72e9dc.1726d8",
        "type": "delay",
        "z": "13feb79.316a248",
        "name": "",
        "pauseType": "delay",
        "timeout": "100",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 950,
        "y": 1040,
        "wires": [
            [
                "1199e17b.726f6f"
            ]
        ]
    },
    {
        "id": "3df263e0.f4289c",
        "type": "delay",
        "z": "13feb79.316a248",
        "name": "",
        "pauseType": "delay",
        "timeout": "100",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "x": 950,
        "y": 960,
        "wires": [
            [
                "2012dc83.39e174"
            ]
        ]
    },
    {
        "id": "8d758ada.5d6ac8",
        "type": "change",
        "z": "13feb79.316a248",
        "name": "start",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 750,
        "y": 860,
        "wires": [
            [
                "e29a4a45.56fc98"
            ]
        ]
    },
    {
        "id": "4d736bfc.9c41d4",
        "type": "change",
        "z": "13feb79.316a248",
        "name": "stop",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 750,
        "y": 900,
        "wires": [
            [
                "e29a4a45.56fc98"
            ]
        ]
    },
    {
        "id": "e29a4a45.56fc98",
        "type": "change",
        "z": "13feb79.316a248",
        "name": "Control the loop",
        "rules": [
            {
                "t": "set",
                "p": "press",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1140,
        "y": 880,
        "wires": [
            []
        ]
    },
    {
        "id": "81a4325d.18e42",
        "type": "mqtt out",
        "z": "13feb79.316a248",
        "name": "Ikea-Flur",
        "topic": "/home/zigbee/Ikea-Flur/set",
        "qos": "",
        "retain": "",
        "broker": "9d4f73b8.d5ee7",
        "x": 1120,
        "y": 740,
        "wires": []
    },
    {
        "id": "e4e0690f.d760e8",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "ON",
        "func": "var brightness =  global.get(\"IKEA-Flur-Brightness\");\nvar ColorTemp = global.get(\"IKEA-Flur-ColorTemp\");\n\nmsg.payload = {\"state\":\"ON\",\"brightness\":brightness,\"color_temp\":ColorTemp};\n// node.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 750,
        "y": 740,
        "wires": [
            [
                "81a4325d.18e42"
            ]
        ]
    },
    {
        "id": "576eb264.fe489c",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "OFF",
        "func": "var step = global.get(\"Step\");\nvar brightness =  global.get(\"IKEA-Flur-Brightness\");\nvar ColorTemp = global.get(\"IKEA-Flur-ColorTemp\");\n\nmsg.payload = {\"state\":\"OFF\",\"brightness\":brightness,\"color_temp\":ColorTemp};\n// node.status({fill:\"blue\",shape:\"ring\",text:\"Brightness: \" + brightness });\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "x": 750,
        "y": 780,
        "wires": [
            [
                "81a4325d.18e42"
            ]
        ]
    },
    {
        "id": "658401ac.af822",
        "type": "mqtt in",
        "z": "13feb79.316a248",
        "name": "IKEA Button",
        "topic": "/home/zigbee/Ikea-01",
        "qos": "1",
        "datatype": "json",
        "broker": "9d4f73b8.d5ee7",
        "x": 110,
        "y": 900,
        "wires": [
            [
                "f90dccb7.66c17"
            ]
        ]
    },
    {
        "id": "652d43d9.81034c",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-Nacht",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 1480,
        "wires": [
            [
                "968bc48b.283498"
            ]
        ]
    },
    {
        "id": "968bc48b.283498",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "",
        "func": "global.set(\"Step,2\");\nglobal.set(\"IKEA-Flur-Brightness\",1);\nglobal.set(\"Osram-Schlazi-Brightness\",1);\nglobal.set(\"IKEA-Flur-ColorTemp\",454);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 1480,
        "wires": [
            [
                "97a6e874.cc31e8"
            ]
        ]
    },
    {
        "id": "4e1c72c2.7368ec",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "",
        "func": "global.set(\"Step,2\");\nglobal.set(\"IKEA-Flur-Brightness\",127);\nglobal.set(\"Osram-Schlazi-Brightness\",127);\nglobal.set(\"IKEA-Flur-ColorTemp\",355);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 1440,
        "wires": [
            [
                "ac595f31.e291"
            ]
        ]
    },
    {
        "id": "dfeaf20f.1a654",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "",
        "func": "global.set(\"Step,2\");\nglobal.set(\"IKEA-Flur-Brightness\",255);\nglobal.set(\"Osram-Schlazi-Brightness\",255);\nglobal.set(\"IKEA-Flur-ColorTemp\",155);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 1260,
        "wires": [
            [
                "1ce0dcf.e01c723"
            ]
        ]
    },
    {
        "id": "61f0ca70.1b3804",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-Abend",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 1440,
        "wires": [
            [
                "4e1c72c2.7368ec"
            ]
        ]
    },
    {
        "id": "4fdd17d1.3331d8",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-Tag",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 170,
        "y": 1260,
        "wires": [
            [
                "dfeaf20f.1a654"
            ]
        ]
    },
    {
        "id": "1ce0dcf.e01c723",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "",
        "links": [
            "58be99e2.717b78",
            "4e4922d5.a2e5ac"
        ],
        "x": 655,
        "y": 1260,
        "wires": []
    },
    {
        "id": "ac595f31.e291",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "",
        "links": [
            "751cbdea.5c0424",
            "7ecb1ac4.d69d64"
        ],
        "x": 655,
        "y": 1440,
        "wires": []
    },
    {
        "id": "97a6e874.cc31e8",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "",
        "links": [
            "58be99e2.717b78",
            "4e4922d5.a2e5ac"
        ],
        "x": 655,
        "y": 1480,
        "wires": []
    },
    {
        "id": "751cbdea.5c0424",
        "type": "link in",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-On",
        "links": [
            "ac595f31.e291",
            "c6f674de.fde188",
            "e2143ef.cfbcfc"
        ],
        "x": 635,
        "y": 700,
        "wires": [
            [
                "e4e0690f.d760e8"
            ]
        ]
    },
    {
        "id": "a3cbd609.9f4e68",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "",
        "func": "global.set(\"Step,2\");\nglobal.set(\"IKEA-Flur-Brightness\",64);\nglobal.set(\"Osram-Schlazi-Brightness\",64);\nglobal.set(\"IKEA-Flur-ColorTemp\",200);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 1220,
        "wires": [
            []
        ]
    },
    {
        "id": "a5f9a1b.f2e9b6",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-Morgens",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 1220,
        "wires": [
            [
                "a3cbd609.9f4e68"
            ]
        ]
    },
    {
        "id": "c6f674de.fde188",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "",
        "links": [
            "751cbdea.5c0424",
            "7ecb1ac4.d69d64"
        ],
        "x": 655,
        "y": 1220,
        "wires": []
    },
    {
        "id": "58be99e2.717b78",
        "type": "link in",
        "z": "13feb79.316a248",
        "name": "IKEA-Flur-Off",
        "links": [
            "1ce0dcf.e01c723",
            "97a6e874.cc31e8",
            "ad2622da.ff6fe"
        ],
        "x": 635,
        "y": 820,
        "wires": [
            [
                "576eb264.fe489c"
            ]
        ]
    },
    {
        "id": "f6724a0.d8506b8",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "Turn ON",
        "links": [
            "9c97700a.2aaef"
        ],
        "x": 975,
        "y": 260,
        "wires": []
    },
    {
        "id": "5baeeb10.552ca4",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "Turn OFF",
        "links": [
            "d48db04d.1e45e"
        ],
        "x": 975,
        "y": 300,
        "wires": []
    },
    {
        "id": "f3ab3bd9.7af178",
        "type": "switch",
        "z": "13feb79.316a248",
        "name": "Turn Eingang on / off",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 740,
        "y": 280,
        "wires": [
            [
                "f6724a0.d8506b8"
            ],
            [
                "5baeeb10.552ca4"
            ]
        ]
    },
    {
        "id": "84ceab36.a42168",
        "type": "inject",
        "z": "13feb79.316a248",
        "name": "",
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 130,
        "y": 1100,
        "wires": [
            [
                "466e97a2.828b98"
            ]
        ]
    },
    {
        "id": "12440ad0.9f1095",
        "type": "debug",
        "z": "13feb79.316a248",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 710,
        "y": 1100,
        "wires": []
    },
    {
        "id": "466e97a2.828b98",
        "type": "function",
        "z": "13feb79.316a248",
        "name": "",
        "func": "global.set(\"Step\",8);\nglobal.set(\"IKEA-Flur-Brightness\",1);\nglobal.set(\"Osram-Schlazi-Brightness\",1);\nglobal.set(\"IKEA-Flur-ColorTemp\",155);\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 430,
        "y": 1100,
        "wires": [
            [
                "12440ad0.9f1095"
            ]
        ]
    },
    {
        "id": "13860113.567b6f",
        "type": "switch",
        "z": "13feb79.316a248",
        "name": "Turn Flur on / off (1/0)",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 740,
        "y": 80,
        "wires": [
            [
                "e2143ef.cfbcfc"
            ],
            [
                "ad2622da.ff6fe"
            ]
        ]
    },
    {
        "id": "e2143ef.cfbcfc",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "Flur morgens / abends an",
        "links": [
            "751cbdea.5c0424"
        ],
        "x": 975,
        "y": 60,
        "wires": []
    },
    {
        "id": "ad2622da.ff6fe",
        "type": "link out",
        "z": "13feb79.316a248",
        "name": "Flur morgens / abends aus",
        "links": [
            "58be99e2.717b78"
        ],
        "x": 975,
        "y": 100,
        "wires": []
    },
    {
        "id": "ff67051e.1bc988",
        "type": "debug",
        "z": "13feb79.316a248",
        "name": "",
        "active": true,
        "tosidebar": false,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "x": 1030,
        "y": 480,
        "wires": []
    },
    {
        "id": "5bcac9ae.9816c8",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Flur Licht (morgens)",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "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": 420,
        "y": 80,
        "wires": [
            [
                "13860113.567b6f"
            ]
        ]
    },
    {
        "id": "be73dc9f.1c96b",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Flur Licht (abends)",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "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": [
            [
                "13860113.567b6f"
            ]
        ]
    },
    {
        "id": "c414e947.9e76c8",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Nachtschaltung ab 23.00h",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "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": 130,
        "y": 1520,
        "wires": [
            [
                "968bc48b.283498"
            ]
        ]
    },
    {
        "id": "b3a6234.14ac8e",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Tag-Schaltung",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "ontime": "sunrise",
        "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": 160,
        "y": 1300,
        "wires": [
            [
                "dfeaf20f.1a654"
            ]
        ]
    },
    {
        "id": "9ed08cae.2f6bf",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Flur Licht (abends)",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "ontime": "sunset",
        "ontopic": "",
        "onpayload": "1",
        "onoffset": 0,
        "onrandomoffset": 0,
        "offtime": "",
        "offtopic": "",
        "offpayload": "0",
        "offoffset": 0,
        "offrandomoffset": 0,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": true,
        "sun": true,
        "x": 150,
        "y": 1380,
        "wires": [
            [
                "4e1c72c2.7368ec"
            ]
        ]
    },
    {
        "id": "a2f31c2d.4f90a",
        "type": "schedex",
        "z": "13feb79.316a248",
        "name": "Flur Licht (morgens)",
        "passthroughunhandled": false,
        "suspended": false,
        "lat": "49",
        "lon": "9",
        "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": 140,
        "y": 1160,
        "wires": [
            [
                "a3cbd609.9f4e68"
            ]
        ]
    },
    {
        "id": "683acfad.67eb7",
        "type": "wemo-emulator",
        "z": "13feb79.316a248",
        "name": "Charly",
        "friendlyName": "Charly",
        "serial": "40102",
        "port": "40102",
        "onTopic": "",
        "onPayload": "on",
        "offTopic": "",
        "offPayload": "off",
        "x": 190,
        "y": 440,
        "wires": [
            [
                "be73dc9f.1c96b",
                "ceb4095a.3bab98",
                "f3ab3bd9.7af178"
            ]
        ]
    },
    {
        "id": "9d4f73b8.d5ee7",
        "type": "mqtt-broker",
        "name": "miti32",
        "broker": "192.168.123.40",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    }
]

Comments