Advertisement
NittyGritty

Licht Dashboard

Nov 26th, 2021
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "fa70063aa6cc13e5",
  4.         "type": "function",
  5.         "z": "e01704e88daf9bd8",
  6.         "name": "",
  7.         "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-Wozi\"\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];",
  8.         "outputs": 4,
  9.         "noerr": 0,
  10.         "initialize": "",
  11.         "finalize": "",
  12.         "libs": [],
  13.         "x": 660,
  14.         "y": 340,
  15.         "wires": [
  16.             [
  17.                 "7f49a0b6c97c766f"
  18.             ],
  19.             [
  20.                 "42dbc9c5f44f5393",
  21.                 "d40e1d835a269727"
  22.             ],
  23.             [
  24.                 "2b193d7f0bea84d1"
  25.             ],
  26.             [
  27.                 "c2d2743b6b3afeda"
  28.             ]
  29.         ]
  30.     },
  31.     {
  32.         "id": "e601a1b68317dae6",
  33.         "type": "json",
  34.         "z": "e01704e88daf9bd8",
  35.         "name": "",
  36.         "property": "payload",
  37.         "action": "",
  38.         "pretty": false,
  39.         "x": 450,
  40.         "y": 340,
  41.         "wires": [
  42.             [
  43.                 "fa70063aa6cc13e5"
  44.             ]
  45.         ]
  46.     },
  47.     {
  48.         "id": "d5040952edafdc24",
  49.         "type": "mqtt in",
  50.         "z": "e01704e88daf9bd8",
  51.         "name": "",
  52.         "topic": "/home/zigbee/Osram-Flur/#",
  53.         "qos": "2",
  54.         "datatype": "auto",
  55.         "broker": "9d4f73b8.d5ee7",
  56.         "nl": false,
  57.         "rap": false,
  58.         "x": 210,
  59.         "y": 340,
  60.         "wires": [
  61.             [
  62.                 "e601a1b68317dae6"
  63.             ]
  64.         ]
  65.     },
  66.     {
  67.         "id": "c2d2743b6b3afeda",
  68.         "type": "debug",
  69.         "z": "e01704e88daf9bd8",
  70.         "name": "",
  71.         "active": false,
  72.         "tosidebar": true,
  73.         "console": false,
  74.         "tostatus": false,
  75.         "complete": "false",
  76.         "statusVal": "",
  77.         "statusType": "auto",
  78.         "x": 930,
  79.         "y": 360,
  80.         "wires": []
  81.     },
  82.     {
  83.         "id": "2b193d7f0bea84d1",
  84.         "type": "ui_gauge",
  85.         "z": "e01704e88daf9bd8",
  86.         "name": "Link Quality",
  87.         "group": "7b5e04a5.3567dc",
  88.         "order": 4,
  89.         "width": "0",
  90.         "height": "0",
  91.         "gtype": "gage",
  92.         "title": "Link Quality",
  93.         "label": "%",
  94.         "format": "{{value}}",
  95.         "min": 0,
  96.         "max": "100",
  97.         "colors": [
  98.             "#ff0000",
  99.             "#e6e600",
  100.             "#00ff01"
  101.         ],
  102.         "seg1": "",
  103.         "seg2": "",
  104.         "x": 930,
  105.         "y": 320,
  106.         "wires": []
  107.     },
  108.     {
  109.         "id": "d40e1d835a269727",
  110.         "type": "ui_switch",
  111.         "z": "e01704e88daf9bd8",
  112.         "name": "",
  113.         "label": "Ein / Ausschalter",
  114.         "tooltip": "",
  115.         "group": "7b5e04a5.3567dc",
  116.         "order": 2,
  117.         "width": "0",
  118.         "height": "0",
  119.         "passthru": false,
  120.         "decouple": "true",
  121.         "topic": "/home/zigbee/Osram-Flur/set",
  122.         "topicType": "str",
  123.         "style": "",
  124.         "onvalue": "ON",
  125.         "onvalueType": "str",
  126.         "onicon": "",
  127.         "oncolor": "",
  128.         "offvalue": "OFF",
  129.         "offvalueType": "str",
  130.         "officon": "",
  131.         "offcolor": "",
  132.         "animate": false,
  133.         "x": 950,
  134.         "y": 260,
  135.         "wires": [
  136.             []
  137.         ]
  138.     },
  139.     {
  140.         "id": "42dbc9c5f44f5393",
  141.         "type": "ui_led",
  142.         "z": "e01704e88daf9bd8",
  143.         "group": "7b5e04a5.3567dc",
  144.         "order": 3,
  145.         "width": "0",
  146.         "height": "0",
  147.         "label": "Ein / Aus LED",
  148.         "labelPlacement": "left",
  149.         "labelAlignment": "left",
  150.         "colorForValue": [
  151.             {
  152.                 "color": "#ff0000",
  153.                 "value": "OFF",
  154.                 "valueType": "str"
  155.             },
  156.             {
  157.                 "color": "#008000",
  158.                 "value": "ON",
  159.                 "valueType": "str"
  160.             }
  161.         ],
  162.         "allowColorForValueInMessage": false,
  163.         "name": "",
  164.         "x": 910,
  165.         "y": 220,
  166.         "wires": []
  167.     },
  168.     {
  169.         "id": "7f49a0b6c97c766f",
  170.         "type": "range",
  171.         "z": "e01704e88daf9bd8",
  172.         "minin": "1",
  173.         "maxin": "255",
  174.         "minout": "1",
  175.         "maxout": "100",
  176.         "action": "scale",
  177.         "round": true,
  178.         "property": "payload",
  179.         "name": "",
  180.         "x": 820,
  181.         "y": 180,
  182.         "wires": [
  183.             [
  184.                 "62845e72d7d8ed95"
  185.             ]
  186.         ]
  187.     },
  188.     {
  189.         "id": "62845e72d7d8ed95",
  190.         "type": "ui_slider",
  191.         "z": "e01704e88daf9bd8",
  192.         "name": "Helligkeit",
  193.         "label": "Helligkeit",
  194.         "tooltip": "",
  195.         "group": "7b5e04a5.3567dc",
  196.         "order": 1,
  197.         "width": 0,
  198.         "height": 0,
  199.         "passthru": false,
  200.         "outs": "end",
  201.         "topic": "/home/zigbee/Osram-Flur/set",
  202.         "topicType": "str",
  203.         "min": "1",
  204.         "max": "100",
  205.         "step": "2",
  206.         "x": 900,
  207.         "y": 100,
  208.         "wires": [
  209.             [
  210.                 "3fa4afb2d2449d62"
  211.             ]
  212.         ]
  213.     },
  214.     {
  215.         "id": "3fa4afb2d2449d62",
  216.         "type": "range",
  217.         "z": "e01704e88daf9bd8",
  218.         "minin": "1",
  219.         "maxin": "100",
  220.         "minout": "1",
  221.         "maxout": "255",
  222.         "action": "scale",
  223.         "round": true,
  224.         "property": "payload",
  225.         "name": "",
  226.         "x": 1000,
  227.         "y": 180,
  228.         "wires": [
  229.             []
  230.         ]
  231.     },
  232.     {
  233.         "id": "9d4f73b8.d5ee7",
  234.         "type": "mqtt-broker",
  235.         "name": "miti32",
  236.         "broker": "192.168.126.40",
  237.         "port": "1883",
  238.         "clientid": "",
  239.         "usetls": false,
  240.         "protocolVersion": "4",
  241.         "keepalive": "60",
  242.         "cleansession": true,
  243.         "birthTopic": "",
  244.         "birthQos": "0",
  245.         "birthPayload": "",
  246.         "birthMsg": {},
  247.         "closeTopic": "",
  248.         "closeQos": "0",
  249.         "closePayload": "",
  250.         "closeMsg": {},
  251.         "willTopic": "",
  252.         "willQos": "0",
  253.         "willPayload": "",
  254.         "willMsg": {},
  255.         "sessionExpiry": ""
  256.     },
  257.     {
  258.         "id": "7b5e04a5.3567dc",
  259.         "type": "ui_group",
  260.         "name": "Osram-Flur",
  261.         "tab": "67152ec1.2f63e",
  262.         "order": 2,
  263.         "disp": true,
  264.         "width": "5",
  265.         "collapse": false
  266.     },
  267.     {
  268.         "id": "67152ec1.2f63e",
  269.         "type": "ui_tab",
  270.         "name": "Licht",
  271.         "icon": "dashboard",
  272.         "order": 4,
  273.         "disabled": false,
  274.         "hidden": false
  275.     }
  276. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement