Advertisement
NittyGritty

Blitzwolf-Plug

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