Advertisement
NittyGritty

Alexander

May 18th, 2022
905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "929706ca892aef24",
  4.         "type": "function",
  5.         "z": "4058904c.658ad",
  6.         "name": "",
  7.         "func": "// {\"current\":0,\"energy\":0.13,\"linkquality\":76,\"power\":0,\"state\":\"OFF\",\"voltage\":227}\nvar words = msg.topic.split('/');\nvar KnotenName = (words[3]);\nvar CurHeating = msg.payload.current_heating_setpoint; \nvar deadZonetemp = msg.payload.deadzone_temperature; \nvar heat = msg.payload.heat; \nvar Qual = msg.payload.linkquality;\nvar localTemp = msg.payload.local_temperature;\nvar preset = msg.payload.preset;\nvar presetmode = msg.payload.preset_mode;\nvar status = msg.payload.running_state;\nvar sensor = msg.payload.sensor;\nvar system_mode = msg.payload.system_mode;\n\nnode.status({fill:\"blue\",shape:\"ring\",text:KnotenName + \" \" +\n                    \"act.Temp: \" + localTemp + \"°C, \" +\n                    \" heat.Temp: \" + CurHeating + \"°C, \" +\n                    \" Qual: \" + Qual + \"%\" +\n                    \" Status: \" + status \n            });\n\n\nvar newMsg  = {payload:CurHeating };\nvar newMsg1 = {payload:deadZonetemp};\nvar newMsg2 = {payload:heat};\nvar newMsg3 = {payload:localTemp};\n// var newMsg4 = {payload:State};\nvar newMsg4 = {payload:status};\nvar newMsg5 = {payload:Qual};\nvar newMsg6  = {payload:preset };\nvar newMsg7 = {payload:presetmode};\nvar newMsg8 = {payload:sensor};\nvar newMsg9 = {payload:system_mode};\n\n// var newMsg = {payload: (msg.payload.charAt(0).toUpperCase() + msg.payload.slice(1)) };\n\nvar newMsg10a = [{\n    Room: KnotenName,\n    CurrentHeating: CurHeating,\n    Heat: heat,\n    localTemp: localTemp\n}]\n\n//msg.selectedItem = msg.payload[msg.count].data3\n\nvar newMsg10 = {payload:newMsg10a};\n\nreturn [newMsg, newMsg1, newMsg2, newMsg3, newMsg4 , newMsg5, newMsg6, newMsg7, newMsg8, newMsg9, newMsg10];\n\n",
  8.         "outputs": 10,
  9.         "noerr": 0,
  10.         "initialize": "",
  11.         "finalize": "",
  12.         "libs": [],
  13.         "x": 680,
  14.         "y": 920,
  15.         "wires": [
  16.             [
  17.                 "5b539ab9ee5bf9e9"
  18.             ],
  19.             [
  20.                 "4c34e3d9ac7040e5"
  21.             ],
  22.             [],
  23.             [
  24.                 "8f3dec36c0c4d5f3",
  25.                 "031de4773d41cb84"
  26.             ],
  27.             [],
  28.             [],
  29.             [],
  30.             [
  31.                 "311ed2f7bd219e26"
  32.             ],
  33.             [],
  34.             []
  35.         ]
  36.     },
  37.     {
  38.         "id": "82d79d92cdfd1880",
  39.         "type": "inject",
  40.         "z": "4058904c.658ad",
  41.         "name": "",
  42.         "props": [
  43.             {
  44.                 "p": "payload"
  45.             },
  46.             {
  47.                 "p": "topic",
  48.                 "vt": "str"
  49.             }
  50.         ],
  51.         "repeat": "",
  52.         "crontab": "",
  53.         "once": false,
  54.         "onceDelay": 0.1,
  55.         "topic": "/home/zigbee/0x8cf681fffe5672ac",
  56.         "payload": "{\"child_lock\":\"UNLOCK\",\"current_heating_setpoint\":18,\"deadzone_temperature\":1,\"heat\":\"OFF\",\"linkquality\":49,\"local_temperature\":29.5,\"local_temperature_calibration\":-1,\"max_temperature\":35,\"max_temperature_limit\":45,\"preset\":\"hold\",\"preset_mode\":\"hold\",\"program\":[{\"weekdays_p1\":\"6h:0m 20°C\"},{\"weekdays_p2\":\"11h:30m 21°C\"},{\"weekdays_p3\":\"13h:30m 22°C\"},{\"weekdays_p4\":\"17h:30m 23°C\"},{\"saturday_p1\":\"6h:0m 24°C\"},{\"saturday_p2\":\"12h:0m 23°C\"},{\"saturday_p3\":\"14h:30m 22°C\"},{\"saturday_p4\":\"17h:30m 21°C\"},{\"sunday_p1\":\"6h:0m 19°C\"},{\"sunday_p2\":\"12h:30m 20°C\"},{\"sunday_p3\":\"14h:30m 21°C\"},{\"sunday_p4\":\"18h:30m 20°C\"}],\"running_state\":\"idle\",\"sensor\":\"AL\",\"system_mode\":\"off\"}",
  57.         "payloadType": "str",
  58.         "x": 150,
  59.         "y": 920,
  60.         "wires": [
  61.             [
  62.                 "486d1d65f11166cb",
  63.                 "6755404373193ed7"
  64.             ]
  65.         ]
  66.     },
  67.     {
  68.         "id": "486d1d65f11166cb",
  69.         "type": "json",
  70.         "z": "4058904c.658ad",
  71.         "name": "",
  72.         "property": "payload",
  73.         "action": "",
  74.         "pretty": false,
  75.         "x": 370,
  76.         "y": 920,
  77.         "wires": [
  78.             [
  79.                 "929706ca892aef24"
  80.             ]
  81.         ]
  82.     },
  83.     {
  84.         "id": "6755404373193ed7",
  85.         "type": "debug",
  86.         "z": "4058904c.658ad",
  87.         "name": "",
  88.         "active": true,
  89.         "tosidebar": true,
  90.         "console": false,
  91.         "tostatus": false,
  92.         "complete": "false",
  93.         "statusVal": "",
  94.         "statusType": "auto",
  95.         "x": 390,
  96.         "y": 860,
  97.         "wires": []
  98.     },
  99.     {
  100.         "id": "5b539ab9ee5bf9e9",
  101.         "type": "debug",
  102.         "z": "4058904c.658ad",
  103.         "name": "",
  104.         "active": true,
  105.         "tosidebar": false,
  106.         "console": false,
  107.         "tostatus": true,
  108.         "complete": "payload",
  109.         "targetType": "msg",
  110.         "statusVal": "payload",
  111.         "statusType": "auto",
  112.         "x": 930,
  113.         "y": 780,
  114.         "wires": []
  115.     },
  116.     {
  117.         "id": "4c34e3d9ac7040e5",
  118.         "type": "ui_slider",
  119.         "z": "4058904c.658ad",
  120.         "name": "",
  121.         "label": "slider",
  122.         "tooltip": "",
  123.         "group": "c87dfb7d08d736ef",
  124.         "order": 6,
  125.         "width": 0,
  126.         "height": 0,
  127.         "passthru": true,
  128.         "outs": "all",
  129.         "topic": "topic",
  130.         "topicType": "msg",
  131.         "min": 0,
  132.         "max": 10,
  133.         "step": 1,
  134.         "className": "",
  135.         "x": 910,
  136.         "y": 840,
  137.         "wires": [
  138.             []
  139.         ]
  140.     },
  141.     {
  142.         "id": "8f3dec36c0c4d5f3",
  143.         "type": "ui_gauge",
  144.         "z": "4058904c.658ad",
  145.         "name": "",
  146.         "group": "c87dfb7d08d736ef",
  147.         "order": 1,
  148.         "width": 0,
  149.         "height": 0,
  150.         "gtype": "gage",
  151.         "title": "gauge",
  152.         "label": "units",
  153.         "format": "{{value}}",
  154.         "min": "10",
  155.         "max": "30",
  156.         "colors": [
  157.             "#00b500",
  158.             "#e6e600",
  159.             "#ca3838"
  160.         ],
  161.         "seg1": "",
  162.         "seg2": "",
  163.         "className": "",
  164.         "x": 910,
  165.         "y": 900,
  166.         "wires": []
  167.     },
  168.     {
  169.         "id": "031de4773d41cb84",
  170.         "type": "ui_chart",
  171.         "z": "4058904c.658ad",
  172.         "name": "",
  173.         "group": "c87dfb7d08d736ef",
  174.         "order": 2,
  175.         "width": 0,
  176.         "height": 0,
  177.         "label": "chart",
  178.         "chartType": "line",
  179.         "legend": "false",
  180.         "xformat": "HH:mm:ss",
  181.         "interpolate": "linear",
  182.         "nodata": "",
  183.         "dot": false,
  184.         "ymin": "10",
  185.         "ymax": "30",
  186.         "removeOlder": 1,
  187.         "removeOlderPoints": "",
  188.         "removeOlderUnit": "3600",
  189.         "cutout": 0,
  190.         "useOneColor": false,
  191.         "useUTC": false,
  192.         "colors": [
  193.             "#1f77b4",
  194.             "#aec7e8",
  195.             "#ff7f0e",
  196.             "#2ca02c",
  197.             "#98df8a",
  198.             "#d62728",
  199.             "#ff9896",
  200.             "#9467bd",
  201.             "#c5b0d5"
  202.         ],
  203.         "outputs": 1,
  204.         "useDifferentColor": false,
  205.         "className": "",
  206.         "x": 910,
  207.         "y": 940,
  208.         "wires": [
  209.             []
  210.         ]
  211.     },
  212.     {
  213.         "id": "311ed2f7bd219e26",
  214.         "type": "ui_led",
  215.         "z": "4058904c.658ad",
  216.         "order": 3,
  217.         "group": "c87dfb7d08d736ef",
  218.         "width": 0,
  219.         "height": 0,
  220.         "label": "",
  221.         "labelPlacement": "left",
  222.         "labelAlignment": "left",
  223.         "colorForValue": [
  224.             {
  225.                 "color": "#ff0000",
  226.                 "value": "hold",
  227.                 "valueType": "str"
  228.             },
  229.             {
  230.                 "color": "#008000",
  231.                 "value": "run",
  232.                 "valueType": "str"
  233.             }
  234.         ],
  235.         "allowColorForValueInMessage": false,
  236.         "shape": "circle",
  237.         "showGlow": true,
  238.         "name": "",
  239.         "x": 910,
  240.         "y": 980,
  241.         "wires": []
  242.     },
  243.     {
  244.         "id": "c87dfb7d08d736ef",
  245.         "type": "ui_group",
  246.         "name": "Ventil-1",
  247.         "tab": "78c973fac39a6784",
  248.         "order": 1,
  249.         "disp": true,
  250.         "width": "6",
  251.         "collapse": false,
  252.         "className": ""
  253.     },
  254.     {
  255.         "id": "78c973fac39a6784",
  256.         "type": "ui_tab",
  257.         "name": "Alexander",
  258.         "icon": "dashboard",
  259.         "order": 15,
  260.         "disabled": false,
  261.         "hidden": false
  262.     }
  263. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement