Advertisement
NittyGritty

Blitzwolf Plug

Mar 6th, 2022
1,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.92 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "25b2b830.559948",
  4.         "type": "ui_gauge",
  5.         "z": "dce13d.371c3ec",
  6.         "name": "",
  7.         "group": "ba196e43.b35398",
  8.         "order": 1,
  9.         "width": 0,
  10.         "height": 0,
  11.         "gtype": "donut",
  12.         "title": "Load",
  13.         "label": "W",
  14.         "format": "{{value}}",
  15.         "min": 0,
  16.         "max": "1000",
  17.         "colors": [
  18.             "#00b500",
  19.             "#e6e600",
  20.             "#ca3838"
  21.         ],
  22.         "seg1": "",
  23.         "seg2": "",
  24.         "x": 770,
  25.         "y": 360,
  26.         "wires": []
  27.     },
  28.     {
  29.         "id": "c7e38de1.fcb0a",
  30.         "type": "ui_chart",
  31.         "z": "dce13d.371c3ec",
  32.         "name": "Verbrauch / Zeit",
  33.         "group": "ba196e43.b35398",
  34.         "order": 2,
  35.         "width": 0,
  36.         "height": 0,
  37.         "label": "Verbrauch / Zeit",
  38.         "chartType": "line",
  39.         "legend": "false",
  40.         "xformat": "dd HH:mm",
  41.         "interpolate": "linear",
  42.         "nodata": "",
  43.         "dot": false,
  44.         "ymin": "0",
  45.         "ymax": "240",
  46.         "removeOlder": "12",
  47.         "removeOlderPoints": "",
  48.         "removeOlderUnit": "3600",
  49.         "cutout": 0,
  50.         "useOneColor": false,
  51.         "useUTC": false,
  52.         "colors": [
  53.             "#1f77b4",
  54.             "#aec7e8",
  55.             "#ff7f0e",
  56.             "#2ca02c",
  57.             "#98df8a",
  58.             "#d62728",
  59.             "#ff9896",
  60.             "#9467bd",
  61.             "#c5b0d5"
  62.         ],
  63.         "outputs": 1,
  64.         "useDifferentColor": false,
  65.         "x": 800,
  66.         "y": 400,
  67.         "wires": [
  68.             []
  69.         ]
  70.     },
  71.     {
  72.         "id": "4f556552.92598c",
  73.         "type": "ui_gauge",
  74.         "z": "dce13d.371c3ec",
  75.         "name": "",
  76.         "group": "421e19.192041e8",
  77.         "order": 1,
  78.         "width": 0,
  79.         "height": 0,
  80.         "gtype": "wave",
  81.         "title": "",
  82.         "label": "kWh",
  83.         "format": "{{value}}",
  84.         "min": "0",
  85.         "max": "1000",
  86.         "colors": [
  87.             "#b50000",
  88.             "#e6e600",
  89.             "#00b500"
  90.         ],
  91.         "seg1": "",
  92.         "seg2": "",
  93.         "x": 770,
  94.         "y": 320,
  95.         "wires": []
  96.     },
  97.     {
  98.         "id": "66bcfa74.bd3944",
  99.         "type": "ui_gauge",
  100.         "z": "dce13d.371c3ec",
  101.         "name": "Netzspannung",
  102.         "group": "4e74439e.ee7e74",
  103.         "order": 4,
  104.         "width": 0,
  105.         "height": 0,
  106.         "gtype": "gage",
  107.         "title": "Netzspannung",
  108.         "label": "V AC",
  109.         "format": "{{value}}",
  110.         "min": "200",
  111.         "max": "240",
  112.         "colors": [
  113.             "#803e00",
  114.             "#01f912",
  115.             "#ca3838"
  116.         ],
  117.         "seg1": "",
  118.         "seg2": "",
  119.         "x": 800,
  120.         "y": 200,
  121.         "wires": []
  122.     },
  123.     {
  124.         "id": "ed202b2d.edde88",
  125.         "type": "ui_gauge",
  126.         "z": "dce13d.371c3ec",
  127.         "name": "Link Quality",
  128.         "group": "421e19.192041e8",
  129.         "order": 2,
  130.         "width": 0,
  131.         "height": 0,
  132.         "gtype": "gage",
  133.         "title": "Link Quality",
  134.         "label": "%",
  135.         "format": "{{value}}",
  136.         "min": 0,
  137.         "max": "100",
  138.         "colors": [
  139.             "#ff0000",
  140.             "#e6e600",
  141.             "#00ff01"
  142.         ],
  143.         "seg1": "",
  144.         "seg2": "",
  145.         "x": 790,
  146.         "y": 540,
  147.         "wires": []
  148.     },
  149.     {
  150.         "id": "1d44e223.d94a1e",
  151.         "type": "ui_chart",
  152.         "z": "dce13d.371c3ec",
  153.         "name": "Netzspannung / Zeit",
  154.         "group": "4e74439e.ee7e74",
  155.         "order": 5,
  156.         "width": 0,
  157.         "height": 0,
  158.         "label": "Netzspannung / Zeit",
  159.         "chartType": "line",
  160.         "legend": "false",
  161.         "xformat": "dd HH:mm",
  162.         "interpolate": "linear",
  163.         "nodata": "",
  164.         "dot": false,
  165.         "ymin": "200",
  166.         "ymax": "240",
  167.         "removeOlder": "12",
  168.         "removeOlderPoints": "",
  169.         "removeOlderUnit": "3600",
  170.         "cutout": 0,
  171.         "useOneColor": false,
  172.         "useUTC": false,
  173.         "colors": [
  174.             "#1f77b4",
  175.             "#aec7e8",
  176.             "#ff7f0e",
  177.             "#2ca02c",
  178.             "#98df8a",
  179.             "#f90101",
  180.             "#ff9896",
  181.             "#9467bd",
  182.             "#c5b0d5"
  183.         ],
  184.         "outputs": 1,
  185.         "useDifferentColor": false,
  186.         "x": 820,
  187.         "y": 240,
  188.         "wires": [
  189.             []
  190.         ]
  191.     },
  192.     {
  193.         "id": "576b6d94.eae1b4",
  194.         "type": "function",
  195.         "z": "dce13d.371c3ec",
  196.         "name": "",
  197.         "func": "// {\"current\":0,\"energy\":0.13,\"linkquality\":76,\"power\":0,\"state\":\"OFF\",\"voltage\":227}\nvar KnotenName = \"Blitzwolf-Plug01\";\n// var Position = JSON.parse(msg.payload.position);\nvar Voltage1 = msg.payload.voltage; \nvar Current1 = msg.payload.current; \nvar Energy1 = msg.payload.energy; \nvar Qual = msg.payload.linkquality;\nvar Power = msg.payload.power;\nvar State = msg.payload.state;\n\nnode.status({fill:\"blue\",shape:\"ring\",text:KnotenName + \" \" +\n                    \"Current: \" + Current1 + \"A, \" +\n                    \" Energy: \" + Energy1 + \"W, \" +\n                    \" Voltage: \" + Voltage1 + \"V\" +\n                    \" Power: \" + Power + \"W\" +\n                    \" Qual: \" + Qual + \"%\" +\n                    \" State: \" + State \n            });\n\n\nvar newMsg  = {payload:Voltage1 };\nvar newMsg1 = {payload:Current1};\nvar newMsg2 = {payload:Energy1};\nvar newMsg3 = {payload:Power};\nvar newMsg4 = {payload:State};\nvar newMsg5 = {payload:Qual};\n\n// var newMsg = {payload: (msg.payload.charAt(0).toUpperCase() + msg.payload.slice(1)) };\n\nvar newMsg6a = [{\n    Room: KnotenName,\n    Current: Power,\n    Voltage: Voltage1,\n    Energy: Energy1\n}]\n\n//msg.selectedItem = msg.payload[msg.count].data3\n\nvar newMsg6 = {payload:newMsg6a};\n\nreturn [newMsg, newMsg1, newMsg2, newMsg3, newMsg4 , newMsg5, newMsg6 ];",
  198.         "outputs": 7,
  199.         "noerr": 0,
  200.         "initialize": "",
  201.         "finalize": "",
  202.         "x": 480,
  203.         "y": 560,
  204.         "wires": [
  205.             [
  206.                 "66bcfa74.bd3944",
  207.                 "1d44e223.d94a1e"
  208.             ],
  209.             [
  210.                 "85b4edfd.22121"
  211.             ],
  212.             [
  213.                 "4f556552.92598c"
  214.             ],
  215.             [
  216.                 "25b2b830.559948",
  217.                 "c7e38de1.fcb0a"
  218.             ],
  219.             [
  220.                 "da6e3848.cacb38",
  221.                 "5e545053.ea4bd"
  222.             ],
  223.             [
  224.                 "ed202b2d.edde88"
  225.             ],
  226.             [
  227.                 "6e206e60.d002e"
  228.             ]
  229.         ]
  230.     },
  231.     {
  232.         "id": "d343a9c3.9d2b38",
  233.         "type": "inject",
  234.         "z": "dce13d.371c3ec",
  235.         "name": "Blitzwolf-01 ON",
  236.         "props": [
  237.             {
  238.                 "p": "payload"
  239.             },
  240.             {
  241.                 "p": "topic",
  242.                 "vt": "str"
  243.             }
  244.         ],
  245.         "repeat": "",
  246.         "crontab": "",
  247.         "once": false,
  248.         "onceDelay": 0.1,
  249.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  250.         "payload": "{\"state\": \"ON\"}",
  251.         "payloadType": "str",
  252.         "x": 140,
  253.         "y": 120,
  254.         "wires": [
  255.             [
  256.                 "8dba8856.467a18"
  257.             ]
  258.         ]
  259.     },
  260.     {
  261.         "id": "74136876.7dee48",
  262.         "type": "inject",
  263.         "z": "dce13d.371c3ec",
  264.         "name": "Blitzwolf-01 OFF",
  265.         "props": [
  266.             {
  267.                 "p": "payload"
  268.             },
  269.             {
  270.                 "p": "topic",
  271.                 "vt": "str"
  272.             }
  273.         ],
  274.         "repeat": "",
  275.         "crontab": "",
  276.         "once": false,
  277.         "onceDelay": 0.1,
  278.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  279.         "payload": "{\"state\": \"OFF\"}",
  280.         "payloadType": "str",
  281.         "x": 140,
  282.         "y": 160,
  283.         "wires": [
  284.             [
  285.                 "8dba8856.467a18"
  286.             ]
  287.         ]
  288.     },
  289.     {
  290.         "id": "8dba8856.467a18",
  291.         "type": "mqtt out",
  292.         "z": "dce13d.371c3ec",
  293.         "name": "/home/zigbee/Blitzwolf-Plug-01",
  294.         "topic": "",
  295.         "qos": "0",
  296.         "retain": "true",
  297.         "broker": "595dfa51.2c1224",
  298.         "x": 1110,
  299.         "y": 80,
  300.         "wires": []
  301.     },
  302.     {
  303.         "id": "a21ba2b7.c2612",
  304.         "type": "inject",
  305.         "z": "dce13d.371c3ec",
  306.         "name": "Blitzwolf-01 Status",
  307.         "props": [
  308.             {
  309.                 "p": "payload"
  310.             },
  311.             {
  312.                 "p": "topic",
  313.                 "vt": "str"
  314.             }
  315.         ],
  316.         "repeat": "",
  317.         "crontab": "",
  318.         "once": false,
  319.         "onceDelay": 0.1,
  320.         "topic": "/home/zigbee/Blitzwolf-Plug-01/get",
  321.         "payload": "{\"state\": \"\"}",
  322.         "payloadType": "str",
  323.         "x": 150,
  324.         "y": 80,
  325.         "wires": [
  326.             [
  327.                 "8dba8856.467a18"
  328.             ]
  329.         ]
  330.     },
  331.     {
  332.         "id": "5e545053.ea4bd",
  333.         "type": "ui_switch",
  334.         "z": "dce13d.371c3ec",
  335.         "name": "",
  336.         "label": "Ein / Ausschalter",
  337.         "tooltip": "",
  338.         "group": "4e74439e.ee7e74",
  339.         "order": 1,
  340.         "width": 0,
  341.         "height": 0,
  342.         "passthru": false,
  343.         "decouple": "true",
  344.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  345.         "topicType": "str",
  346.         "style": "",
  347.         "onvalue": "ON",
  348.         "onvalueType": "str",
  349.         "onicon": "",
  350.         "oncolor": "",
  351.         "offvalue": "OFF",
  352.         "offvalueType": "str",
  353.         "officon": "",
  354.         "offcolor": "",
  355.         "animate": false,
  356.         "x": 810,
  357.         "y": 480,
  358.         "wires": [
  359.             [
  360.                 "8dba8856.467a18"
  361.             ]
  362.         ]
  363.     },
  364.     {
  365.         "id": "da6e3848.cacb38",
  366.         "type": "ui_led",
  367.         "z": "dce13d.371c3ec",
  368.         "order": 2,
  369.         "group": "4e74439e.ee7e74",
  370.         "width": 0,
  371.         "height": 0,
  372.         "label": "Ein / Aus LED",
  373.         "labelPlacement": "left",
  374.         "labelAlignment": "left",
  375.         "colorForValue": [
  376.             {
  377.                 "color": "#ff0000",
  378.                 "value": "OFF",
  379.                 "valueType": "str"
  380.             },
  381.             {
  382.                 "color": "#008000",
  383.                 "value": "ON",
  384.                 "valueType": "str"
  385.             }
  386.         ],
  387.         "allowColorForValueInMessage": false,
  388.         "shape": "circle",
  389.         "showGlow": true,
  390.         "name": "",
  391.         "x": 770,
  392.         "y": 440,
  393.         "wires": []
  394.     },
  395.     {
  396.         "id": "85b4edfd.22121",
  397.         "type": "ui_text",
  398.         "z": "dce13d.371c3ec",
  399.         "group": "4e74439e.ee7e74",
  400.         "order": 3,
  401.         "width": 0,
  402.         "height": 0,
  403.         "name": "Strom",
  404.         "label": "A",
  405.         "format": "{{msg.payload}}",
  406.         "layout": "col-center",
  407.         "x": 770,
  408.         "y": 280,
  409.         "wires": []
  410.     },
  411.     {
  412.         "id": "38365011.eef45",
  413.         "type": "comment",
  414.         "z": "dce13d.371c3ec",
  415.         "name": "Blitzwolf-Plug01",
  416.         "info": "",
  417.         "x": 100,
  418.         "y": 20,
  419.         "wires": []
  420.     },
  421.     {
  422.         "id": "6d19d68.ade5528",
  423.         "type": "mqtt in",
  424.         "z": "dce13d.371c3ec",
  425.         "name": "",
  426.         "topic": "/home/zigbee/Blitzwolf-Plug-01",
  427.         "qos": "2",
  428.         "datatype": "auto",
  429.         "broker": "595dfa51.2c1224",
  430.         "inputs": 0,
  431.         "x": 170,
  432.         "y": 500,
  433.         "wires": [
  434.             [
  435.                 "2355b076.561e4"
  436.             ]
  437.         ]
  438.     },
  439.     {
  440.         "id": "6e206e60.d002e",
  441.         "type": "link out",
  442.         "z": "dce13d.371c3ec",
  443.         "name": "",
  444.         "links": [
  445.             "22f2e00e.74f9a"
  446.         ],
  447.         "x": 735,
  448.         "y": 600,
  449.         "wires": []
  450.     },
  451.     {
  452.         "id": "2355b076.561e4",
  453.         "type": "json",
  454.         "z": "dce13d.371c3ec",
  455.         "name": "",
  456.         "property": "payload",
  457.         "action": "",
  458.         "pretty": false,
  459.         "x": 310,
  460.         "y": 560,
  461.         "wires": [
  462.             [
  463.                 "576b6d94.eae1b4"
  464.             ]
  465.         ]
  466.     },
  467.     {
  468.         "id": "2bf21ceaf44e1223",
  469.         "type": "inject",
  470.         "z": "dce13d.371c3ec",
  471.         "name": "Blitzwolf-01 Power Outage Memory ON",
  472.         "props": [
  473.             {
  474.                 "p": "payload"
  475.             },
  476.             {
  477.                 "p": "topic",
  478.                 "vt": "str"
  479.             }
  480.         ],
  481.         "repeat": "",
  482.         "crontab": "",
  483.         "once": false,
  484.         "onceDelay": 0.1,
  485.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  486.         "payload": "{\"power_outage_memory\": \"ON\"}",
  487.         "payloadType": "str",
  488.         "x": 210,
  489.         "y": 220,
  490.         "wires": [
  491.             [
  492.                 "8dba8856.467a18"
  493.             ]
  494.         ]
  495.     },
  496.     {
  497.         "id": "04d0e78e47c429c8",
  498.         "type": "inject",
  499.         "z": "dce13d.371c3ec",
  500.         "name": "Blitzwolf-01 Power Outage Memory OFF",
  501.         "props": [
  502.             {
  503.                 "p": "payload"
  504.             },
  505.             {
  506.                 "p": "topic",
  507.                 "vt": "str"
  508.             }
  509.         ],
  510.         "repeat": "",
  511.         "crontab": "",
  512.         "once": false,
  513.         "onceDelay": 0.1,
  514.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  515.         "payload": "{\"power_outage_memory\": \"OFF\"}",
  516.         "payloadType": "str",
  517.         "x": 220,
  518.         "y": 260,
  519.         "wires": [
  520.             [
  521.                 "8dba8856.467a18"
  522.             ]
  523.         ]
  524.     },
  525.     {
  526.         "id": "467315cab05ea6e7",
  527.         "type": "inject",
  528.         "z": "dce13d.371c3ec",
  529.         "name": "Blitzwolf-01 Power Outage Memory Restore",
  530.         "props": [
  531.             {
  532.                 "p": "payload"
  533.             },
  534.             {
  535.                 "p": "topic",
  536.                 "vt": "str"
  537.             }
  538.         ],
  539.         "repeat": "",
  540.         "crontab": "",
  541.         "once": false,
  542.         "onceDelay": 0.1,
  543.         "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  544.         "payload": "{\"power_outage_memory\": \"Restore\"}",
  545.         "payloadType": "str",
  546.         "x": 230,
  547.         "y": 300,
  548.         "wires": [
  549.             [
  550.                 "8dba8856.467a18"
  551.             ]
  552.         ]
  553.     },
  554.     {
  555.         "id": "ba196e43.b35398",
  556.         "type": "ui_group",
  557.         "name": "momentaner Verbrauch (W)",
  558.         "tab": "61ec3881.53526",
  559.         "order": 2,
  560.         "disp": true,
  561.         "width": 6,
  562.         "collapse": false
  563.     },
  564.     {
  565.         "id": "421e19.192041e8",
  566.         "type": "ui_group",
  567.         "name": "Kumulierter Verbrauch",
  568.         "tab": "61ec3881.53526",
  569.         "order": 3,
  570.         "disp": true,
  571.         "width": 6,
  572.         "collapse": false
  573.     },
  574.     {
  575.         "id": "4e74439e.ee7e74",
  576.         "type": "ui_group",
  577.         "name": "Spannung / Strom",
  578.         "tab": "61ec3881.53526",
  579.         "order": 1,
  580.         "disp": true,
  581.         "width": "6",
  582.         "collapse": false
  583.     },
  584.     {
  585.         "id": "595dfa51.2c1224",
  586.         "type": "mqtt-broker",
  587.         "name": "Miti16",
  588.         "broker": "192.168.123.16",
  589.         "port": "1883",
  590.         "clientid": "",
  591.         "autoConnect": true,
  592.         "usetls": false,
  593.         "protocolVersion": "4",
  594.         "keepalive": "60",
  595.         "cleansession": true,
  596.         "birthTopic": "",
  597.         "birthQos": "0",
  598.         "birthPayload": "",
  599.         "birthMsg": {},
  600.         "closeTopic": "",
  601.         "closePayload": "",
  602.         "closeMsg": {},
  603.         "willTopic": "",
  604.         "willQos": "0",
  605.         "willPayload": "",
  606.         "willMsg": {},
  607.         "sessionExpiry": ""
  608.     },
  609.     {
  610.         "id": "61ec3881.53526",
  611.         "type": "ui_tab",
  612.         "name": "Blitzwolf Plug-01",
  613.         "icon": "dashboard",
  614.         "order": 3,
  615.         "disabled": false,
  616.         "hidden": false
  617.     }
  618. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement