NittyGritty

Auto-Licht Flur

Feb 5th, 2021 (edited)
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "13feb79.316a248",
  4.         "type": "tab",
  5.         "label": "Auto Licht Flur",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "897c5177.92d4e",
  11.         "type": "http request",
  12.         "z": "13feb79.316a248",
  13.         "name": "Plug02-LED",
  14.         "method": "GET",
  15.         "ret": "txt",
  16.         "paytoqs": false,
  17.         "url": "http://192.168.123.106/tools?cmd=GPIO,14,{{{payload}}}",
  18.         "tls": "",
  19.         "proxy": "",
  20.         "authType": "",
  21.         "x": 1030,
  22.         "y": 440,
  23.         "wires": [
  24.             []
  25.         ]
  26.     },
  27.     {
  28.         "id": "2efe1e11.1c22a2",
  29.         "type": "function",
  30.         "z": "13feb79.316a248",
  31.         "name": "Inverts msg.payload",
  32.         "func": "if (msg.payload == \"1\") {\n    msg = {payload:\"0\"};\n}\n    else {\n    msg = {payload:\"1\"};\n}\nreturn msg;",
  33.         "outputs": 1,
  34.         "noerr": 0,
  35.         "x": 800,
  36.         "y": 380,
  37.         "wires": [
  38.             [
  39.                 "d1644ced.fb3c3"
  40.             ]
  41.         ]
  42.     },
  43.     {
  44.         "id": "d1644ced.fb3c3",
  45.         "type": "http request",
  46.         "z": "13feb79.316a248",
  47.         "name": "Plug02-Relais",
  48.         "method": "GET",
  49.         "ret": "txt",
  50.         "paytoqs": false,
  51.         "url": "http://192.168.123.106/tools?cmd=GPIO,12,{{{payload}}}",
  52.         "tls": "",
  53.         "proxy": "",
  54.         "authType": "",
  55.         "x": 1040,
  56.         "y": 380,
  57.         "wires": [
  58.             []
  59.         ]
  60.     },
  61.     {
  62.         "id": "3b0be589.e8852a",
  63.         "type": "inject",
  64.         "z": "13feb79.316a248",
  65.         "name": "",
  66.         "repeat": "",
  67.         "crontab": "",
  68.         "once": false,
  69.         "topic": "",
  70.         "payload": "on",
  71.         "payloadType": "str",
  72.         "x": 190,
  73.         "y": 300,
  74.         "wires": [
  75.             [
  76.                 "be73dc9f.1c96b"
  77.             ]
  78.         ]
  79.     },
  80.     {
  81.         "id": "42802f52.9d65e",
  82.         "type": "inject",
  83.         "z": "13feb79.316a248",
  84.         "name": "Off",
  85.         "repeat": "",
  86.         "crontab": "",
  87.         "once": false,
  88.         "topic": "",
  89.         "payload": "off",
  90.         "payloadType": "str",
  91.         "x": 190,
  92.         "y": 260,
  93.         "wires": [
  94.             [
  95.                 "be73dc9f.1c96b"
  96.             ]
  97.         ]
  98.     },
  99.     {
  100.         "id": "fe510b0f.b7a8f8",
  101.         "type": "inject",
  102.         "z": "13feb79.316a248",
  103.         "name": "",
  104.         "repeat": "",
  105.         "crontab": "",
  106.         "once": false,
  107.         "topic": "",
  108.         "payload": "on",
  109.         "payloadType": "str",
  110.         "x": 187,
  111.         "y": 121,
  112.         "wires": [
  113.             [
  114.                 "5bcac9ae.9816c8"
  115.             ]
  116.         ]
  117.     },
  118.     {
  119.         "id": "27e79737.45f2d8",
  120.         "type": "inject",
  121.         "z": "13feb79.316a248",
  122.         "name": "Off",
  123.         "repeat": "",
  124.         "crontab": "",
  125.         "once": false,
  126.         "topic": "",
  127.         "payload": "off",
  128.         "payloadType": "str",
  129.         "x": 187,
  130.         "y": 81,
  131.         "wires": [
  132.             [
  133.                 "5bcac9ae.9816c8"
  134.             ]
  135.         ]
  136.     },
  137.     {
  138.         "id": "aad4e8e7.195b28",
  139.         "type": "comment",
  140.         "z": "13feb79.316a248",
  141.         "name": "Licht Charllie (Flur)",
  142.         "info": "",
  143.         "x": 110,
  144.         "y": 20,
  145.         "wires": []
  146.     },
  147.     {
  148.         "id": "d8819d1.557406",
  149.         "type": "inject",
  150.         "z": "13feb79.316a248",
  151.         "name": "Resume Schedule",
  152.         "repeat": "",
  153.         "crontab": "",
  154.         "once": false,
  155.         "onceDelay": 0.1,
  156.         "topic": "",
  157.         "payload": "suspended false",
  158.         "payloadType": "str",
  159.         "x": 150,
  160.         "y": 200,
  161.         "wires": [
  162.             [
  163.                 "5bcac9ae.9816c8"
  164.             ]
  165.         ]
  166.     },
  167.     {
  168.         "id": "da6988d3.49bf38",
  169.         "type": "inject",
  170.         "z": "13feb79.316a248",
  171.         "name": "Suspend",
  172.         "repeat": "",
  173.         "crontab": "",
  174.         "once": false,
  175.         "onceDelay": 0.1,
  176.         "topic": "",
  177.         "payload": "suspended true",
  178.         "payloadType": "str",
  179.         "x": 180,
  180.         "y": 160,
  181.         "wires": [
  182.             [
  183.                 "5bcac9ae.9816c8"
  184.             ]
  185.         ]
  186.     },
  187.     {
  188.         "id": "a5d390e4.bf00b",
  189.         "type": "inject",
  190.         "z": "13feb79.316a248",
  191.         "name": "Resume Schedule",
  192.         "repeat": "",
  193.         "crontab": "",
  194.         "once": false,
  195.         "onceDelay": 0.1,
  196.         "topic": "",
  197.         "payload": "suspended false",
  198.         "payloadType": "str",
  199.         "x": 150,
  200.         "y": 380,
  201.         "wires": [
  202.             [
  203.                 "be73dc9f.1c96b"
  204.             ]
  205.         ]
  206.     },
  207.     {
  208.         "id": "d5aadb54.4c4e48",
  209.         "type": "inject",
  210.         "z": "13feb79.316a248",
  211.         "name": "Suspend",
  212.         "repeat": "",
  213.         "crontab": "",
  214.         "once": false,
  215.         "onceDelay": 0.1,
  216.         "topic": "",
  217.         "payload": "suspended true",
  218.         "payloadType": "str",
  219.         "x": 180,
  220.         "y": 340,
  221.         "wires": [
  222.             [
  223.                 "be73dc9f.1c96b"
  224.             ]
  225.         ]
  226.     },
  227.     {
  228.         "id": "70191001.50ae6",
  229.         "type": "mqtt in",
  230.         "z": "13feb79.316a248",
  231.         "name": "",
  232.         "topic": "/home/Zo18/RF-Bridge01/relay/3",
  233.         "qos": "2",
  234.         "datatype": "auto",
  235.         "broker": "9d4f73b8.d5ee7",
  236.         "x": 170,
  237.         "y": 580,
  238.         "wires": [
  239.             [
  240.                 "df7440f5.b03e8"
  241.             ]
  242.         ]
  243.     },
  244.     {
  245.         "id": "df7440f5.b03e8",
  246.         "type": "trigger",
  247.         "z": "13feb79.316a248",
  248.         "name": "Pulse",
  249.         "op1": "1",
  250.         "op2": "0",
  251.         "op1type": "str",
  252.         "op2type": "str",
  253.         "duration": "2",
  254.         "extend": true,
  255.         "units": "min",
  256.         "reset": "off",
  257.         "bytopic": "all",
  258.         "outputs": 1,
  259.         "x": 530,
  260.         "y": 580,
  261.         "wires": [
  262.             [
  263.                 "ceb4095a.3bab98",
  264.                 "3a58022b.c9ed9e"
  265.             ]
  266.         ]
  267.     },
  268.     {
  269.         "id": "5eb567b2.ed0358",
  270.         "type": "mqtt in",
  271.         "z": "13feb79.316a248",
  272.         "name": "",
  273.         "topic": "/home/Zo18/Licht/Flur",
  274.         "qos": "2",
  275.         "datatype": "auto",
  276.         "broker": "9d4f73b8.d5ee7",
  277.         "x": 780,
  278.         "y": 440,
  279.         "wires": [
  280.             [
  281.                 "2efe1e11.1c22a2",
  282.                 "897c5177.92d4e",
  283.                 "ff67051e.1bc988"
  284.             ]
  285.         ]
  286.     },
  287.     {
  288.         "id": "3a58022b.c9ed9e",
  289.         "type": "mqtt out",
  290.         "z": "13feb79.316a248",
  291.         "name": "",
  292.         "topic": "/home/Zo18/Licht/Flur",
  293.         "qos": "",
  294.         "retain": "",
  295.         "broker": "9d4f73b8.d5ee7",
  296.         "x": 780,
  297.         "y": 500,
  298.         "wires": []
  299.     },
  300.     {
  301.         "id": "ceb4095a.3bab98",
  302.         "type": "switch",
  303.         "z": "13feb79.316a248",
  304.         "name": "Flurlicht ein / aus",
  305.         "property": "payload",
  306.         "propertyType": "msg",
  307.         "rules": [
  308.             {
  309.                 "t": "eq",
  310.                 "v": "1",
  311.                 "vt": "str"
  312.             },
  313.             {
  314.                 "t": "eq",
  315.                 "v": "0",
  316.                 "vt": "str"
  317.             }
  318.         ],
  319.         "checkall": "true",
  320.         "repair": false,
  321.         "outputs": 2,
  322.         "x": 770,
  323.         "y": 580,
  324.         "wires": [
  325.             [
  326.                 "e4e0690f.d760e8"
  327.             ],
  328.             [
  329.                 "576eb264.fe489c"
  330.             ]
  331.         ]
  332.     },
  333.     {
  334.         "id": "24175d10.8c5e92",
  335.         "type": "inject",
  336.         "z": "13feb79.316a248",
  337.         "name": "On",
  338.         "repeat": "",
  339.         "crontab": "",
  340.         "once": false,
  341.         "onceDelay": 0.1,
  342.         "topic": "",
  343.         "payload": "",
  344.         "payloadType": "date",
  345.         "x": 130,
  346.         "y": 740,
  347.         "wires": [
  348.             [
  349.                 "e4e0690f.d760e8"
  350.             ]
  351.         ]
  352.     },
  353.     {
  354.         "id": "86b5276f.16c678",
  355.         "type": "inject",
  356.         "z": "13feb79.316a248",
  357.         "name": "Off",
  358.         "repeat": "",
  359.         "crontab": "",
  360.         "once": false,
  361.         "onceDelay": 0.1,
  362.         "topic": "",
  363.         "payload": "",
  364.         "payloadType": "date",
  365.         "x": 130,
  366.         "y": 780,
  367.         "wires": [
  368.             [
  369.                 "576eb264.fe489c"
  370.             ]
  371.         ]
  372.     },
  373.     {
  374.         "id": "f90dccb7.66c17",
  375.         "type": "switch",
  376.         "z": "13feb79.316a248",
  377.         "name": "Messages",
  378.         "property": "payload.action",
  379.         "propertyType": "msg",
  380.         "rules": [
  381.             {
  382.                 "t": "eq",
  383.                 "v": "brightness_up_click",
  384.                 "vt": "str"
  385.             },
  386.             {
  387.                 "t": "eq",
  388.                 "v": "brightness_down_click",
  389.                 "vt": "str"
  390.             },
  391.             {
  392.                 "t": "eq",
  393.                 "v": "brightness_up_release",
  394.                 "vt": "str"
  395.             },
  396.             {
  397.                 "t": "eq",
  398.                 "v": "brightness_up_hold",
  399.                 "vt": "str"
  400.             },
  401.             {
  402.                 "t": "eq",
  403.                 "v": "brightness_down_hold",
  404.                 "vt": "str"
  405.             },
  406.             {
  407.                 "t": "eq",
  408.                 "v": "brightness_down_release",
  409.                 "vt": "str"
  410.             }
  411.         ],
  412.         "checkall": "true",
  413.         "repair": false,
  414.         "outputs": 6,
  415.         "x": 330,
  416.         "y": 900,
  417.         "wires": [
  418.             [
  419.                 "e4e0690f.d760e8"
  420.             ],
  421.             [
  422.                 "576eb264.fe489c"
  423.             ],
  424.             [
  425.                 "4d736bfc.9c41d4"
  426.             ],
  427.             [
  428.                 "edf77924.b162b8",
  429.                 "8d758ada.5d6ac8"
  430.             ],
  431.             [
  432.                 "8cc96f30.dad85",
  433.                 "8d758ada.5d6ac8"
  434.             ],
  435.             [
  436.                 "4d736bfc.9c41d4"
  437.             ]
  438.         ]
  439.     },
  440.     {
  441.         "id": "edf77924.b162b8",
  442.         "type": "function",
  443.         "z": "13feb79.316a248",
  444.         "name": "Brightness up",
  445.         "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;",
  446.         "outputs": 1,
  447.         "noerr": 0,
  448.         "x": 720,
  449.         "y": 960,
  450.         "wires": [
  451.             [
  452.                 "81a4325d.18e42",
  453.                 "dc72e9dc.1726d8"
  454.             ]
  455.         ]
  456.     },
  457.     {
  458.         "id": "8cc96f30.dad85",
  459.         "type": "function",
  460.         "z": "13feb79.316a248",
  461.         "name": "Brightness down",
  462.         "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;",
  463.         "outputs": 1,
  464.         "noerr": 0,
  465.         "x": 710,
  466.         "y": 1040,
  467.         "wires": [
  468.             [
  469.                 "81a4325d.18e42",
  470.                 "3df263e0.f4289c"
  471.             ]
  472.         ]
  473.     },
  474.     {
  475.         "id": "2012dc83.39e174",
  476.         "type": "switch",
  477.         "z": "13feb79.316a248",
  478.         "name": "Control loop",
  479.         "property": "press",
  480.         "propertyType": "flow",
  481.         "rules": [
  482.             {
  483.                 "t": "true"
  484.             }
  485.         ],
  486.         "checkall": "true",
  487.         "repair": false,
  488.         "outputs": 1,
  489.         "x": 1130,
  490.         "y": 960,
  491.         "wires": [
  492.             [
  493.                 "8cc96f30.dad85"
  494.             ]
  495.         ]
  496.     },
  497.     {
  498.         "id": "1199e17b.726f6f",
  499.         "type": "switch",
  500.         "z": "13feb79.316a248",
  501.         "name": "Control loop",
  502.         "property": "press",
  503.         "propertyType": "flow",
  504.         "rules": [
  505.             {
  506.                 "t": "true"
  507.             }
  508.         ],
  509.         "checkall": "true",
  510.         "repair": false,
  511.         "outputs": 1,
  512.         "x": 1130,
  513.         "y": 1040,
  514.         "wires": [
  515.             [
  516.                 "edf77924.b162b8"
  517.             ]
  518.         ]
  519.     },
  520.     {
  521.         "id": "dc72e9dc.1726d8",
  522.         "type": "delay",
  523.         "z": "13feb79.316a248",
  524.         "name": "",
  525.         "pauseType": "delay",
  526.         "timeout": "100",
  527.         "timeoutUnits": "milliseconds",
  528.         "rate": "1",
  529.         "nbRateUnits": "1",
  530.         "rateUnits": "second",
  531.         "randomFirst": "1",
  532.         "randomLast": "5",
  533.         "randomUnits": "seconds",
  534.         "drop": false,
  535.         "x": 950,
  536.         "y": 1040,
  537.         "wires": [
  538.             [
  539.                 "1199e17b.726f6f"
  540.             ]
  541.         ]
  542.     },
  543.     {
  544.         "id": "3df263e0.f4289c",
  545.         "type": "delay",
  546.         "z": "13feb79.316a248",
  547.         "name": "",
  548.         "pauseType": "delay",
  549.         "timeout": "100",
  550.         "timeoutUnits": "milliseconds",
  551.         "rate": "1",
  552.         "nbRateUnits": "1",
  553.         "rateUnits": "second",
  554.         "randomFirst": "1",
  555.         "randomLast": "5",
  556.         "randomUnits": "seconds",
  557.         "drop": false,
  558.         "x": 950,
  559.         "y": 960,
  560.         "wires": [
  561.             [
  562.                 "2012dc83.39e174"
  563.             ]
  564.         ]
  565.     },
  566.     {
  567.         "id": "8d758ada.5d6ac8",
  568.         "type": "change",
  569.         "z": "13feb79.316a248",
  570.         "name": "start",
  571.         "rules": [
  572.             {
  573.                 "t": "set",
  574.                 "p": "payload",
  575.                 "pt": "msg",
  576.                 "to": "true",
  577.                 "tot": "bool"
  578.             }
  579.         ],
  580.         "action": "",
  581.         "property": "",
  582.         "from": "",
  583.         "to": "",
  584.         "reg": false,
  585.         "x": 750,
  586.         "y": 860,
  587.         "wires": [
  588.             [
  589.                 "e29a4a45.56fc98"
  590.             ]
  591.         ]
  592.     },
  593.     {
  594.         "id": "4d736bfc.9c41d4",
  595.         "type": "change",
  596.         "z": "13feb79.316a248",
  597.         "name": "stop",
  598.         "rules": [
  599.             {
  600.                 "t": "set",
  601.                 "p": "payload",
  602.                 "pt": "msg",
  603.                 "to": "false",
  604.                 "tot": "bool"
  605.             }
  606.         ],
  607.         "action": "",
  608.         "property": "",
  609.         "from": "",
  610.         "to": "",
  611.         "reg": false,
  612.         "x": 750,
  613.         "y": 900,
  614.         "wires": [
  615.             [
  616.                 "e29a4a45.56fc98"
  617.             ]
  618.         ]
  619.     },
  620.     {
  621.         "id": "e29a4a45.56fc98",
  622.         "type": "change",
  623.         "z": "13feb79.316a248",
  624.         "name": "Control the loop",
  625.         "rules": [
  626.             {
  627.                 "t": "set",
  628.                 "p": "press",
  629.                 "pt": "flow",
  630.                 "to": "payload",
  631.                 "tot": "msg"
  632.             }
  633.         ],
  634.         "action": "",
  635.         "property": "",
  636.         "from": "",
  637.         "to": "",
  638.         "reg": false,
  639.         "x": 1140,
  640.         "y": 880,
  641.         "wires": [
  642.             []
  643.         ]
  644.     },
  645.     {
  646.         "id": "81a4325d.18e42",
  647.         "type": "mqtt out",
  648.         "z": "13feb79.316a248",
  649.         "name": "Ikea-Flur",
  650.         "topic": "/home/zigbee/Ikea-Flur/set",
  651.         "qos": "",
  652.         "retain": "",
  653.         "broker": "9d4f73b8.d5ee7",
  654.         "x": 1120,
  655.         "y": 740,
  656.         "wires": []
  657.     },
  658.     {
  659.         "id": "e4e0690f.d760e8",
  660.         "type": "function",
  661.         "z": "13feb79.316a248",
  662.         "name": "ON",
  663.         "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",
  664.         "outputs": 1,
  665.         "noerr": 0,
  666.         "x": 750,
  667.         "y": 740,
  668.         "wires": [
  669.             [
  670.                 "81a4325d.18e42"
  671.             ]
  672.         ]
  673.     },
  674.     {
  675.         "id": "576eb264.fe489c",
  676.         "type": "function",
  677.         "z": "13feb79.316a248",
  678.         "name": "OFF",
  679.         "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",
  680.         "outputs": 1,
  681.         "noerr": 0,
  682.         "x": 750,
  683.         "y": 780,
  684.         "wires": [
  685.             [
  686.                 "81a4325d.18e42"
  687.             ]
  688.         ]
  689.     },
  690.     {
  691.         "id": "658401ac.af822",
  692.         "type": "mqtt in",
  693.         "z": "13feb79.316a248",
  694.         "name": "IKEA Button",
  695.         "topic": "/home/zigbee/Ikea-01",
  696.         "qos": "1",
  697.         "datatype": "json",
  698.         "broker": "9d4f73b8.d5ee7",
  699.         "x": 110,
  700.         "y": 900,
  701.         "wires": [
  702.             [
  703.                 "f90dccb7.66c17"
  704.             ]
  705.         ]
  706.     },
  707.     {
  708.         "id": "652d43d9.81034c",
  709.         "type": "inject",
  710.         "z": "13feb79.316a248",
  711.         "name": "IKEA-Flur-Nacht",
  712.         "repeat": "",
  713.         "crontab": "",
  714.         "once": false,
  715.         "onceDelay": 0.1,
  716.         "topic": "",
  717.         "payload": "",
  718.         "payloadType": "date",
  719.         "x": 160,
  720.         "y": 1480,
  721.         "wires": [
  722.             [
  723.                 "968bc48b.283498"
  724.             ]
  725.         ]
  726.     },
  727.     {
  728.         "id": "968bc48b.283498",
  729.         "type": "function",
  730.         "z": "13feb79.316a248",
  731.         "name": "",
  732.         "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;",
  733.         "outputs": 1,
  734.         "noerr": 0,
  735.         "x": 450,
  736.         "y": 1480,
  737.         "wires": [
  738.             [
  739.                 "97a6e874.cc31e8"
  740.             ]
  741.         ]
  742.     },
  743.     {
  744.         "id": "4e1c72c2.7368ec",
  745.         "type": "function",
  746.         "z": "13feb79.316a248",
  747.         "name": "",
  748.         "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;",
  749.         "outputs": 1,
  750.         "noerr": 0,
  751.         "x": 450,
  752.         "y": 1440,
  753.         "wires": [
  754.             [
  755.                 "ac595f31.e291"
  756.             ]
  757.         ]
  758.     },
  759.     {
  760.         "id": "dfeaf20f.1a654",
  761.         "type": "function",
  762.         "z": "13feb79.316a248",
  763.         "name": "",
  764.         "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;",
  765.         "outputs": 1,
  766.         "noerr": 0,
  767.         "x": 450,
  768.         "y": 1260,
  769.         "wires": [
  770.             [
  771.                 "1ce0dcf.e01c723"
  772.             ]
  773.         ]
  774.     },
  775.     {
  776.         "id": "61f0ca70.1b3804",
  777.         "type": "inject",
  778.         "z": "13feb79.316a248",
  779.         "name": "IKEA-Flur-Abend",
  780.         "repeat": "",
  781.         "crontab": "",
  782.         "once": false,
  783.         "onceDelay": 0.1,
  784.         "topic": "",
  785.         "payload": "",
  786.         "payloadType": "date",
  787.         "x": 160,
  788.         "y": 1440,
  789.         "wires": [
  790.             [
  791.                 "4e1c72c2.7368ec"
  792.             ]
  793.         ]
  794.     },
  795.     {
  796.         "id": "4fdd17d1.3331d8",
  797.         "type": "inject",
  798.         "z": "13feb79.316a248",
  799.         "name": "IKEA-Flur-Tag",
  800.         "repeat": "",
  801.         "crontab": "",
  802.         "once": false,
  803.         "onceDelay": 0.1,
  804.         "topic": "",
  805.         "payload": "",
  806.         "payloadType": "date",
  807.         "x": 170,
  808.         "y": 1260,
  809.         "wires": [
  810.             [
  811.                 "dfeaf20f.1a654"
  812.             ]
  813.         ]
  814.     },
  815.     {
  816.         "id": "1ce0dcf.e01c723",
  817.         "type": "link out",
  818.         "z": "13feb79.316a248",
  819.         "name": "",
  820.         "links": [
  821.             "58be99e2.717b78",
  822.             "4e4922d5.a2e5ac"
  823.         ],
  824.         "x": 655,
  825.         "y": 1260,
  826.         "wires": []
  827.     },
  828.     {
  829.         "id": "ac595f31.e291",
  830.         "type": "link out",
  831.         "z": "13feb79.316a248",
  832.         "name": "",
  833.         "links": [
  834.             "751cbdea.5c0424",
  835.             "7ecb1ac4.d69d64"
  836.         ],
  837.         "x": 655,
  838.         "y": 1440,
  839.         "wires": []
  840.     },
  841.     {
  842.         "id": "97a6e874.cc31e8",
  843.         "type": "link out",
  844.         "z": "13feb79.316a248",
  845.         "name": "",
  846.         "links": [
  847.             "58be99e2.717b78",
  848.             "4e4922d5.a2e5ac"
  849.         ],
  850.         "x": 655,
  851.         "y": 1480,
  852.         "wires": []
  853.     },
  854.     {
  855.         "id": "751cbdea.5c0424",
  856.         "type": "link in",
  857.         "z": "13feb79.316a248",
  858.         "name": "IKEA-Flur-On",
  859.         "links": [
  860.             "ac595f31.e291",
  861.             "c6f674de.fde188",
  862.             "e2143ef.cfbcfc"
  863.         ],
  864.         "x": 635,
  865.         "y": 700,
  866.         "wires": [
  867.             [
  868.                 "e4e0690f.d760e8"
  869.             ]
  870.         ]
  871.     },
  872.     {
  873.         "id": "a3cbd609.9f4e68",
  874.         "type": "function",
  875.         "z": "13feb79.316a248",
  876.         "name": "",
  877.         "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;",
  878.         "outputs": 1,
  879.         "noerr": 0,
  880.         "x": 450,
  881.         "y": 1220,
  882.         "wires": [
  883.             []
  884.         ]
  885.     },
  886.     {
  887.         "id": "a5f9a1b.f2e9b6",
  888.         "type": "inject",
  889.         "z": "13feb79.316a248",
  890.         "name": "IKEA-Flur-Morgens",
  891.         "repeat": "",
  892.         "crontab": "",
  893.         "once": false,
  894.         "onceDelay": 0.1,
  895.         "topic": "",
  896.         "payload": "",
  897.         "payloadType": "date",
  898.         "x": 150,
  899.         "y": 1220,
  900.         "wires": [
  901.             [
  902.                 "a3cbd609.9f4e68"
  903.             ]
  904.         ]
  905.     },
  906.     {
  907.         "id": "c6f674de.fde188",
  908.         "type": "link out",
  909.         "z": "13feb79.316a248",
  910.         "name": "",
  911.         "links": [
  912.             "751cbdea.5c0424",
  913.             "7ecb1ac4.d69d64"
  914.         ],
  915.         "x": 655,
  916.         "y": 1220,
  917.         "wires": []
  918.     },
  919.     {
  920.         "id": "58be99e2.717b78",
  921.         "type": "link in",
  922.         "z": "13feb79.316a248",
  923.         "name": "IKEA-Flur-Off",
  924.         "links": [
  925.             "1ce0dcf.e01c723",
  926.             "97a6e874.cc31e8",
  927.             "ad2622da.ff6fe"
  928.         ],
  929.         "x": 635,
  930.         "y": 820,
  931.         "wires": [
  932.             [
  933.                 "576eb264.fe489c"
  934.             ]
  935.         ]
  936.     },
  937.     {
  938.         "id": "f6724a0.d8506b8",
  939.         "type": "link out",
  940.         "z": "13feb79.316a248",
  941.         "name": "Turn ON",
  942.         "links": [
  943.             "9c97700a.2aaef"
  944.         ],
  945.         "x": 975,
  946.         "y": 260,
  947.         "wires": []
  948.     },
  949.     {
  950.         "id": "5baeeb10.552ca4",
  951.         "type": "link out",
  952.         "z": "13feb79.316a248",
  953.         "name": "Turn OFF",
  954.         "links": [
  955.             "d48db04d.1e45e"
  956.         ],
  957.         "x": 975,
  958.         "y": 300,
  959.         "wires": []
  960.     },
  961.     {
  962.         "id": "f3ab3bd9.7af178",
  963.         "type": "switch",
  964.         "z": "13feb79.316a248",
  965.         "name": "Turn Eingang on / off",
  966.         "property": "payload",
  967.         "propertyType": "msg",
  968.         "rules": [
  969.             {
  970.                 "t": "eq",
  971.                 "v": "1",
  972.                 "vt": "str"
  973.             },
  974.             {
  975.                 "t": "eq",
  976.                 "v": "0",
  977.                 "vt": "str"
  978.             }
  979.         ],
  980.         "checkall": "true",
  981.         "repair": false,
  982.         "outputs": 2,
  983.         "x": 740,
  984.         "y": 280,
  985.         "wires": [
  986.             [
  987.                 "f6724a0.d8506b8"
  988.             ],
  989.             [
  990.                 "5baeeb10.552ca4"
  991.             ]
  992.         ]
  993.     },
  994.     {
  995.         "id": "84ceab36.a42168",
  996.         "type": "inject",
  997.         "z": "13feb79.316a248",
  998.         "name": "",
  999.         "repeat": "",
  1000.         "crontab": "",
  1001.         "once": true,
  1002.         "onceDelay": 0.1,
  1003.         "topic": "",
  1004.         "payload": "",
  1005.         "payloadType": "date",
  1006.         "x": 130,
  1007.         "y": 1100,
  1008.         "wires": [
  1009.             [
  1010.                 "466e97a2.828b98"
  1011.             ]
  1012.         ]
  1013.     },
  1014.     {
  1015.         "id": "12440ad0.9f1095",
  1016.         "type": "debug",
  1017.         "z": "13feb79.316a248",
  1018.         "name": "",
  1019.         "active": true,
  1020.         "tosidebar": true,
  1021.         "console": false,
  1022.         "tostatus": false,
  1023.         "complete": "false",
  1024.         "x": 710,
  1025.         "y": 1100,
  1026.         "wires": []
  1027.     },
  1028.     {
  1029.         "id": "466e97a2.828b98",
  1030.         "type": "function",
  1031.         "z": "13feb79.316a248",
  1032.         "name": "",
  1033.         "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;",
  1034.         "outputs": 1,
  1035.         "noerr": 0,
  1036.         "x": 430,
  1037.         "y": 1100,
  1038.         "wires": [
  1039.             [
  1040.                 "12440ad0.9f1095"
  1041.             ]
  1042.         ]
  1043.     },
  1044.     {
  1045.         "id": "13860113.567b6f",
  1046.         "type": "switch",
  1047.         "z": "13feb79.316a248",
  1048.         "name": "Turn Flur on / off (1/0)",
  1049.         "property": "payload",
  1050.         "propertyType": "msg",
  1051.         "rules": [
  1052.             {
  1053.                 "t": "eq",
  1054.                 "v": "1",
  1055.                 "vt": "str"
  1056.             },
  1057.             {
  1058.                 "t": "eq",
  1059.                 "v": "0",
  1060.                 "vt": "str"
  1061.             }
  1062.         ],
  1063.         "checkall": "true",
  1064.         "repair": false,
  1065.         "outputs": 2,
  1066.         "x": 740,
  1067.         "y": 80,
  1068.         "wires": [
  1069.             [
  1070.                 "e2143ef.cfbcfc"
  1071.             ],
  1072.             [
  1073.                 "ad2622da.ff6fe"
  1074.             ]
  1075.         ]
  1076.     },
  1077.     {
  1078.         "id": "e2143ef.cfbcfc",
  1079.         "type": "link out",
  1080.         "z": "13feb79.316a248",
  1081.         "name": "Flur morgens / abends an",
  1082.         "links": [
  1083.             "751cbdea.5c0424"
  1084.         ],
  1085.         "x": 975,
  1086.         "y": 60,
  1087.         "wires": []
  1088.     },
  1089.     {
  1090.         "id": "ad2622da.ff6fe",
  1091.         "type": "link out",
  1092.         "z": "13feb79.316a248",
  1093.         "name": "Flur morgens / abends aus",
  1094.         "links": [
  1095.             "58be99e2.717b78"
  1096.         ],
  1097.         "x": 975,
  1098.         "y": 100,
  1099.         "wires": []
  1100.     },
  1101.     {
  1102.         "id": "ff67051e.1bc988",
  1103.         "type": "debug",
  1104.         "z": "13feb79.316a248",
  1105.         "name": "",
  1106.         "active": true,
  1107.         "tosidebar": false,
  1108.         "console": false,
  1109.         "tostatus": true,
  1110.         "complete": "payload",
  1111.         "targetType": "msg",
  1112.         "x": 1030,
  1113.         "y": 480,
  1114.         "wires": []
  1115.     },
  1116.     {
  1117.         "id": "5bcac9ae.9816c8",
  1118.         "type": "schedex",
  1119.         "z": "13feb79.316a248",
  1120.         "name": "Flur Licht (morgens)",
  1121.         "passthroughunhandled": false,
  1122.         "suspended": false,
  1123.         "lat": "49",
  1124.         "lon": "9",
  1125.         "ontime": "5:30",
  1126.         "ontopic": "",
  1127.         "onpayload": "1",
  1128.         "onoffset": 0,
  1129.         "onrandomoffset": 0,
  1130.         "offtime": "5:50",
  1131.         "offtopic": "",
  1132.         "offpayload": "0",
  1133.         "offoffset": 0,
  1134.         "offrandomoffset": 0,
  1135.         "mon": true,
  1136.         "tue": true,
  1137.         "wed": true,
  1138.         "thu": true,
  1139.         "fri": true,
  1140.         "sat": false,
  1141.         "sun": false,
  1142.         "x": 420,
  1143.         "y": 80,
  1144.         "wires": [
  1145.             [
  1146.                 "13860113.567b6f"
  1147.             ]
  1148.         ]
  1149.     },
  1150.     {
  1151.         "id": "be73dc9f.1c96b",
  1152.         "type": "schedex",
  1153.         "z": "13feb79.316a248",
  1154.         "name": "Flur Licht (abends)",
  1155.         "passthroughunhandled": false,
  1156.         "suspended": false,
  1157.         "lat": "49",
  1158.         "lon": "9",
  1159.         "ontime": "sunset",
  1160.         "ontopic": "",
  1161.         "onpayload": "1",
  1162.         "onoffset": 0,
  1163.         "onrandomoffset": 0,
  1164.         "offtime": "23:00",
  1165.         "offtopic": "",
  1166.         "offpayload": "0",
  1167.         "offoffset": 0,
  1168.         "offrandomoffset": 0,
  1169.         "mon": true,
  1170.         "tue": true,
  1171.         "wed": true,
  1172.         "thu": true,
  1173.         "fri": true,
  1174.         "sat": true,
  1175.         "sun": true,
  1176.         "x": 410,
  1177.         "y": 260,
  1178.         "wires": [
  1179.             [
  1180.                 "13860113.567b6f"
  1181.             ]
  1182.         ]
  1183.     },
  1184.     {
  1185.         "id": "c414e947.9e76c8",
  1186.         "type": "schedex",
  1187.         "z": "13feb79.316a248",
  1188.         "name": "Nachtschaltung ab 23.00h",
  1189.         "passthroughunhandled": false,
  1190.         "suspended": false,
  1191.         "lat": "49",
  1192.         "lon": "9",
  1193.         "ontime": "23:00",
  1194.         "ontopic": "",
  1195.         "onpayload": "1",
  1196.         "onoffset": 0,
  1197.         "onrandomoffset": 0,
  1198.         "offtime": "",
  1199.         "offtopic": "",
  1200.         "offpayload": "",
  1201.         "offoffset": 0,
  1202.         "offrandomoffset": 0,
  1203.         "mon": true,
  1204.         "tue": true,
  1205.         "wed": true,
  1206.         "thu": true,
  1207.         "fri": true,
  1208.         "sat": true,
  1209.         "sun": true,
  1210.         "x": 130,
  1211.         "y": 1520,
  1212.         "wires": [
  1213.             [
  1214.                 "968bc48b.283498"
  1215.             ]
  1216.         ]
  1217.     },
  1218.     {
  1219.         "id": "b3a6234.14ac8e",
  1220.         "type": "schedex",
  1221.         "z": "13feb79.316a248",
  1222.         "name": "Tag-Schaltung",
  1223.         "passthroughunhandled": false,
  1224.         "suspended": false,
  1225.         "lat": "49",
  1226.         "lon": "9",
  1227.         "ontime": "sunrise",
  1228.         "ontopic": "",
  1229.         "onpayload": "1",
  1230.         "onoffset": 0,
  1231.         "onrandomoffset": 0,
  1232.         "offtime": "",
  1233.         "offtopic": "",
  1234.         "offpayload": "",
  1235.         "offoffset": 0,
  1236.         "offrandomoffset": 0,
  1237.         "mon": true,
  1238.         "tue": true,
  1239.         "wed": true,
  1240.         "thu": true,
  1241.         "fri": true,
  1242.         "sat": true,
  1243.         "sun": true,
  1244.         "x": 160,
  1245.         "y": 1300,
  1246.         "wires": [
  1247.             [
  1248.                 "dfeaf20f.1a654"
  1249.             ]
  1250.         ]
  1251.     },
  1252.     {
  1253.         "id": "9ed08cae.2f6bf",
  1254.         "type": "schedex",
  1255.         "z": "13feb79.316a248",
  1256.         "name": "Flur Licht (abends)",
  1257.         "passthroughunhandled": false,
  1258.         "suspended": false,
  1259.         "lat": "49",
  1260.         "lon": "9",
  1261.         "ontime": "sunset",
  1262.         "ontopic": "",
  1263.         "onpayload": "1",
  1264.         "onoffset": 0,
  1265.         "onrandomoffset": 0,
  1266.         "offtime": "",
  1267.         "offtopic": "",
  1268.         "offpayload": "0",
  1269.         "offoffset": 0,
  1270.         "offrandomoffset": 0,
  1271.         "mon": true,
  1272.         "tue": true,
  1273.         "wed": true,
  1274.         "thu": true,
  1275.         "fri": true,
  1276.         "sat": true,
  1277.         "sun": true,
  1278.         "x": 150,
  1279.         "y": 1380,
  1280.         "wires": [
  1281.             [
  1282.                 "4e1c72c2.7368ec"
  1283.             ]
  1284.         ]
  1285.     },
  1286.     {
  1287.         "id": "a2f31c2d.4f90a",
  1288.         "type": "schedex",
  1289.         "z": "13feb79.316a248",
  1290.         "name": "Flur Licht (morgens)",
  1291.         "passthroughunhandled": false,
  1292.         "suspended": false,
  1293.         "lat": "49",
  1294.         "lon": "9",
  1295.         "ontime": "5:30",
  1296.         "ontopic": "",
  1297.         "onpayload": "1",
  1298.         "onoffset": 0,
  1299.         "onrandomoffset": 0,
  1300.         "offtime": "5:50",
  1301.         "offtopic": "",
  1302.         "offpayload": "0",
  1303.         "offoffset": 0,
  1304.         "offrandomoffset": 0,
  1305.         "mon": true,
  1306.         "tue": true,
  1307.         "wed": true,
  1308.         "thu": true,
  1309.         "fri": true,
  1310.         "sat": false,
  1311.         "sun": false,
  1312.         "x": 140,
  1313.         "y": 1160,
  1314.         "wires": [
  1315.             [
  1316.                 "a3cbd609.9f4e68"
  1317.             ]
  1318.         ]
  1319.     },
  1320.     {
  1321.         "id": "683acfad.67eb7",
  1322.         "type": "wemo-emulator",
  1323.         "z": "13feb79.316a248",
  1324.         "name": "Charly",
  1325.         "friendlyName": "Charly",
  1326.         "serial": "40102",
  1327.         "port": "40102",
  1328.         "onTopic": "",
  1329.         "onPayload": "on",
  1330.         "offTopic": "",
  1331.         "offPayload": "off",
  1332.         "x": 190,
  1333.         "y": 440,
  1334.         "wires": [
  1335.             [
  1336.                 "be73dc9f.1c96b",
  1337.                 "ceb4095a.3bab98",
  1338.                 "f3ab3bd9.7af178"
  1339.             ]
  1340.         ]
  1341.     },
  1342.     {
  1343.         "id": "9d4f73b8.d5ee7",
  1344.         "type": "mqtt-broker",
  1345.         "name": "miti32",
  1346.         "broker": "192.168.123.40",
  1347.         "port": "1883",
  1348.         "clientid": "",
  1349.         "usetls": false,
  1350.         "compatmode": true,
  1351.         "keepalive": "60",
  1352.         "cleansession": true,
  1353.         "birthTopic": "",
  1354.         "birthQos": "0",
  1355.         "birthPayload": "",
  1356.         "closeTopic": "",
  1357.         "closeQos": "0",
  1358.         "closePayload": "",
  1359.         "willTopic": "",
  1360.         "willQos": "0",
  1361.         "willPayload": ""
  1362.     }
  1363. ]
Add Comment
Please, Sign In to add comment