Advertisement
NittyGritty

Licht Flur

Oct 20th, 2021
2,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "bcc64ec3.65567",
  4.         "type": "tab",
  5.         "label": "Licht Flur",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "265b10ee.a0bdf",
  11.         "type": "inject",
  12.         "z": "bcc64ec3.65567",
  13.         "name": "",
  14.         "repeat": "",
  15.         "crontab": "",
  16.         "once": false,
  17.         "topic": "",
  18.         "payload": "on",
  19.         "payloadType": "str",
  20.         "x": 190,
  21.         "y": 300,
  22.         "wires": [
  23.             [
  24.                 "82552f7d.509a8"
  25.             ]
  26.         ]
  27.     },
  28.     {
  29.         "id": "d007ed4e.f8ce",
  30.         "type": "inject",
  31.         "z": "bcc64ec3.65567",
  32.         "name": "Off",
  33.         "repeat": "",
  34.         "crontab": "",
  35.         "once": false,
  36.         "topic": "",
  37.         "payload": "off",
  38.         "payloadType": "str",
  39.         "x": 190,
  40.         "y": 260,
  41.         "wires": [
  42.             [
  43.                 "82552f7d.509a8"
  44.             ]
  45.         ]
  46.     },
  47.     {
  48.         "id": "6826f33d.8cc40c",
  49.         "type": "inject",
  50.         "z": "bcc64ec3.65567",
  51.         "name": "",
  52.         "repeat": "",
  53.         "crontab": "",
  54.         "once": false,
  55.         "topic": "",
  56.         "payload": "on",
  57.         "payloadType": "str",
  58.         "x": 187,
  59.         "y": 121,
  60.         "wires": [
  61.             [
  62.                 "3311704d.12916"
  63.             ]
  64.         ]
  65.     },
  66.     {
  67.         "id": "1a1e9d45.659fd3",
  68.         "type": "inject",
  69.         "z": "bcc64ec3.65567",
  70.         "name": "Off",
  71.         "repeat": "",
  72.         "crontab": "",
  73.         "once": false,
  74.         "topic": "",
  75.         "payload": "off",
  76.         "payloadType": "str",
  77.         "x": 187,
  78.         "y": 81,
  79.         "wires": [
  80.             [
  81.                 "3311704d.12916"
  82.             ]
  83.         ]
  84.     },
  85.     {
  86.         "id": "f2d36fb.1b95f9",
  87.         "type": "comment",
  88.         "z": "bcc64ec3.65567",
  89.         "name": "Licht Charllie (Flur)",
  90.         "info": "",
  91.         "x": 110,
  92.         "y": 20,
  93.         "wires": []
  94.     },
  95.     {
  96.         "id": "879d686e.2b4248",
  97.         "type": "inject",
  98.         "z": "bcc64ec3.65567",
  99.         "name": "Resume Schedule",
  100.         "repeat": "",
  101.         "crontab": "",
  102.         "once": false,
  103.         "onceDelay": 0.1,
  104.         "topic": "",
  105.         "payload": "suspended false",
  106.         "payloadType": "str",
  107.         "x": 150,
  108.         "y": 200,
  109.         "wires": [
  110.             [
  111.                 "3311704d.12916"
  112.             ]
  113.         ]
  114.     },
  115.     {
  116.         "id": "fe02c5f7.96fd78",
  117.         "type": "inject",
  118.         "z": "bcc64ec3.65567",
  119.         "name": "Suspend",
  120.         "repeat": "",
  121.         "crontab": "",
  122.         "once": false,
  123.         "onceDelay": 0.1,
  124.         "topic": "",
  125.         "payload": "suspended true",
  126.         "payloadType": "str",
  127.         "x": 180,
  128.         "y": 160,
  129.         "wires": [
  130.             [
  131.                 "3311704d.12916"
  132.             ]
  133.         ]
  134.     },
  135.     {
  136.         "id": "206bbcb4.c7eff4",
  137.         "type": "inject",
  138.         "z": "bcc64ec3.65567",
  139.         "name": "Resume Schedule",
  140.         "repeat": "",
  141.         "crontab": "",
  142.         "once": false,
  143.         "onceDelay": 0.1,
  144.         "topic": "",
  145.         "payload": "suspended false",
  146.         "payloadType": "str",
  147.         "x": 150,
  148.         "y": 380,
  149.         "wires": [
  150.             [
  151.                 "82552f7d.509a8"
  152.             ]
  153.         ]
  154.     },
  155.     {
  156.         "id": "c9eb522f.3a9d5",
  157.         "type": "inject",
  158.         "z": "bcc64ec3.65567",
  159.         "name": "Suspend",
  160.         "repeat": "",
  161.         "crontab": "",
  162.         "once": false,
  163.         "onceDelay": 0.1,
  164.         "topic": "",
  165.         "payload": "suspended true",
  166.         "payloadType": "str",
  167.         "x": 180,
  168.         "y": 340,
  169.         "wires": [
  170.             [
  171.                 "82552f7d.509a8"
  172.             ]
  173.         ]
  174.     },
  175.     {
  176.         "id": "e04c8213.b7e47",
  177.         "type": "mqtt in",
  178.         "z": "bcc64ec3.65567",
  179.         "name": "",
  180.         "topic": "/home/Koss/RF-Bridge01/relay/3",
  181.         "qos": "2",
  182.         "datatype": "auto",
  183.         "broker": "595dfa51.2c1224",
  184.         "nl": false,
  185.         "rap": false,
  186.         "x": 150,
  187.         "y": 520,
  188.         "wires": [
  189.             []
  190.         ]
  191.     },
  192.     {
  193.         "id": "9bc37d65.2dafe",
  194.         "type": "trigger",
  195.         "z": "bcc64ec3.65567",
  196.         "name": "Pulse 2 min.",
  197.         "op1": "1",
  198.         "op2": "0",
  199.         "op1type": "str",
  200.         "op2type": "str",
  201.         "duration": "2",
  202.         "extend": true,
  203.         "overrideDelay": false,
  204.         "units": "min",
  205.         "reset": "off",
  206.         "bytopic": "all",
  207.         "topic": "topic",
  208.         "outputs": 1,
  209.         "x": 570,
  210.         "y": 540,
  211.         "wires": [
  212.             [
  213.                 "7b9168a3.d09a48"
  214.             ]
  215.         ]
  216.     },
  217.     {
  218.         "id": "7b9168a3.d09a48",
  219.         "type": "switch",
  220.         "z": "bcc64ec3.65567",
  221.         "name": "",
  222.         "property": "payload",
  223.         "propertyType": "msg",
  224.         "rules": [
  225.             {
  226.                 "t": "eq",
  227.                 "v": "1",
  228.                 "vt": "str"
  229.             },
  230.             {
  231.                 "t": "eq",
  232.                 "v": "0",
  233.                 "vt": "str"
  234.             }
  235.         ],
  236.         "checkall": "true",
  237.         "repair": false,
  238.         "outputs": 2,
  239.         "x": 750,
  240.         "y": 540,
  241.         "wires": [
  242.             [
  243.                 "eb486e23.1d7b3"
  244.             ],
  245.             [
  246.                 "686c213c.0d67d"
  247.             ]
  248.         ]
  249.     },
  250.     {
  251.         "id": "5ec7728a.260b2c",
  252.         "type": "switch",
  253.         "z": "bcc64ec3.65567",
  254.         "name": "Messages",
  255.         "property": "payload.action",
  256.         "propertyType": "msg",
  257.         "rules": [
  258.             {
  259.                 "t": "eq",
  260.                 "v": "brightness_up_click",
  261.                 "vt": "str"
  262.             },
  263.             {
  264.                 "t": "eq",
  265.                 "v": "brightness_down_click",
  266.                 "vt": "str"
  267.             },
  268.             {
  269.                 "t": "eq",
  270.                 "v": "brightness_up_release",
  271.                 "vt": "str"
  272.             },
  273.             {
  274.                 "t": "eq",
  275.                 "v": "brightness_up_hold",
  276.                 "vt": "str"
  277.             },
  278.             {
  279.                 "t": "eq",
  280.                 "v": "brightness_down_hold",
  281.                 "vt": "str"
  282.             },
  283.             {
  284.                 "t": "eq",
  285.                 "v": "brightness_down_release",
  286.                 "vt": "str"
  287.             }
  288.         ],
  289.         "checkall": "true",
  290.         "repair": false,
  291.         "outputs": 6,
  292.         "x": 390,
  293.         "y": 840,
  294.         "wires": [
  295.             [
  296.                 "62f283d6.e6a9cc"
  297.             ],
  298.             [
  299.                 "cb7fe390.05aac"
  300.             ],
  301.             [
  302.                 "24d1d455.09d35c"
  303.             ],
  304.             [
  305.                 "d12a08e4.b57008",
  306.                 "ea4d7beb.eb7ba8"
  307.             ],
  308.             [
  309.                 "38f7319.c10dece",
  310.                 "ea4d7beb.eb7ba8"
  311.             ],
  312.             [
  313.                 "24d1d455.09d35c"
  314.             ]
  315.         ]
  316.     },
  317.     {
  318.         "id": "d12a08e4.b57008",
  319.         "type": "function",
  320.         "z": "bcc64ec3.65567",
  321.         "name": "Brightness up",
  322.         "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;",
  323.         "outputs": 1,
  324.         "noerr": 0,
  325.         "initialize": "",
  326.         "finalize": "",
  327.         "x": 720,
  328.         "y": 900,
  329.         "wires": [
  330.             [
  331.                 "fb2c6aed.bf3388",
  332.                 "1114cb41.f25cf5",
  333.                 "f5daffd6.7364"
  334.             ]
  335.         ]
  336.     },
  337.     {
  338.         "id": "38f7319.c10dece",
  339.         "type": "function",
  340.         "z": "bcc64ec3.65567",
  341.         "name": "Brightness down",
  342.         "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;",
  343.         "outputs": 1,
  344.         "noerr": 0,
  345.         "initialize": "",
  346.         "finalize": "",
  347.         "x": 710,
  348.         "y": 980,
  349.         "wires": [
  350.             [
  351.                 "e48bfa7c.fac988",
  352.                 "f5daffd6.7364",
  353.                 "1114cb41.f25cf5"
  354.             ]
  355.         ]
  356.     },
  357.     {
  358.         "id": "ac3954fd.8c5348",
  359.         "type": "switch",
  360.         "z": "bcc64ec3.65567",
  361.         "name": "Control loop",
  362.         "property": "press",
  363.         "propertyType": "flow",
  364.         "rules": [
  365.             {
  366.                 "t": "true"
  367.             }
  368.         ],
  369.         "checkall": "true",
  370.         "repair": false,
  371.         "outputs": 1,
  372.         "x": 1130,
  373.         "y": 900,
  374.         "wires": [
  375.             [
  376.                 "38f7319.c10dece"
  377.             ]
  378.         ]
  379.     },
  380.     {
  381.         "id": "21c8571d.da85b8",
  382.         "type": "switch",
  383.         "z": "bcc64ec3.65567",
  384.         "name": "Control loop",
  385.         "property": "press",
  386.         "propertyType": "flow",
  387.         "rules": [
  388.             {
  389.                 "t": "true"
  390.             }
  391.         ],
  392.         "checkall": "true",
  393.         "repair": false,
  394.         "outputs": 1,
  395.         "x": 1130,
  396.         "y": 980,
  397.         "wires": [
  398.             [
  399.                 "d12a08e4.b57008"
  400.             ]
  401.         ]
  402.     },
  403.     {
  404.         "id": "fb2c6aed.bf3388",
  405.         "type": "delay",
  406.         "z": "bcc64ec3.65567",
  407.         "name": "",
  408.         "pauseType": "delay",
  409.         "timeout": "100",
  410.         "timeoutUnits": "milliseconds",
  411.         "rate": "1",
  412.         "nbRateUnits": "1",
  413.         "rateUnits": "second",
  414.         "randomFirst": "1",
  415.         "randomLast": "5",
  416.         "randomUnits": "seconds",
  417.         "drop": false,
  418.         "x": 950,
  419.         "y": 980,
  420.         "wires": [
  421.             [
  422.                 "21c8571d.da85b8"
  423.             ]
  424.         ]
  425.     },
  426.     {
  427.         "id": "e48bfa7c.fac988",
  428.         "type": "delay",
  429.         "z": "bcc64ec3.65567",
  430.         "name": "",
  431.         "pauseType": "delay",
  432.         "timeout": "100",
  433.         "timeoutUnits": "milliseconds",
  434.         "rate": "1",
  435.         "nbRateUnits": "1",
  436.         "rateUnits": "second",
  437.         "randomFirst": "1",
  438.         "randomLast": "5",
  439.         "randomUnits": "seconds",
  440.         "drop": false,
  441.         "x": 950,
  442.         "y": 900,
  443.         "wires": [
  444.             [
  445.                 "ac3954fd.8c5348"
  446.             ]
  447.         ]
  448.     },
  449.     {
  450.         "id": "ea4d7beb.eb7ba8",
  451.         "type": "change",
  452.         "z": "bcc64ec3.65567",
  453.         "name": "start",
  454.         "rules": [
  455.             {
  456.                 "t": "set",
  457.                 "p": "payload",
  458.                 "pt": "msg",
  459.                 "to": "true",
  460.                 "tot": "bool"
  461.             }
  462.         ],
  463.         "action": "",
  464.         "property": "",
  465.         "from": "",
  466.         "to": "",
  467.         "reg": false,
  468.         "x": 750,
  469.         "y": 800,
  470.         "wires": [
  471.             [
  472.                 "e7b3fa52.76b158"
  473.             ]
  474.         ]
  475.     },
  476.     {
  477.         "id": "24d1d455.09d35c",
  478.         "type": "change",
  479.         "z": "bcc64ec3.65567",
  480.         "name": "stop",
  481.         "rules": [
  482.             {
  483.                 "t": "set",
  484.                 "p": "payload",
  485.                 "pt": "msg",
  486.                 "to": "false",
  487.                 "tot": "bool"
  488.             }
  489.         ],
  490.         "action": "",
  491.         "property": "",
  492.         "from": "",
  493.         "to": "",
  494.         "reg": false,
  495.         "x": 750,
  496.         "y": 840,
  497.         "wires": [
  498.             [
  499.                 "e7b3fa52.76b158"
  500.             ]
  501.         ]
  502.     },
  503.     {
  504.         "id": "e7b3fa52.76b158",
  505.         "type": "change",
  506.         "z": "bcc64ec3.65567",
  507.         "name": "Control the loop",
  508.         "rules": [
  509.             {
  510.                 "t": "set",
  511.                 "p": "press",
  512.                 "pt": "flow",
  513.                 "to": "payload",
  514.                 "tot": "msg"
  515.             }
  516.         ],
  517.         "action": "",
  518.         "property": "",
  519.         "from": "",
  520.         "to": "",
  521.         "reg": false,
  522.         "x": 1140,
  523.         "y": 820,
  524.         "wires": [
  525.             []
  526.         ]
  527.     },
  528.     {
  529.         "id": "62f283d6.e6a9cc",
  530.         "type": "function",
  531.         "z": "bcc64ec3.65567",
  532.         "name": "ON",
  533.         "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",
  534.         "outputs": 1,
  535.         "noerr": 0,
  536.         "initialize": "",
  537.         "finalize": "",
  538.         "x": 750,
  539.         "y": 660,
  540.         "wires": [
  541.             [
  542.                 "1114cb41.f25cf5",
  543.                 "f5daffd6.7364"
  544.             ]
  545.         ]
  546.     },
  547.     {
  548.         "id": "cb7fe390.05aac",
  549.         "type": "function",
  550.         "z": "bcc64ec3.65567",
  551.         "name": "OFF",
  552.         "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",
  553.         "outputs": 1,
  554.         "noerr": 0,
  555.         "initialize": "",
  556.         "finalize": "",
  557.         "x": 750,
  558.         "y": 720,
  559.         "wires": [
  560.             [
  561.                 "1114cb41.f25cf5",
  562.                 "f5daffd6.7364"
  563.             ]
  564.         ]
  565.     },
  566.     {
  567.         "id": "c32638d5.92f2b8",
  568.         "type": "mqtt in",
  569.         "z": "bcc64ec3.65567",
  570.         "name": "IKEA Button",
  571.         "topic": "/home/zigbee/Ikea-Button",
  572.         "qos": "1",
  573.         "datatype": "json",
  574.         "broker": "595dfa51.2c1224",
  575.         "x": 110,
  576.         "y": 840,
  577.         "wires": [
  578.             [
  579.                 "5ec7728a.260b2c"
  580.             ]
  581.         ]
  582.     },
  583.     {
  584.         "id": "667250dc.f0ace",
  585.         "type": "inject",
  586.         "z": "bcc64ec3.65567",
  587.         "name": "",
  588.         "props": [
  589.             {
  590.                 "p": "payload"
  591.             }
  592.         ],
  593.         "repeat": "",
  594.         "crontab": "",
  595.         "once": true,
  596.         "onceDelay": 0.1,
  597.         "topic": "",
  598.         "payload": "",
  599.         "payloadType": "date",
  600.         "x": 130,
  601.         "y": 1080,
  602.         "wires": [
  603.             [
  604.                 "bdb52d1e.a4bdb"
  605.             ]
  606.         ]
  607.     },
  608.     {
  609.         "id": "54f65de3.efd854",
  610.         "type": "debug",
  611.         "z": "bcc64ec3.65567",
  612.         "name": "",
  613.         "active": true,
  614.         "tosidebar": true,
  615.         "console": false,
  616.         "tostatus": false,
  617.         "complete": "false",
  618.         "x": 710,
  619.         "y": 1080,
  620.         "wires": []
  621.     },
  622.     {
  623.         "id": "bdb52d1e.a4bdb",
  624.         "type": "function",
  625.         "z": "bcc64ec3.65567",
  626.         "name": "",
  627.         "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;",
  628.         "outputs": 1,
  629.         "noerr": 0,
  630.         "initialize": "",
  631.         "finalize": "",
  632.         "libs": [],
  633.         "x": 440,
  634.         "y": 1080,
  635.         "wires": [
  636.             [
  637.                 "54f65de3.efd854"
  638.             ]
  639.         ]
  640.     },
  641.     {
  642.         "id": "6fb9230e.8495cc",
  643.         "type": "inject",
  644.         "z": "bcc64ec3.65567",
  645.         "name": "Hue-Flur-Nacht",
  646.         "props": [
  647.             {
  648.                 "p": "payload"
  649.             },
  650.             {
  651.                 "p": "topic",
  652.                 "vt": "str"
  653.             }
  654.         ],
  655.         "repeat": "",
  656.         "crontab": "",
  657.         "once": false,
  658.         "onceDelay": 0.1,
  659.         "topic": "",
  660.         "payload": "",
  661.         "payloadType": "date",
  662.         "x": 140,
  663.         "y": 1420,
  664.         "wires": [
  665.             [
  666.                 "a8b55ef5.c9be9"
  667.             ]
  668.         ]
  669.     },
  670.     {
  671.         "id": "a8b55ef5.c9be9",
  672.         "type": "function",
  673.         "z": "bcc64ec3.65567",
  674.         "name": "Set Hue-Flur and Osram-Flur to 2",
  675.         "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;",
  676.         "outputs": 1,
  677.         "noerr": 0,
  678.         "initialize": "",
  679.         "finalize": "",
  680.         "libs": [],
  681.         "x": 760,
  682.         "y": 1540,
  683.         "wires": [
  684.             [
  685.                 "950cb22379637a8a"
  686.             ]
  687.         ]
  688.     },
  689.     {
  690.         "id": "acc3cfa1.3e5e6",
  691.         "type": "function",
  692.         "z": "bcc64ec3.65567",
  693.         "name": "Set Hue-Flur and Osram-Flur to 255",
  694.         "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;",
  695.         "outputs": 1,
  696.         "noerr": 0,
  697.         "initialize": "",
  698.         "finalize": "",
  699.         "libs": [],
  700.         "x": 770,
  701.         "y": 1260,
  702.         "wires": [
  703.             [
  704.                 "54f68562.70893c",
  705.                 "2af8024b9060eaee"
  706.             ]
  707.         ]
  708.     },
  709.     {
  710.         "id": "54f68562.70893c",
  711.         "type": "link out",
  712.         "z": "bcc64ec3.65567",
  713.         "name": "",
  714.         "links": [
  715.             "df1c0dcd.655ff"
  716.         ],
  717.         "x": 1015,
  718.         "y": 1220,
  719.         "wires": []
  720.     },
  721.     {
  722.         "id": "d0131704.1ae748",
  723.         "type": "link out",
  724.         "z": "bcc64ec3.65567",
  725.         "name": "",
  726.         "links": [
  727.             "df1c0dcd.655ff"
  728.         ],
  729.         "x": 1155,
  730.         "y": 1520,
  731.         "wires": []
  732.     },
  733.     {
  734.         "id": "94fd7684.689ba8",
  735.         "type": "link in",
  736.         "z": "bcc64ec3.65567",
  737.         "name": "IKEA-Flur-On",
  738.         "links": [
  739.             "510c7a5.0f1ec84",
  740.             "e6845af6.c3c7d8",
  741.             "d61b338f26cd3223"
  742.         ],
  743.         "x": 615,
  744.         "y": 620,
  745.         "wires": [
  746.             [
  747.                 "62f283d6.e6a9cc"
  748.             ]
  749.         ]
  750.     },
  751.     {
  752.         "id": "df1c0dcd.655ff",
  753.         "type": "link in",
  754.         "z": "bcc64ec3.65567",
  755.         "name": "IKEA-Flur-Off",
  756.         "links": [
  757.             "54f68562.70893c",
  758.             "d0131704.1ae748"
  759.         ],
  760.         "x": 615,
  761.         "y": 780,
  762.         "wires": [
  763.             [
  764.                 "cb7fe390.05aac"
  765.             ]
  766.         ]
  767.     },
  768.     {
  769.         "id": "3311704d.12916",
  770.         "type": "schedex",
  771.         "z": "bcc64ec3.65567",
  772.         "name": "Flur Licht (morgens)",
  773.         "passthroughunhandled": false,
  774.         "suspended": true,
  775.         "lat": "51.4987183",
  776.         "lon": "13.2259348",
  777.         "ontime": "5:30",
  778.         "ontopic": "",
  779.         "onpayload": "1",
  780.         "onoffset": 0,
  781.         "onrandomoffset": 0,
  782.         "offtime": "5:55",
  783.         "offtopic": "",
  784.         "offpayload": "0",
  785.         "offoffset": 0,
  786.         "offrandomoffset": 0,
  787.         "mon": true,
  788.         "tue": true,
  789.         "wed": true,
  790.         "thu": true,
  791.         "fri": true,
  792.         "sat": false,
  793.         "sun": false,
  794.         "x": 420,
  795.         "y": 80,
  796.         "wires": [
  797.             [
  798.                 "7b9168a3.d09a48",
  799.                 "4da371e92b388cb2",
  800.                 "d4c2f39edee35e4e",
  801.                 "8b4b5082ff118d7b"
  802.             ]
  803.         ]
  804.     },
  805.     {
  806.         "id": "82552f7d.509a8",
  807.         "type": "schedex",
  808.         "z": "bcc64ec3.65567",
  809.         "name": "Flur Licht (abends)",
  810.         "passthroughunhandled": false,
  811.         "suspended": false,
  812.         "lat": "51.4987183",
  813.         "lon": "13.2259348",
  814.         "ontime": "sunset",
  815.         "ontopic": "",
  816.         "onpayload": "1",
  817.         "onoffset": "0",
  818.         "onrandomoffset": 0,
  819.         "offtime": "23:00",
  820.         "offtopic": "",
  821.         "offpayload": "0",
  822.         "offoffset": 0,
  823.         "offrandomoffset": 0,
  824.         "mon": true,
  825.         "tue": true,
  826.         "wed": true,
  827.         "thu": true,
  828.         "fri": true,
  829.         "sat": true,
  830.         "sun": true,
  831.         "x": 410,
  832.         "y": 260,
  833.         "wires": [
  834.             [
  835.                 "3634bbd8c37b7217",
  836.                 "d4c2f39edee35e4e",
  837.                 "8b4b5082ff118d7b"
  838.             ]
  839.         ]
  840.     },
  841.     {
  842.         "id": "ecb7ed61.5577c",
  843.         "type": "schedex",
  844.         "z": "bcc64ec3.65567",
  845.         "name": "Nachtschaltung ab 23.00h",
  846.         "passthroughunhandled": false,
  847.         "suspended": false,
  848.         "lat": "51.4987183",
  849.         "lon": "13.2259348",
  850.         "ontime": "23:00",
  851.         "ontopic": "",
  852.         "onpayload": "1",
  853.         "onoffset": 0,
  854.         "onrandomoffset": 0,
  855.         "offtime": "",
  856.         "offtopic": "",
  857.         "offpayload": "",
  858.         "offoffset": 0,
  859.         "offrandomoffset": 0,
  860.         "mon": true,
  861.         "tue": true,
  862.         "wed": true,
  863.         "thu": true,
  864.         "fri": true,
  865.         "sat": true,
  866.         "sun": true,
  867.         "x": 410,
  868.         "y": 1540,
  869.         "wires": [
  870.             [
  871.                 "a8b55ef5.c9be9"
  872.             ]
  873.         ]
  874.     },
  875.     {
  876.         "id": "e25b5c0c.d087e",
  877.         "type": "schedex",
  878.         "z": "bcc64ec3.65567",
  879.         "name": "Tag-Schaltung",
  880.         "passthroughunhandled": false,
  881.         "suspended": false,
  882.         "lat": "51.4987183",
  883.         "lon": "13.2259348",
  884.         "ontime": "sunrise",
  885.         "ontopic": "",
  886.         "onpayload": "",
  887.         "onoffset": 0,
  888.         "onrandomoffset": 0,
  889.         "offtime": "sunset",
  890.         "offtopic": "",
  891.         "offpayload": "",
  892.         "offoffset": 0,
  893.         "offrandomoffset": 0,
  894.         "mon": true,
  895.         "tue": true,
  896.         "wed": true,
  897.         "thu": true,
  898.         "fri": true,
  899.         "sat": true,
  900.         "sun": true,
  901.         "x": 380,
  902.         "y": 1260,
  903.         "wires": [
  904.             [
  905.                 "acc3cfa1.3e5e6"
  906.             ]
  907.         ]
  908.     },
  909.     {
  910.         "id": "1e98ee22.01f372",
  911.         "type": "wemo-emulator",
  912.         "z": "bcc64ec3.65567",
  913.         "name": "Dose Drei",
  914.         "friendlyName": "Dose Drei",
  915.         "serial": "37003",
  916.         "port": "1903",
  917.         "onTopic": "",
  918.         "onPayload": "1",
  919.         "offTopic": "",
  920.         "offPayload": "0",
  921.         "x": 180,
  922.         "y": 440,
  923.         "wires": [
  924.             [
  925.                 "d4c2f39edee35e4e",
  926.                 "8b4b5082ff118d7b",
  927.                 "7b9168a3.d09a48"
  928.             ]
  929.         ]
  930.     },
  931.     {
  932.         "id": "3317c5b1.aa359a",
  933.         "type": "switch",
  934.         "z": "bcc64ec3.65567",
  935.         "name": "",
  936.         "property": "payload",
  937.         "propertyType": "msg",
  938.         "rules": [
  939.             {
  940.                 "t": "eq",
  941.                 "v": "ON",
  942.                 "vt": "str"
  943.             },
  944.             {
  945.                 "t": "eq",
  946.                 "v": "OFF",
  947.                 "vt": "str"
  948.             }
  949.         ],
  950.         "checkall": "true",
  951.         "repair": false,
  952.         "outputs": 2,
  953.         "x": 430,
  954.         "y": 1940,
  955.         "wires": [
  956.             [
  957.                 "615931e2.a0de7"
  958.             ],
  959.             [
  960.                 "f6381d48.f7482"
  961.             ]
  962.         ]
  963.     },
  964.     {
  965.         "id": "615931e2.a0de7",
  966.         "type": "function",
  967.         "z": "bcc64ec3.65567",
  968.         "name": "ON",
  969.         "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",
  970.         "outputs": 1,
  971.         "noerr": 0,
  972.         "initialize": "",
  973.         "finalize": "",
  974.         "x": 850,
  975.         "y": 1900,
  976.         "wires": [
  977.             [
  978.                 "d144768c.78ded8"
  979.             ]
  980.         ]
  981.     },
  982.     {
  983.         "id": "f6381d48.f7482",
  984.         "type": "function",
  985.         "z": "bcc64ec3.65567",
  986.         "name": "OFF",
  987.         "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",
  988.         "outputs": 1,
  989.         "noerr": 0,
  990.         "initialize": "",
  991.         "finalize": "",
  992.         "x": 850,
  993.         "y": 1960,
  994.         "wires": [
  995.             [
  996.                 "d144768c.78ded8"
  997.             ]
  998.         ]
  999.     },
  1000.     {
  1001.         "id": "d144768c.78ded8",
  1002.         "type": "mqtt out",
  1003.         "z": "bcc64ec3.65567",
  1004.         "name": "Osram Flur",
  1005.         "topic": "",
  1006.         "qos": "",
  1007.         "retain": "",
  1008.         "broker": "595dfa51.2c1224",
  1009.         "x": 1170,
  1010.         "y": 1940,
  1011.         "wires": []
  1012.     },
  1013.     {
  1014.         "id": "bf9dee25.5b01d",
  1015.         "type": "inject",
  1016.         "z": "bcc64ec3.65567",
  1017.         "name": "On",
  1018.         "props": [
  1019.             {
  1020.                 "p": "payload"
  1021.             },
  1022.             {
  1023.                 "p": "topic",
  1024.                 "vt": "str"
  1025.             }
  1026.         ],
  1027.         "repeat": "",
  1028.         "crontab": "",
  1029.         "once": false,
  1030.         "onceDelay": 0.1,
  1031.         "topic": "",
  1032.         "payload": "ON",
  1033.         "payloadType": "str",
  1034.         "x": 110,
  1035.         "y": 1920,
  1036.         "wires": [
  1037.             [
  1038.                 "3317c5b1.aa359a"
  1039.             ]
  1040.         ]
  1041.     },
  1042.     {
  1043.         "id": "2b7680a.d18908",
  1044.         "type": "inject",
  1045.         "z": "bcc64ec3.65567",
  1046.         "name": "Off",
  1047.         "props": [
  1048.             {
  1049.                 "p": "payload"
  1050.             },
  1051.             {
  1052.                 "p": "topic",
  1053.                 "vt": "str"
  1054.             }
  1055.         ],
  1056.         "repeat": "",
  1057.         "crontab": "",
  1058.         "once": false,
  1059.         "onceDelay": 0.1,
  1060.         "topic": "",
  1061.         "payload": "OFF",
  1062.         "payloadType": "str",
  1063.         "x": 110,
  1064.         "y": 1960,
  1065.         "wires": [
  1066.             [
  1067.                 "3317c5b1.aa359a"
  1068.             ]
  1069.         ]
  1070.     },
  1071.     {
  1072.         "id": "75b0d4de.62b71c",
  1073.         "type": "function",
  1074.         "z": "bcc64ec3.65567",
  1075.         "name": "",
  1076.         "func": "global.set(\"Osram-Flur-Brightness\",64);\nglobal.set(\"Osram-Flur-ColorTemp\",200);\nreturn msg;",
  1077.         "outputs": 1,
  1078.         "noerr": 0,
  1079.         "initialize": "",
  1080.         "finalize": "",
  1081.         "x": 660,
  1082.         "y": 1680,
  1083.         "wires": [
  1084.             []
  1085.         ]
  1086.     },
  1087.     {
  1088.         "id": "1114cb41.f25cf5",
  1089.         "type": "function",
  1090.         "z": "bcc64ec3.65567",
  1091.         "name": "",
  1092.         "func": "msg.topic = \"/home/zigbee/Hue-01-Flur/set\";\nreturn msg;",
  1093.         "outputs": 1,
  1094.         "noerr": 0,
  1095.         "initialize": "",
  1096.         "finalize": "",
  1097.         "x": 1100,
  1098.         "y": 660,
  1099.         "wires": [
  1100.             [
  1101.                 "405dd0d1.ebebf"
  1102.             ]
  1103.         ]
  1104.     },
  1105.     {
  1106.         "id": "f5daffd6.7364",
  1107.         "type": "function",
  1108.         "z": "bcc64ec3.65567",
  1109.         "name": "",
  1110.         "func": "msg.topic = \"/home/zigbee/Hue-02-Flur/set\";\nreturn msg;",
  1111.         "outputs": 1,
  1112.         "noerr": 0,
  1113.         "initialize": "",
  1114.         "finalize": "",
  1115.         "x": 1100,
  1116.         "y": 720,
  1117.         "wires": [
  1118.             [
  1119.                 "dd56c14f.4a65b"
  1120.             ]
  1121.         ]
  1122.     },
  1123.     {
  1124.         "id": "405dd0d1.ebebf",
  1125.         "type": "mqtt out",
  1126.         "z": "bcc64ec3.65567",
  1127.         "name": "Hue-01-Flur",
  1128.         "topic": "",
  1129.         "qos": "",
  1130.         "retain": "",
  1131.         "broker": "595dfa51.2c1224",
  1132.         "x": 1310,
  1133.         "y": 660,
  1134.         "wires": []
  1135.     },
  1136.     {
  1137.         "id": "dd56c14f.4a65b",
  1138.         "type": "mqtt out",
  1139.         "z": "bcc64ec3.65567",
  1140.         "name": "Hue-02-Flur",
  1141.         "topic": "",
  1142.         "qos": "",
  1143.         "retain": "",
  1144.         "broker": "595dfa51.2c1224",
  1145.         "x": 1310,
  1146.         "y": 720,
  1147.         "wires": []
  1148.     },
  1149.     {
  1150.         "id": "e0364df3.1195",
  1151.         "type": "function",
  1152.         "z": "bcc64ec3.65567",
  1153.         "name": "",
  1154.         "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",
  1155.         "outputs": 1,
  1156.         "noerr": 0,
  1157.         "initialize": "",
  1158.         "finalize": "",
  1159.         "x": 460,
  1160.         "y": 600,
  1161.         "wires": [
  1162.             [
  1163.                 "9bc37d65.2dafe"
  1164.             ]
  1165.         ]
  1166.     },
  1167.     {
  1168.         "id": "5f54cd42.afae14",
  1169.         "type": "switch",
  1170.         "z": "bcc64ec3.65567",
  1171.         "name": "",
  1172.         "property": "payload",
  1173.         "propertyType": "msg",
  1174.         "rules": [
  1175.             {
  1176.                 "t": "eq",
  1177.                 "v": "1",
  1178.                 "vt": "str"
  1179.             },
  1180.             {
  1181.                 "t": "eq",
  1182.                 "v": "ON",
  1183.                 "vt": "str"
  1184.             }
  1185.         ],
  1186.         "checkall": "true",
  1187.         "repair": false,
  1188.         "outputs": 2,
  1189.         "x": 370,
  1190.         "y": 540,
  1191.         "wires": [
  1192.             [
  1193.                 "e0364df3.1195",
  1194.                 "9bc37d65.2dafe"
  1195.             ],
  1196.             [
  1197.                 "9bc37d65.2dafe"
  1198.             ]
  1199.         ]
  1200.     },
  1201.     {
  1202.         "id": "eb486e23.1d7b3",
  1203.         "type": "within-time-switch",
  1204.         "z": "bcc64ec3.65567",
  1205.         "name": "",
  1206.         "nameInt": "",
  1207.         "positionConfig": "d54b4b8e.d537a8",
  1208.         "startTime": "22:45",
  1209.         "startTimeType": "entered",
  1210.         "startOffset": 0,
  1211.         "startOffsetType": "none",
  1212.         "startOffsetMultiplier": 60000,
  1213.         "endTime": "05:29:00",
  1214.         "endTimeType": "entered",
  1215.         "endOffset": 0,
  1216.         "endOffsetType": "none",
  1217.         "endOffsetMultiplier": 60000,
  1218.         "timeRestrictions": 0,
  1219.         "timeRestrictionsType": "none",
  1220.         "timeDays": "*",
  1221.         "timeOnlyOddDays": false,
  1222.         "timeOnlyEvenDays": false,
  1223.         "timeMonths": "*",
  1224.         "timedatestart": "",
  1225.         "timedateend": "",
  1226.         "propertyStart": "",
  1227.         "propertyStartType": "none",
  1228.         "propertyStartCompare": "true",
  1229.         "propertyStartThreshold": "",
  1230.         "propertyStartThresholdType": "num",
  1231.         "startTimeAlt": "",
  1232.         "startTimeAltType": "entered",
  1233.         "startOffsetAlt": 0,
  1234.         "startOffsetAltType": "none",
  1235.         "startOffsetAltMultiplier": 60000,
  1236.         "propertyEnd": "",
  1237.         "propertyEndType": "none",
  1238.         "propertyEndCompare": "true",
  1239.         "propertyEndThreshold": "",
  1240.         "propertyEndThresholdType": "num",
  1241.         "endTimeAlt": "",
  1242.         "endTimeAltType": "entered",
  1243.         "endOffsetAlt": 0,
  1244.         "endOffsetAltType": "none",
  1245.         "endOffsetAltMultiplier": 60000,
  1246.         "tsCompare": "0",
  1247.         "x": 920,
  1248.         "y": 500,
  1249.         "wires": [
  1250.             [
  1251.                 "d6d76c95.3ae7b"
  1252.             ],
  1253.             [
  1254.                 "62f283d6.e6a9cc"
  1255.             ]
  1256.         ]
  1257.     },
  1258.     {
  1259.         "id": "6e3dde1e.66cdd",
  1260.         "type": "link in",
  1261.         "z": "bcc64ec3.65567",
  1262.         "name": "Osram-Flur On",
  1263.         "links": [
  1264.             "d6d76c95.3ae7b",
  1265.             "f15f464cb4a1a351"
  1266.         ],
  1267.         "x": 675,
  1268.         "y": 1860,
  1269.         "wires": [
  1270.             [
  1271.                 "615931e2.a0de7",
  1272.                 "30e1392d.6abdd6"
  1273.             ]
  1274.         ]
  1275.     },
  1276.     {
  1277.         "id": "db418d6d.14dce",
  1278.         "type": "link in",
  1279.         "z": "bcc64ec3.65567",
  1280.         "name": "Osram-Flur Off",
  1281.         "links": [
  1282.             "5e02ffa.b7968",
  1283.             "2af8024b9060eaee",
  1284.             "7238676dc3bdb29f"
  1285.         ],
  1286.         "x": 675,
  1287.         "y": 2020,
  1288.         "wires": [
  1289.             [
  1290.                 "f6381d48.f7482",
  1291.                 "f09d5be8.3b1838"
  1292.             ]
  1293.         ]
  1294.     },
  1295.     {
  1296.         "id": "686c213c.0d67d",
  1297.         "type": "within-time-switch",
  1298.         "z": "bcc64ec3.65567",
  1299.         "name": "",
  1300.         "nameInt": "",
  1301.         "positionConfig": "d54b4b8e.d537a8",
  1302.         "startTime": "22:45",
  1303.         "startTimeType": "entered",
  1304.         "startOffset": 0,
  1305.         "startOffsetType": "none",
  1306.         "startOffsetMultiplier": 60000,
  1307.         "endTime": "05:29",
  1308.         "endTimeType": "entered",
  1309.         "endOffset": 0,
  1310.         "endOffsetType": "none",
  1311.         "endOffsetMultiplier": 60000,
  1312.         "timeRestrictions": 0,
  1313.         "timeRestrictionsType": "none",
  1314.         "timeDays": "*",
  1315.         "timeOnlyOddDays": false,
  1316.         "timeOnlyEvenDays": false,
  1317.         "timeMonths": "*",
  1318.         "timedatestart": "",
  1319.         "timedateend": "",
  1320.         "propertyStart": "",
  1321.         "propertyStartType": "none",
  1322.         "propertyStartCompare": "true",
  1323.         "propertyStartThreshold": "",
  1324.         "propertyStartThresholdType": "num",
  1325.         "startTimeAlt": "",
  1326.         "startTimeAltType": "entered",
  1327.         "startOffsetAlt": 0,
  1328.         "startOffsetAltType": "none",
  1329.         "startOffsetAltMultiplier": 60000,
  1330.         "propertyEnd": "",
  1331.         "propertyEndType": "none",
  1332.         "propertyEndCompare": "true",
  1333.         "propertyEndThreshold": "",
  1334.         "propertyEndThresholdType": "num",
  1335.         "endTimeAlt": "",
  1336.         "endTimeAltType": "entered",
  1337.         "endOffsetAlt": 0,
  1338.         "endOffsetAltType": "none",
  1339.         "endOffsetAltMultiplier": 60000,
  1340.         "tsCompare": "0",
  1341.         "x": 910,
  1342.         "y": 580,
  1343.         "wires": [
  1344.             [
  1345.                 "5e02ffa.b7968"
  1346.             ],
  1347.             [
  1348.                 "cb7fe390.05aac"
  1349.             ]
  1350.         ]
  1351.     },
  1352.     {
  1353.         "id": "d6d76c95.3ae7b",
  1354.         "type": "link out",
  1355.         "z": "bcc64ec3.65567",
  1356.         "name": "",
  1357.         "links": [
  1358.             "6e3dde1e.66cdd"
  1359.         ],
  1360.         "x": 1155,
  1361.         "y": 480,
  1362.         "wires": []
  1363.     },
  1364.     {
  1365.         "id": "5e02ffa.b7968",
  1366.         "type": "link out",
  1367.         "z": "bcc64ec3.65567",
  1368.         "name": "",
  1369.         "links": [
  1370.             "db418d6d.14dce"
  1371.         ],
  1372.         "x": 1155,
  1373.         "y": 560,
  1374.         "wires": []
  1375.     },
  1376.     {
  1377.         "id": "30e1392d.6abdd6",
  1378.         "type": "debug",
  1379.         "z": "bcc64ec3.65567",
  1380.         "name": "",
  1381.         "active": false,
  1382.         "tosidebar": true,
  1383.         "console": false,
  1384.         "tostatus": false,
  1385.         "complete": "false",
  1386.         "statusVal": "",
  1387.         "statusType": "auto",
  1388.         "x": 870,
  1389.         "y": 1860,
  1390.         "wires": []
  1391.     },
  1392.     {
  1393.         "id": "f09d5be8.3b1838",
  1394.         "type": "debug",
  1395.         "z": "bcc64ec3.65567",
  1396.         "name": "",
  1397.         "active": false,
  1398.         "tosidebar": true,
  1399.         "console": false,
  1400.         "tostatus": false,
  1401.         "complete": "false",
  1402.         "statusVal": "",
  1403.         "statusType": "auto",
  1404.         "x": 870,
  1405.         "y": 2020,
  1406.         "wires": []
  1407.     },
  1408.     {
  1409.         "id": "bac5216b.56483",
  1410.         "type": "mqtt in",
  1411.         "z": "bcc64ec3.65567",
  1412.         "name": "",
  1413.         "topic": "/home/zigbee/Osram-Flur/#",
  1414.         "qos": "2",
  1415.         "datatype": "auto",
  1416.         "broker": "595dfa51.2c1224",
  1417.         "x": 190,
  1418.         "y": 2400,
  1419.         "wires": [
  1420.             [
  1421.                 "7520ee27.fcee8"
  1422.             ]
  1423.         ]
  1424.     },
  1425.     {
  1426.         "id": "4a6d9c8e.284df4",
  1427.         "type": "debug",
  1428.         "z": "bcc64ec3.65567",
  1429.         "name": "",
  1430.         "active": false,
  1431.         "tosidebar": true,
  1432.         "console": false,
  1433.         "tostatus": false,
  1434.         "complete": "false",
  1435.         "statusVal": "",
  1436.         "statusType": "auto",
  1437.         "x": 910,
  1438.         "y": 2420,
  1439.         "wires": []
  1440.     },
  1441.     {
  1442.         "id": "72de166a.383578",
  1443.         "type": "inject",
  1444.         "z": "bcc64ec3.65567",
  1445.         "name": "",
  1446.         "props": [
  1447.             {
  1448.                 "p": "payload"
  1449.             },
  1450.             {
  1451.                 "p": "topic",
  1452.                 "vt": "str"
  1453.             }
  1454.         ],
  1455.         "repeat": "600",
  1456.         "crontab": "",
  1457.         "once": false,
  1458.         "onceDelay": 0.1,
  1459.         "topic": "/home/zigbee/Osram-Flur/get",
  1460.         "payload": "{\"state\": \"\"}",
  1461.         "payloadType": "str",
  1462.         "x": 910,
  1463.         "y": 2100,
  1464.         "wires": [
  1465.             [
  1466.                 "d144768c.78ded8"
  1467.             ]
  1468.         ]
  1469.     },
  1470.     {
  1471.         "id": "7520ee27.fcee8",
  1472.         "type": "json",
  1473.         "z": "bcc64ec3.65567",
  1474.         "name": "",
  1475.         "property": "payload",
  1476.         "action": "",
  1477.         "pretty": false,
  1478.         "x": 430,
  1479.         "y": 2400,
  1480.         "wires": [
  1481.             [
  1482.                 "80fcda5d.c45a98"
  1483.             ]
  1484.         ]
  1485.     },
  1486.     {
  1487.         "id": "80fcda5d.c45a98",
  1488.         "type": "function",
  1489.         "z": "bcc64ec3.65567",
  1490.         "name": "",
  1491.         "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];",
  1492.         "outputs": 4,
  1493.         "noerr": 0,
  1494.         "initialize": "",
  1495.         "finalize": "",
  1496.         "libs": [],
  1497.         "x": 640,
  1498.         "y": 2400,
  1499.         "wires": [
  1500.             [
  1501.                 "5b0c6e16.7c2da"
  1502.             ],
  1503.             [
  1504.                 "fa3f9a48.db2b18",
  1505.                 "8fcbe6bc.cfc408"
  1506.             ],
  1507.             [
  1508.                 "f6a172be.522de"
  1509.             ],
  1510.             [
  1511.                 "4a6d9c8e.284df4"
  1512.             ]
  1513.         ]
  1514.     },
  1515.     {
  1516.         "id": "fa3f9a48.db2b18",
  1517.         "type": "ui_led",
  1518.         "z": "bcc64ec3.65567",
  1519.         "order": 3,
  1520.         "group": "7b5e04a5.3567dc",
  1521.         "width": "0",
  1522.         "height": "0",
  1523.         "label": "Ein / Aus LED",
  1524.         "labelPlacement": "left",
  1525.         "labelAlignment": "left",
  1526.         "colorForValue": [
  1527.             {
  1528.                 "color": "#ff0000",
  1529.                 "value": "OFF",
  1530.                 "valueType": "str"
  1531.             },
  1532.             {
  1533.                 "color": "#008000",
  1534.                 "value": "ON",
  1535.                 "valueType": "str"
  1536.             }
  1537.         ],
  1538.         "allowColorForValueInMessage": false,
  1539.         "shape": "circle",
  1540.         "showGlow": true,
  1541.         "name": "",
  1542.         "x": 890,
  1543.         "y": 2280,
  1544.         "wires": []
  1545.     },
  1546.     {
  1547.         "id": "f6a172be.522de",
  1548.         "type": "ui_gauge",
  1549.         "z": "bcc64ec3.65567",
  1550.         "name": "Link Quality",
  1551.         "group": "7b5e04a5.3567dc",
  1552.         "order": 4,
  1553.         "width": "0",
  1554.         "height": "0",
  1555.         "gtype": "gage",
  1556.         "title": "Link Quality",
  1557.         "label": "%",
  1558.         "format": "{{value}}",
  1559.         "min": 0,
  1560.         "max": "100",
  1561.         "colors": [
  1562.             "#ff0000",
  1563.             "#e6e600",
  1564.             "#00ff01"
  1565.         ],
  1566.         "seg1": "",
  1567.         "seg2": "",
  1568.         "x": 910,
  1569.         "y": 2380,
  1570.         "wires": []
  1571.     },
  1572.     {
  1573.         "id": "8fcbe6bc.cfc408",
  1574.         "type": "ui_switch",
  1575.         "z": "bcc64ec3.65567",
  1576.         "name": "",
  1577.         "label": "Ein / Ausschalter",
  1578.         "tooltip": "",
  1579.         "group": "7b5e04a5.3567dc",
  1580.         "order": 2,
  1581.         "width": "0",
  1582.         "height": "0",
  1583.         "passthru": false,
  1584.         "decouple": "true",
  1585.         "topic": "/home/zigbee/Osram-Flur/set",
  1586.         "topicType": "str",
  1587.         "style": "",
  1588.         "onvalue": "ON",
  1589.         "onvalueType": "str",
  1590.         "onicon": "",
  1591.         "oncolor": "",
  1592.         "offvalue": "OFF",
  1593.         "offvalueType": "str",
  1594.         "officon": "",
  1595.         "offcolor": "",
  1596.         "animate": false,
  1597.         "x": 930,
  1598.         "y": 2320,
  1599.         "wires": [
  1600.             [
  1601.                 "3317c5b1.aa359a"
  1602.             ]
  1603.         ]
  1604.     },
  1605.     {
  1606.         "id": "5b0c6e16.7c2da",
  1607.         "type": "range",
  1608.         "z": "bcc64ec3.65567",
  1609.         "minin": "1",
  1610.         "maxin": "255",
  1611.         "minout": "1",
  1612.         "maxout": "100",
  1613.         "action": "scale",
  1614.         "round": true,
  1615.         "property": "payload",
  1616.         "name": "",
  1617.         "x": 800,
  1618.         "y": 2240,
  1619.         "wires": [
  1620.             [
  1621.                 "6de664db.46648c"
  1622.             ]
  1623.         ]
  1624.     },
  1625.     {
  1626.         "id": "6de664db.46648c",
  1627.         "type": "ui_slider",
  1628.         "z": "bcc64ec3.65567",
  1629.         "name": "Helligkeit",
  1630.         "label": "Helligkeit",
  1631.         "tooltip": "",
  1632.         "group": "7b5e04a5.3567dc",
  1633.         "order": 1,
  1634.         "width": 0,
  1635.         "height": 0,
  1636.         "passthru": false,
  1637.         "outs": "end",
  1638.         "topic": "/home/zigbee/Osram-Flur/set",
  1639.         "topicType": "str",
  1640.         "min": "1",
  1641.         "max": "100",
  1642.         "step": "2",
  1643.         "x": 880,
  1644.         "y": 2160,
  1645.         "wires": [
  1646.             [
  1647.                 "9ab50888.e0e758"
  1648.             ]
  1649.         ]
  1650.     },
  1651.     {
  1652.         "id": "9ab50888.e0e758",
  1653.         "type": "range",
  1654.         "z": "bcc64ec3.65567",
  1655.         "minin": "1",
  1656.         "maxin": "100",
  1657.         "minout": "1",
  1658.         "maxout": "255",
  1659.         "action": "scale",
  1660.         "round": true,
  1661.         "property": "payload",
  1662.         "name": "",
  1663.         "x": 980,
  1664.         "y": 2240,
  1665.         "wires": [
  1666.             []
  1667.         ]
  1668.     },
  1669.     {
  1670.         "id": "1d3c179e.df0da8",
  1671.         "type": "link in",
  1672.         "z": "bcc64ec3.65567",
  1673.         "name": "Hue-Flur-1-In",
  1674.         "links": [
  1675.             "b79b47c7.3d8a58"
  1676.         ],
  1677.         "x": 1175,
  1678.         "y": 620,
  1679.         "wires": [
  1680.             [
  1681.                 "405dd0d1.ebebf"
  1682.             ]
  1683.         ]
  1684.     },
  1685.     {
  1686.         "id": "912fe0a6.0de46",
  1687.         "type": "link in",
  1688.         "z": "bcc64ec3.65567",
  1689.         "name": "Hue-Flur-2-In",
  1690.         "links": [
  1691.             "47e6a3b6.ccd59c"
  1692.         ],
  1693.         "x": 1175,
  1694.         "y": 760,
  1695.         "wires": [
  1696.             [
  1697.                 "dd56c14f.4a65b"
  1698.             ]
  1699.         ]
  1700.     },
  1701.     {
  1702.         "id": "440b9337.29f23c",
  1703.         "type": "mqtt in",
  1704.         "z": "bcc64ec3.65567",
  1705.         "name": "",
  1706.         "topic": "/home/zigbee/Hue-01-Flur",
  1707.         "qos": "2",
  1708.         "datatype": "auto",
  1709.         "broker": "595dfa51.2c1224",
  1710.         "x": 190,
  1711.         "y": 2800,
  1712.         "wires": [
  1713.             [
  1714.                 "5550c93a.dcf208"
  1715.             ]
  1716.         ]
  1717.     },
  1718.     {
  1719.         "id": "190beb5a.560465",
  1720.         "type": "debug",
  1721.         "z": "bcc64ec3.65567",
  1722.         "name": "",
  1723.         "active": false,
  1724.         "tosidebar": true,
  1725.         "console": false,
  1726.         "tostatus": false,
  1727.         "complete": "false",
  1728.         "statusVal": "",
  1729.         "statusType": "auto",
  1730.         "x": 930,
  1731.         "y": 2820,
  1732.         "wires": []
  1733.     },
  1734.     {
  1735.         "id": "d1426718.b32178",
  1736.         "type": "inject",
  1737.         "z": "bcc64ec3.65567",
  1738.         "name": "",
  1739.         "props": [
  1740.             {
  1741.                 "p": "payload"
  1742.             },
  1743.             {
  1744.                 "p": "topic",
  1745.                 "vt": "str"
  1746.             }
  1747.         ],
  1748.         "repeat": "600",
  1749.         "crontab": "",
  1750.         "once": false,
  1751.         "onceDelay": 0.1,
  1752.         "topic": "/home/zigbee/Hue-01-Flur/get",
  1753.         "payload": "{\"state\": \"\"}",
  1754.         "payloadType": "str",
  1755.         "x": 930,
  1756.         "y": 2500,
  1757.         "wires": [
  1758.             [
  1759.                 "b79b47c7.3d8a58"
  1760.             ]
  1761.         ]
  1762.     },
  1763.     {
  1764.         "id": "5550c93a.dcf208",
  1765.         "type": "json",
  1766.         "z": "bcc64ec3.65567",
  1767.         "name": "",
  1768.         "property": "payload",
  1769.         "action": "",
  1770.         "pretty": false,
  1771.         "x": 430,
  1772.         "y": 2800,
  1773.         "wires": [
  1774.             [
  1775.                 "97332a26.ac5908"
  1776.             ]
  1777.         ]
  1778.     },
  1779.     {
  1780.         "id": "97332a26.ac5908",
  1781.         "type": "function",
  1782.         "z": "bcc64ec3.65567",
  1783.         "name": "",
  1784.         "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];",
  1785.         "outputs": 4,
  1786.         "noerr": 0,
  1787.         "initialize": "",
  1788.         "finalize": "",
  1789.         "x": 660,
  1790.         "y": 2800,
  1791.         "wires": [
  1792.             [
  1793.                 "9f13776c.bd0b88"
  1794.             ],
  1795.             [
  1796.                 "d26c8220.4b93d",
  1797.                 "1e0b4112.6a2e7f"
  1798.             ],
  1799.             [
  1800.                 "91f93ba9.bb6928"
  1801.             ],
  1802.             [
  1803.                 "190beb5a.560465"
  1804.             ]
  1805.         ]
  1806.     },
  1807.     {
  1808.         "id": "d26c8220.4b93d",
  1809.         "type": "ui_led",
  1810.         "z": "bcc64ec3.65567",
  1811.         "order": 3,
  1812.         "group": "39b918d8.7dd778",
  1813.         "width": "0",
  1814.         "height": "0",
  1815.         "label": "Ein / Aus LED",
  1816.         "labelPlacement": "left",
  1817.         "labelAlignment": "left",
  1818.         "colorForValue": [
  1819.             {
  1820.                 "color": "#ff0000",
  1821.                 "value": "OFF",
  1822.                 "valueType": "str"
  1823.             },
  1824.             {
  1825.                 "color": "#008000",
  1826.                 "value": "ON",
  1827.                 "valueType": "str"
  1828.             }
  1829.         ],
  1830.         "allowColorForValueInMessage": false,
  1831.         "shape": "circle",
  1832.         "showGlow": true,
  1833.         "name": "",
  1834.         "x": 910,
  1835.         "y": 2680,
  1836.         "wires": []
  1837.     },
  1838.     {
  1839.         "id": "91f93ba9.bb6928",
  1840.         "type": "ui_gauge",
  1841.         "z": "bcc64ec3.65567",
  1842.         "name": "Link Quality",
  1843.         "group": "39b918d8.7dd778",
  1844.         "order": 4,
  1845.         "width": "0",
  1846.         "height": "0",
  1847.         "gtype": "gage",
  1848.         "title": "Link Quality",
  1849.         "label": "%",
  1850.         "format": "{{value}}",
  1851.         "min": 0,
  1852.         "max": "100",
  1853.         "colors": [
  1854.             "#ff0000",
  1855.             "#e6e600",
  1856.             "#00ff01"
  1857.         ],
  1858.         "seg1": "",
  1859.         "seg2": "",
  1860.         "x": 930,
  1861.         "y": 2780,
  1862.         "wires": []
  1863.     },
  1864.     {
  1865.         "id": "9f13776c.bd0b88",
  1866.         "type": "range",
  1867.         "z": "bcc64ec3.65567",
  1868.         "minin": "1",
  1869.         "maxin": "255",
  1870.         "minout": "1",
  1871.         "maxout": "100",
  1872.         "action": "scale",
  1873.         "round": true,
  1874.         "property": "payload",
  1875.         "name": "",
  1876.         "x": 820,
  1877.         "y": 2640,
  1878.         "wires": [
  1879.             [
  1880.                 "2723c802.c2d2d8"
  1881.             ]
  1882.         ]
  1883.     },
  1884.     {
  1885.         "id": "2723c802.c2d2d8",
  1886.         "type": "ui_slider",
  1887.         "z": "bcc64ec3.65567",
  1888.         "name": "Helligkeit",
  1889.         "label": "Helligkeit",
  1890.         "tooltip": "",
  1891.         "group": "39b918d8.7dd778",
  1892.         "order": 1,
  1893.         "width": 0,
  1894.         "height": 0,
  1895.         "passthru": false,
  1896.         "outs": "end",
  1897.         "topic": "/home/zigbee/Osram-Flur/set",
  1898.         "topicType": "str",
  1899.         "min": "1",
  1900.         "max": "100",
  1901.         "step": "2",
  1902.         "x": 900,
  1903.         "y": 2560,
  1904.         "wires": [
  1905.             [
  1906.                 "8cf0d38d.1eae"
  1907.             ]
  1908.         ]
  1909.     },
  1910.     {
  1911.         "id": "8cf0d38d.1eae",
  1912.         "type": "range",
  1913.         "z": "bcc64ec3.65567",
  1914.         "minin": "1",
  1915.         "maxin": "100",
  1916.         "minout": "1",
  1917.         "maxout": "255",
  1918.         "action": "scale",
  1919.         "round": true,
  1920.         "property": "payload",
  1921.         "name": "",
  1922.         "x": 1000,
  1923.         "y": 2640,
  1924.         "wires": [
  1925.             []
  1926.         ]
  1927.     },
  1928.     {
  1929.         "id": "b79b47c7.3d8a58",
  1930.         "type": "link out",
  1931.         "z": "bcc64ec3.65567",
  1932.         "name": "",
  1933.         "links": [
  1934.             "1d3c179e.df0da8"
  1935.         ],
  1936.         "x": 1175,
  1937.         "y": 2500,
  1938.         "wires": []
  1939.     },
  1940.     {
  1941.         "id": "1e0b4112.6a2e7f",
  1942.         "type": "ui_switch",
  1943.         "z": "bcc64ec3.65567",
  1944.         "name": "",
  1945.         "label": "Ein / Ausschalter",
  1946.         "tooltip": "",
  1947.         "group": "39b918d8.7dd778",
  1948.         "order": 2,
  1949.         "width": 0,
  1950.         "height": 0,
  1951.         "passthru": false,
  1952.         "decouple": "true",
  1953.         "topic": "/home/zigbee/Hue-01-Flur/set",
  1954.         "topicType": "str",
  1955.         "style": "",
  1956.         "onvalue": "ON",
  1957.         "onvalueType": "str",
  1958.         "onicon": "",
  1959.         "oncolor": "",
  1960.         "offvalue": "OFF",
  1961.         "offvalueType": "str",
  1962.         "officon": "",
  1963.         "offcolor": "",
  1964.         "animate": false,
  1965.         "x": 950,
  1966.         "y": 2720,
  1967.         "wires": [
  1968.             [
  1969.                 "b79b47c7.3d8a58"
  1970.             ]
  1971.         ]
  1972.     },
  1973.     {
  1974.         "id": "a972f07c.64da8",
  1975.         "type": "mqtt in",
  1976.         "z": "bcc64ec3.65567",
  1977.         "name": "",
  1978.         "topic": "/home/zigbee/Hue-02-Flur",
  1979.         "qos": "2",
  1980.         "datatype": "auto",
  1981.         "broker": "595dfa51.2c1224",
  1982.         "x": 230,
  1983.         "y": 3280,
  1984.         "wires": [
  1985.             [
  1986.                 "ceec6f96.255be"
  1987.             ]
  1988.         ]
  1989.     },
  1990.     {
  1991.         "id": "c17614de.6925b8",
  1992.         "type": "debug",
  1993.         "z": "bcc64ec3.65567",
  1994.         "name": "",
  1995.         "active": false,
  1996.         "tosidebar": true,
  1997.         "console": false,
  1998.         "tostatus": false,
  1999.         "complete": "false",
  2000.         "statusVal": "",
  2001.         "statusType": "auto",
  2002.         "x": 950,
  2003.         "y": 3300,
  2004.         "wires": []
  2005.     },
  2006.     {
  2007.         "id": "c5605d5b.03bb3",
  2008.         "type": "inject",
  2009.         "z": "bcc64ec3.65567",
  2010.         "name": "",
  2011.         "props": [
  2012.             {
  2013.                 "p": "payload"
  2014.             },
  2015.             {
  2016.                 "p": "topic",
  2017.                 "vt": "str"
  2018.             }
  2019.         ],
  2020.         "repeat": "600",
  2021.         "crontab": "",
  2022.         "once": false,
  2023.         "onceDelay": 0.1,
  2024.         "topic": "/home/zigbee/Hue-02-Flur/get",
  2025.         "payload": "{\"state\": \"\"}",
  2026.         "payloadType": "str",
  2027.         "x": 950,
  2028.         "y": 2980,
  2029.         "wires": [
  2030.             [
  2031.                 "47e6a3b6.ccd59c"
  2032.             ]
  2033.         ]
  2034.     },
  2035.     {
  2036.         "id": "ceec6f96.255be",
  2037.         "type": "json",
  2038.         "z": "bcc64ec3.65567",
  2039.         "name": "",
  2040.         "property": "payload",
  2041.         "action": "",
  2042.         "pretty": false,
  2043.         "x": 470,
  2044.         "y": 3280,
  2045.         "wires": [
  2046.             [
  2047.                 "ccfe1d8f.17574"
  2048.             ]
  2049.         ]
  2050.     },
  2051.     {
  2052.         "id": "ccfe1d8f.17574",
  2053.         "type": "function",
  2054.         "z": "bcc64ec3.65567",
  2055.         "name": "",
  2056.         "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];",
  2057.         "outputs": 4,
  2058.         "noerr": 0,
  2059.         "initialize": "",
  2060.         "finalize": "",
  2061.         "x": 680,
  2062.         "y": 3280,
  2063.         "wires": [
  2064.             [
  2065.                 "4b3e6154.5e95a"
  2066.             ],
  2067.             [
  2068.                 "273fb64b.344b1a",
  2069.                 "687f3505.6703cc"
  2070.             ],
  2071.             [
  2072.                 "c5d54c5c.634f9"
  2073.             ],
  2074.             [
  2075.                 "c17614de.6925b8"
  2076.             ]
  2077.         ]
  2078.     },
  2079.     {
  2080.         "id": "273fb64b.344b1a",
  2081.         "type": "ui_led",
  2082.         "z": "bcc64ec3.65567",
  2083.         "order": 3,
  2084.         "group": "7e09d455.9ad7dc",
  2085.         "width": "0",
  2086.         "height": "0",
  2087.         "label": "Ein / Aus LED",
  2088.         "labelPlacement": "left",
  2089.         "labelAlignment": "left",
  2090.         "colorForValue": [
  2091.             {
  2092.                 "color": "#ff0000",
  2093.                 "value": "OFF",
  2094.                 "valueType": "str"
  2095.             },
  2096.             {
  2097.                 "color": "#008000",
  2098.                 "value": "ON",
  2099.                 "valueType": "str"
  2100.             }
  2101.         ],
  2102.         "allowColorForValueInMessage": false,
  2103.         "shape": "circle",
  2104.         "showGlow": true,
  2105.         "name": "",
  2106.         "x": 930,
  2107.         "y": 3160,
  2108.         "wires": []
  2109.     },
  2110.     {
  2111.         "id": "c5d54c5c.634f9",
  2112.         "type": "ui_gauge",
  2113.         "z": "bcc64ec3.65567",
  2114.         "name": "Link Quality",
  2115.         "group": "7e09d455.9ad7dc",
  2116.         "order": 4,
  2117.         "width": "0",
  2118.         "height": "0",
  2119.         "gtype": "gage",
  2120.         "title": "Link Quality",
  2121.         "label": "%",
  2122.         "format": "{{value}}",
  2123.         "min": 0,
  2124.         "max": "100",
  2125.         "colors": [
  2126.             "#ff0000",
  2127.             "#e6e600",
  2128.             "#00ff01"
  2129.         ],
  2130.         "seg1": "",
  2131.         "seg2": "",
  2132.         "x": 950,
  2133.         "y": 3260,
  2134.         "wires": []
  2135.     },
  2136.     {
  2137.         "id": "4b3e6154.5e95a",
  2138.         "type": "range",
  2139.         "z": "bcc64ec3.65567",
  2140.         "minin": "1",
  2141.         "maxin": "255",
  2142.         "minout": "1",
  2143.         "maxout": "100",
  2144.         "action": "scale",
  2145.         "round": true,
  2146.         "property": "payload",
  2147.         "name": "",
  2148.         "x": 840,
  2149.         "y": 3120,
  2150.         "wires": [
  2151.             [
  2152.                 "88c9840c.bd1338"
  2153.             ]
  2154.         ]
  2155.     },
  2156.     {
  2157.         "id": "88c9840c.bd1338",
  2158.         "type": "ui_slider",
  2159.         "z": "bcc64ec3.65567",
  2160.         "name": "Helligkeit",
  2161.         "label": "Helligkeit",
  2162.         "tooltip": "",
  2163.         "group": "7e09d455.9ad7dc",
  2164.         "order": 1,
  2165.         "width": 0,
  2166.         "height": 0,
  2167.         "passthru": false,
  2168.         "outs": "end",
  2169.         "topic": "/home/zigbee/Osram-Flur/set",
  2170.         "topicType": "str",
  2171.         "min": "1",
  2172.         "max": "100",
  2173.         "step": "2",
  2174.         "x": 920,
  2175.         "y": 3040,
  2176.         "wires": [
  2177.             [
  2178.                 "adfe2228.9cd82"
  2179.             ]
  2180.         ]
  2181.     },
  2182.     {
  2183.         "id": "311291e6.99182e",
  2184.         "type": "debug",
  2185.         "z": "bcc64ec3.65567",
  2186.         "name": "",
  2187.         "active": true,
  2188.         "tosidebar": true,
  2189.         "console": false,
  2190.         "tostatus": false,
  2191.         "complete": "payload",
  2192.         "targetType": "msg",
  2193.         "statusVal": "",
  2194.         "statusType": "auto",
  2195.         "x": 1230,
  2196.         "y": 3200,
  2197.         "wires": []
  2198.     },
  2199.     {
  2200.         "id": "adfe2228.9cd82",
  2201.         "type": "range",
  2202.         "z": "bcc64ec3.65567",
  2203.         "minin": "1",
  2204.         "maxin": "100",
  2205.         "minout": "1",
  2206.         "maxout": "255",
  2207.         "action": "scale",
  2208.         "round": true,
  2209.         "property": "payload",
  2210.         "name": "",
  2211.         "x": 1020,
  2212.         "y": 3120,
  2213.         "wires": [
  2214.             []
  2215.         ]
  2216.     },
  2217.     {
  2218.         "id": "47e6a3b6.ccd59c",
  2219.         "type": "link out",
  2220.         "z": "bcc64ec3.65567",
  2221.         "name": "",
  2222.         "links": [
  2223.             "912fe0a6.0de46"
  2224.         ],
  2225.         "x": 1195,
  2226.         "y": 2980,
  2227.         "wires": []
  2228.     },
  2229.     {
  2230.         "id": "687f3505.6703cc",
  2231.         "type": "ui_switch",
  2232.         "z": "bcc64ec3.65567",
  2233.         "name": "",
  2234.         "label": "Ein / Ausschalter",
  2235.         "tooltip": "",
  2236.         "group": "7e09d455.9ad7dc",
  2237.         "order": 2,
  2238.         "width": 0,
  2239.         "height": 0,
  2240.         "passthru": false,
  2241.         "decouple": "true",
  2242.         "topic": "/home/zigbee/Hue-02-Flur/set",
  2243.         "topicType": "str",
  2244.         "style": "",
  2245.         "onvalue": "ON",
  2246.         "onvalueType": "str",
  2247.         "onicon": "",
  2248.         "oncolor": "",
  2249.         "offvalue": "OFF",
  2250.         "offvalueType": "str",
  2251.         "officon": "",
  2252.         "offcolor": "",
  2253.         "animate": false,
  2254.         "x": 970,
  2255.         "y": 3200,
  2256.         "wires": [
  2257.             [
  2258.                 "47e6a3b6.ccd59c",
  2259.                 "311291e6.99182e"
  2260.             ]
  2261.         ]
  2262.     },
  2263.     {
  2264.         "id": "3e97ce82.3ea722",
  2265.         "type": "comment",
  2266.         "z": "bcc64ec3.65567",
  2267.         "name": "Osram-Flur",
  2268.         "info": "",
  2269.         "x": 140,
  2270.         "y": 2120,
  2271.         "wires": []
  2272.     },
  2273.     {
  2274.         "id": "a3af0f3f.9b5aa",
  2275.         "type": "switch",
  2276.         "z": "bcc64ec3.65567",
  2277.         "name": "",
  2278.         "property": "payload",
  2279.         "propertyType": "msg",
  2280.         "rules": [
  2281.             {
  2282.                 "t": "eq",
  2283.                 "v": "ON",
  2284.                 "vt": "str"
  2285.             },
  2286.             {
  2287.                 "t": "eq",
  2288.                 "v": "OFF",
  2289.                 "vt": "str"
  2290.             }
  2291.         ],
  2292.         "checkall": "true",
  2293.         "repair": false,
  2294.         "outputs": 2,
  2295.         "x": 430,
  2296.         "y": 700,
  2297.         "wires": [
  2298.             [
  2299.                 "62f283d6.e6a9cc"
  2300.             ],
  2301.             [
  2302.                 "cb7fe390.05aac"
  2303.             ]
  2304.         ]
  2305.     },
  2306.     {
  2307.         "id": "cddd13a5.f5171",
  2308.         "type": "inject",
  2309.         "z": "bcc64ec3.65567",
  2310.         "name": "On",
  2311.         "props": [
  2312.             {
  2313.                 "p": "payload"
  2314.             },
  2315.             {
  2316.                 "p": "topic",
  2317.                 "vt": "str"
  2318.             }
  2319.         ],
  2320.         "repeat": "",
  2321.         "crontab": "",
  2322.         "once": false,
  2323.         "onceDelay": 0.1,
  2324.         "topic": "",
  2325.         "payload": "ON",
  2326.         "payloadType": "str",
  2327.         "x": 110,
  2328.         "y": 680,
  2329.         "wires": [
  2330.             [
  2331.                 "a3af0f3f.9b5aa"
  2332.             ]
  2333.         ]
  2334.     },
  2335.     {
  2336.         "id": "7d0dd19b.4d7ca",
  2337.         "type": "inject",
  2338.         "z": "bcc64ec3.65567",
  2339.         "name": "Off",
  2340.         "props": [
  2341.             {
  2342.                 "p": "payload"
  2343.             },
  2344.             {
  2345.                 "p": "topic",
  2346.                 "vt": "str"
  2347.             }
  2348.         ],
  2349.         "repeat": "",
  2350.         "crontab": "",
  2351.         "once": false,
  2352.         "onceDelay": 0.1,
  2353.         "topic": "",
  2354.         "payload": "OFF",
  2355.         "payloadType": "str",
  2356.         "x": 110,
  2357.         "y": 720,
  2358.         "wires": [
  2359.             [
  2360.                 "a3af0f3f.9b5aa"
  2361.             ]
  2362.         ]
  2363.     },
  2364.     {
  2365.         "id": "78b00a9c.759254",
  2366.         "type": "inject",
  2367.         "z": "bcc64ec3.65567",
  2368.         "name": "",
  2369.         "repeat": "",
  2370.         "crontab": "",
  2371.         "once": false,
  2372.         "topic": "",
  2373.         "payload": "on",
  2374.         "payloadType": "str",
  2375.         "x": 170,
  2376.         "y": 1180,
  2377.         "wires": [
  2378.             [
  2379.                 "e25b5c0c.d087e"
  2380.             ]
  2381.         ]
  2382.     },
  2383.     {
  2384.         "id": "f0f49778.59f8d8",
  2385.         "type": "inject",
  2386.         "z": "bcc64ec3.65567",
  2387.         "name": "Off",
  2388.         "repeat": "",
  2389.         "crontab": "",
  2390.         "once": false,
  2391.         "topic": "",
  2392.         "payload": "off",
  2393.         "payloadType": "str",
  2394.         "x": 170,
  2395.         "y": 1140,
  2396.         "wires": [
  2397.             [
  2398.                 "e25b5c0c.d087e"
  2399.             ]
  2400.         ]
  2401.     },
  2402.     {
  2403.         "id": "c27f1d94.d5d06",
  2404.         "type": "inject",
  2405.         "z": "bcc64ec3.65567",
  2406.         "name": "Resume Schedule",
  2407.         "repeat": "",
  2408.         "crontab": "",
  2409.         "once": false,
  2410.         "onceDelay": 0.1,
  2411.         "topic": "",
  2412.         "payload": "suspended false",
  2413.         "payloadType": "str",
  2414.         "x": 133,
  2415.         "y": 1259,
  2416.         "wires": [
  2417.             [
  2418.                 "e25b5c0c.d087e"
  2419.             ]
  2420.         ]
  2421.     },
  2422.     {
  2423.         "id": "2ce60b41.1a9ff4",
  2424.         "type": "inject",
  2425.         "z": "bcc64ec3.65567",
  2426.         "name": "Suspend",
  2427.         "repeat": "",
  2428.         "crontab": "",
  2429.         "once": false,
  2430.         "onceDelay": 0.1,
  2431.         "topic": "",
  2432.         "payload": "suspended true",
  2433.         "payloadType": "str",
  2434.         "x": 163,
  2435.         "y": 1219,
  2436.         "wires": [
  2437.             [
  2438.                 "e25b5c0c.d087e"
  2439.             ]
  2440.         ]
  2441.     },
  2442.     {
  2443.         "id": "3249dcc.075b324",
  2444.         "type": "inject",
  2445.         "z": "bcc64ec3.65567",
  2446.         "name": "",
  2447.         "repeat": "",
  2448.         "crontab": "",
  2449.         "once": false,
  2450.         "topic": "",
  2451.         "payload": "on",
  2452.         "payloadType": "str",
  2453.         "x": 170,
  2454.         "y": 1520,
  2455.         "wires": [
  2456.             [
  2457.                 "ecb7ed61.5577c"
  2458.             ]
  2459.         ]
  2460.     },
  2461.     {
  2462.         "id": "3a304202.dc495e",
  2463.         "type": "inject",
  2464.         "z": "bcc64ec3.65567",
  2465.         "name": "Off",
  2466.         "repeat": "",
  2467.         "crontab": "",
  2468.         "once": false,
  2469.         "topic": "",
  2470.         "payload": "off",
  2471.         "payloadType": "str",
  2472.         "x": 170,
  2473.         "y": 1480,
  2474.         "wires": [
  2475.             [
  2476.                 "ecb7ed61.5577c"
  2477.             ]
  2478.         ]
  2479.     },
  2480.     {
  2481.         "id": "9d351b48.a67ae8",
  2482.         "type": "inject",
  2483.         "z": "bcc64ec3.65567",
  2484.         "name": "Resume Schedule",
  2485.         "repeat": "",
  2486.         "crontab": "",
  2487.         "once": false,
  2488.         "onceDelay": 0.1,
  2489.         "topic": "",
  2490.         "payload": "suspended false",
  2491.         "payloadType": "str",
  2492.         "x": 133,
  2493.         "y": 1599,
  2494.         "wires": [
  2495.             [
  2496.                 "ecb7ed61.5577c"
  2497.             ]
  2498.         ]
  2499.     },
  2500.     {
  2501.         "id": "fecaf6b3.a12db8",
  2502.         "type": "inject",
  2503.         "z": "bcc64ec3.65567",
  2504.         "name": "Suspend",
  2505.         "repeat": "",
  2506.         "crontab": "",
  2507.         "once": false,
  2508.         "onceDelay": 0.1,
  2509.         "topic": "",
  2510.         "payload": "suspended true",
  2511.         "payloadType": "str",
  2512.         "x": 163,
  2513.         "y": 1559,
  2514.         "wires": [
  2515.             [
  2516.                 "ecb7ed61.5577c"
  2517.             ]
  2518.         ]
  2519.     },
  2520.     {
  2521.         "id": "10f44427.77e61c",
  2522.         "type": "inject",
  2523.         "z": "bcc64ec3.65567",
  2524.         "name": "Osram-Flur-Morgens",
  2525.         "props": [
  2526.             {
  2527.                 "p": "payload"
  2528.             },
  2529.             {
  2530.                 "p": "topic",
  2531.                 "vt": "str"
  2532.             }
  2533.         ],
  2534.         "repeat": "",
  2535.         "crontab": "",
  2536.         "once": false,
  2537.         "onceDelay": 0.1,
  2538.         "topic": "",
  2539.         "payload": "",
  2540.         "payloadType": "date",
  2541.         "x": 130,
  2542.         "y": 1680,
  2543.         "wires": [
  2544.             [
  2545.                 "75b0d4de.62b71c"
  2546.             ]
  2547.         ]
  2548.     },
  2549.     {
  2550.         "id": "3634bbd8c37b7217",
  2551.         "type": "function",
  2552.         "z": "bcc64ec3.65567",
  2553.         "name": "Set Hue-Flur-Brightness and Osram-Flur-Brightness to 127",
  2554.         "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;",
  2555.         "outputs": 1,
  2556.         "noerr": 0,
  2557.         "initialize": "",
  2558.         "finalize": "",
  2559.         "libs": [],
  2560.         "x": 900,
  2561.         "y": 260,
  2562.         "wires": [
  2563.             [
  2564.                 "7b9168a3.d09a48"
  2565.             ]
  2566.         ]
  2567.     },
  2568.     {
  2569.         "id": "4da371e92b388cb2",
  2570.         "type": "function",
  2571.         "z": "bcc64ec3.65567",
  2572.         "name": "Set Hue-Flur and Osram-Flur-Brightness to 64",
  2573.         "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;",
  2574.         "outputs": 1,
  2575.         "noerr": 0,
  2576.         "initialize": "",
  2577.         "finalize": "",
  2578.         "libs": [],
  2579.         "x": 860,
  2580.         "y": 200,
  2581.         "wires": [
  2582.             [
  2583.                 "d61b338f26cd3223"
  2584.             ]
  2585.         ]
  2586.     },
  2587.     {
  2588.         "id": "d61b338f26cd3223",
  2589.         "type": "link out",
  2590.         "z": "bcc64ec3.65567",
  2591.         "name": "",
  2592.         "links": [
  2593.             "94fd7684.689ba8"
  2594.         ],
  2595.         "x": 1215,
  2596.         "y": 200,
  2597.         "wires": []
  2598.     },
  2599.     {
  2600.         "id": "2af8024b9060eaee",
  2601.         "type": "link out",
  2602.         "z": "bcc64ec3.65567",
  2603.         "name": "",
  2604.         "links": [
  2605.             "db418d6d.14dce"
  2606.         ],
  2607.         "x": 1015,
  2608.         "y": 1280,
  2609.         "wires": []
  2610.     },
  2611.     {
  2612.         "id": "7238676dc3bdb29f",
  2613.         "type": "link out",
  2614.         "z": "bcc64ec3.65567",
  2615.         "name": "",
  2616.         "links": [
  2617.             "db418d6d.14dce"
  2618.         ],
  2619.         "x": 1155,
  2620.         "y": 1580,
  2621.         "wires": []
  2622.     },
  2623.     {
  2624.         "id": "8b4b5082ff118d7b",
  2625.         "type": "mqtt out",
  2626.         "z": "bcc64ec3.65567",
  2627.         "name": "Plug03 - GPIO-5 (Relais)",
  2628.         "topic": "/home/Koss/Plug03/GPIO/5 -m 0",
  2629.         "qos": "",
  2630.         "retain": "",
  2631.         "respTopic": "",
  2632.         "contentType": "",
  2633.         "userProps": "",
  2634.         "correl": "",
  2635.         "expiry": "",
  2636.         "broker": "595dfa51.2c1224",
  2637.         "x": 1210,
  2638.         "y": 100,
  2639.         "wires": []
  2640.     },
  2641.     {
  2642.         "id": "d4c2f39edee35e4e",
  2643.         "type": "function",
  2644.         "z": "bcc64ec3.65567",
  2645.         "name": "Inverts msg.payload",
  2646.         "func": "if (msg.payload == \"1\") {\n    msg = {payload:\"0\"};\n}\n    else {\n    msg = {payload:\"1\"};\n}\nreturn msg;",
  2647.         "outputs": 1,
  2648.         "noerr": 0,
  2649.         "x": 780,
  2650.         "y": 40,
  2651.         "wires": [
  2652.             [
  2653.                 "50fdff73c40b2154"
  2654.             ]
  2655.         ]
  2656.     },
  2657.     {
  2658.         "id": "50fdff73c40b2154",
  2659.         "type": "mqtt out",
  2660.         "z": "bcc64ec3.65567",
  2661.         "name": "Plug03 - GPIO-4 (LED)",
  2662.         "topic": "/home/Koss/Plug03/GPIO/4 -m 0",
  2663.         "qos": "",
  2664.         "retain": "",
  2665.         "respTopic": "",
  2666.         "contentType": "",
  2667.         "userProps": "",
  2668.         "correl": "",
  2669.         "expiry": "",
  2670.         "broker": "595dfa51.2c1224",
  2671.         "x": 1210,
  2672.         "y": 40,
  2673.         "wires": []
  2674.     },
  2675.     {
  2676.         "id": "24cb45836a5224b4",
  2677.         "type": "link in",
  2678.         "z": "bcc64ec3.65567",
  2679.         "name": "",
  2680.         "links": [
  2681.             "e7f78883d3ad1517"
  2682.         ],
  2683.         "x": 95,
  2684.         "y": 600,
  2685.         "wires": [
  2686.             [
  2687.                 "e835a2506b19e055"
  2688.             ]
  2689.         ]
  2690.     },
  2691.     {
  2692.         "id": "e835a2506b19e055",
  2693.         "type": "function",
  2694.         "z": "bcc64ec3.65567",
  2695.         "name": "",
  2696.         "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];",
  2697.         "outputs": 3,
  2698.         "noerr": 0,
  2699.         "initialize": "",
  2700.         "finalize": "",
  2701.         "libs": [],
  2702.         "x": 220,
  2703.         "y": 600,
  2704.         "wires": [
  2705.             [],
  2706.             [
  2707.                 "5f54cd42.afae14"
  2708.             ],
  2709.             []
  2710.         ]
  2711.     },
  2712.     {
  2713.         "id": "950cb22379637a8a",
  2714.         "type": "delay",
  2715.         "z": "bcc64ec3.65567",
  2716.         "name": "",
  2717.         "pauseType": "delay",
  2718.         "timeout": "10",
  2719.         "timeoutUnits": "seconds",
  2720.         "rate": "1",
  2721.         "nbRateUnits": "1",
  2722.         "rateUnits": "second",
  2723.         "randomFirst": "1",
  2724.         "randomLast": "5",
  2725.         "randomUnits": "seconds",
  2726.         "drop": false,
  2727.         "allowrate": false,
  2728.         "x": 1000,
  2729.         "y": 1540,
  2730.         "wires": [
  2731.             [
  2732.                 "d0131704.1ae748",
  2733.                 "7238676dc3bdb29f"
  2734.             ]
  2735.         ]
  2736.     },
  2737.     {
  2738.         "id": "595dfa51.2c1224",
  2739.         "type": "mqtt-broker",
  2740.         "name": "",
  2741.         "broker": "192.168.123.16",
  2742.         "port": "1883",
  2743.         "clientid": "",
  2744.         "usetls": false,
  2745.         "compatmode": true,
  2746.         "keepalive": "60",
  2747.         "cleansession": true,
  2748.         "birthTopic": "",
  2749.         "birthQos": "0",
  2750.         "birthPayload": "",
  2751.         "closeTopic": "",
  2752.         "closePayload": "",
  2753.         "willTopic": "",
  2754.         "willQos": "0",
  2755.         "willPayload": ""
  2756.     },
  2757.     {
  2758.         "id": "d54b4b8e.d537a8",
  2759.         "type": "position-config",
  2760.         "name": "",
  2761.         "isValide": "true",
  2762.         "longitude": "0",
  2763.         "latitude": "0",
  2764.         "angleType": "deg",
  2765.         "timeZoneOffset": "99",
  2766.         "timeZoneDST": "0",
  2767.         "stateTimeFormat": "3",
  2768.         "stateDateFormat": "12"
  2769.     },
  2770.     {
  2771.         "id": "7b5e04a5.3567dc",
  2772.         "type": "ui_group",
  2773.         "name": "Osram-Flur",
  2774.         "tab": "67152ec1.2f63e",
  2775.         "order": 2,
  2776.         "disp": true,
  2777.         "width": "5",
  2778.         "collapse": false
  2779.     },
  2780.     {
  2781.         "id": "39b918d8.7dd778",
  2782.         "type": "ui_group",
  2783.         "name": "Flur hinten",
  2784.         "tab": "67152ec1.2f63e",
  2785.         "order": 4,
  2786.         "disp": true,
  2787.         "width": "5",
  2788.         "collapse": false
  2789.     },
  2790.     {
  2791.         "id": "7e09d455.9ad7dc",
  2792.         "type": "ui_group",
  2793.         "name": "Flur vorn",
  2794.         "tab": "67152ec1.2f63e",
  2795.         "order": 1,
  2796.         "disp": true,
  2797.         "width": "5",
  2798.         "collapse": false
  2799.     },
  2800.     {
  2801.         "id": "67152ec1.2f63e",
  2802.         "type": "ui_tab",
  2803.         "name": "Licht",
  2804.         "icon": "dashboard",
  2805.         "order": 4,
  2806.         "disabled": false,
  2807.         "hidden": false
  2808.     }
  2809. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement