[ { "id": "25b2b830.559948", "type": "ui_gauge", "z": "dce13d.371c3ec", "name": "", "group": "ba196e43.b35398", "order": 2, "width": 0, "height": 0, "gtype": "donut", "title": "Load", "label": "W", "format": "{{value}}", "min": 0, "max": "500", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "className": "", "x": 770, "y": 360, "wires": [] }, { "id": "c7e38de1.fcb0a", "type": "ui_chart", "z": "dce13d.371c3ec", "name": "Verbrauch / Zeit", "group": "ba196e43.b35398", "order": 3, "width": 4, "height": 4, "label": "Verbrauch / Zeit", "chartType": "line", "legend": "false", "xformat": "dd HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "0", "ymax": "240", "removeOlder": "12", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 800, "y": 400, "wires": [ [] ] }, { "id": "4f556552.92598c", "type": "ui_gauge", "z": "dce13d.371c3ec", "name": "kumulierter Verbrauch", "group": "ba196e43.b35398", "order": 4, "width": 0, "height": 0, "gtype": "wave", "title": "", "label": "kWh", "format": "{{value}}", "min": "0", "max": "2000", "colors": [ "#b50000", "#e6e600", "#00b500" ], "seg1": "", "seg2": "", "className": "", "x": 820, "y": 320, "wires": [] }, { "id": "66bcfa74.bd3944", "type": "ui_gauge", "z": "dce13d.371c3ec", "name": "Netzspannung", "group": "4e74439e.ee7e74", "order": 3, "width": 0, "height": 0, "gtype": "gage", "title": "Netzspannung", "label": "V AC", "format": "{{value}}", "min": "200", "max": "240", "colors": [ "#803e00", "#01f912", "#ca3838" ], "seg1": "", "seg2": "", "x": 800, "y": 200, "wires": [] }, { "id": "ed202b2d.edde88", "type": "ui_gauge", "z": "dce13d.371c3ec", "name": "Link Quality", "group": "4e74439e.ee7e74", "order": 5, "width": 4, "height": 3, "gtype": "gage", "title": "Link Quality", "label": "%", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#e6e600", "#00ff01" ], "seg1": "", "seg2": "", "className": "", "x": 790, "y": 540, "wires": [] }, { "id": "1d44e223.d94a1e", "type": "ui_chart", "z": "dce13d.371c3ec", "name": "Netzspannung / Zeit", "group": "4e74439e.ee7e74", "order": 4, "width": 4, "height": 3, "label": "Netzspannung / Zeit", "chartType": "line", "legend": "false", "xformat": "dd HH:mm", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "200", "ymax": "240", "removeOlder": "12", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#f90101", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "className": "", "x": 820, "y": 240, "wires": [ [] ] }, { "id": "576b6d94.eae1b4", "type": "function", "z": "dce13d.371c3ec", "name": "", "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];", "outputs": 7, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 480, "y": 560, "wires": [ [ "66bcfa74.bd3944", "1d44e223.d94a1e" ], [ "85b4edfd.22121" ], [ "4f556552.92598c" ], [ "25b2b830.559948", "c7e38de1.fcb0a" ], [ "da6e3848.cacb38", "5e545053.ea4bd" ], [ "ed202b2d.edde88" ], [ "6e206e60.d002e" ] ] }, { "id": "d343a9c3.9d2b38", "type": "inject", "z": "dce13d.371c3ec", "name": "ON", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"state\": \"ON\"}", "payloadType": "str", "x": 250, "y": 160, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "74136876.7dee48", "type": "inject", "z": "dce13d.371c3ec", "name": "OFF", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"state\": \"OFF\"}", "payloadType": "str", "x": 250, "y": 200, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "8dba8856.467a18", "type": "mqtt out", "z": "dce13d.371c3ec", "name": "/home/zigbee/Blitzwolf-Plug-01", "topic": "", "qos": "0", "retain": "true", "broker": "595dfa51.2c1224", "x": 1110, "y": 80, "wires": [] }, { "id": "a21ba2b7.c2612", "type": "inject", "z": "dce13d.371c3ec", "name": "Status", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "/home/zigbee/Blitzwolf-Plug-01/get", "payload": "{\"state\": \"\"}", "payloadType": "str", "x": 250, "y": 80, "wires": [ [ "8dba8856.467a18" ] ] }, { "id": "5e545053.ea4bd", "type": "ui_switch", "z": "dce13d.371c3ec", "name": "", "label": "Ein / Ausschalter", "tooltip": "", "group": "4e74439e.ee7e74", "order": 1, "width": 0, "height": 0, "passthru": false, "decouple": "true", "topic": "", "topicType": "str", "style": "", "onvalue": "ON", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "OFF", "offvalueType": "str", "officon": "", "offcolor": "", "animate": false, "className": "", "x": 810, "y": 480, "wires": [ [ "cbc3afe791f71053" ] ] }, { "id": "da6e3848.cacb38", "type": "ui_led", "z": "dce13d.371c3ec", "order": 2, "group": "4e74439e.ee7e74", "width": 0, "height": 0, "label": "Ein / Aus LED", "labelPlacement": "left", "labelAlignment": "left", "colorForValue": [ { "color": "#ff0000", "value": "OFF", "valueType": "str" }, { "color": "#008000", "value": "ON", "valueType": "str" } ], "allowColorForValueInMessage": false, "shape": "circle", "showGlow": true, "name": "", "x": 770, "y": 440, "wires": [] }, { "id": "85b4edfd.22121", "type": "ui_text", "z": "dce13d.371c3ec", "group": "ba196e43.b35398", "order": 1, "width": 0, "height": 0, "name": "Strom", "label": "Strom (A)", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 770, "y": 280, "wires": [] }, { "id": "38365011.eef45", "type": "comment", "z": "dce13d.371c3ec", "name": "Blitzwolf-Plug01", "info": "", "x": 100, "y": 20, "wires": [] }, { "id": "6d19d68.ade5528", "type": "mqtt in", "z": "dce13d.371c3ec", "name": "", "topic": "/home/zigbee/Blitzwolf-Plug-01", "qos": "2", "datatype": "auto-detect", "broker": "595dfa51.2c1224", "nl": false, "rap": false, "inputs": 0, "x": 190, "y": 560, "wires": [ [ "576b6d94.eae1b4" ] ] }, { "id": "6e206e60.d002e", "type": "link out", "z": "dce13d.371c3ec", "name": "", "links": [ "22f2e00e.74f9a" ], "x": 735, "y": 600, "wires": [] }, { "id": "2bf21ceaf44e1223", "type": "inject", "z": "dce13d.371c3ec", "name": "Power Outage Memory ON", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"power_outage_memory\": \"ON\"}", "payloadType": "str", "x": 190, "y": 260, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "04d0e78e47c429c8", "type": "inject", "z": "dce13d.371c3ec", "name": "Power Outage Memory OFF", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"power_outage_memory\": \"OFF\"}", "payloadType": "str", "x": 180, "y": 300, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "467315cab05ea6e7", "type": "inject", "z": "dce13d.371c3ec", "name": "Power Outage Memory Restore", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"power_outage_memory\": \"Restore\"}", "payloadType": "str", "x": 170, "y": 340, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "e8062fe13691430a", "type": "comment", "z": "dce13d.371c3ec", "name": "Blitzwolf-Plug-02", "info": "", "x": 100, "y": 680, "wires": [] }, { "id": "9f839869eda2d09a", "type": "function", "z": "dce13d.371c3ec", "name": "/home/zigbee/Blitzwolf-Plug-01/set", "func": "msg.topic = \"/home/zigbee/Blitzwolf-Plug-01/set\";\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 560, "y": 160, "wires": [ [ "8dba8856.467a18" ] ] }, { "id": "cbc3afe791f71053", "type": "link out", "z": "dce13d.371c3ec", "name": "link out 20", "mode": "link", "links": [ "573415a7815848ba", "6186ee08e7b0722f" ], "x": 955, "y": 480, "wires": [] }, { "id": "573415a7815848ba", "type": "link in", "z": "dce13d.371c3ec", "name": "link in 13", "links": [ "cbc3afe791f71053", "7771269a92723385" ], "x": 285, "y": 380, "wires": [ [ "9f839869eda2d09a" ] ] }, { "id": "ba196e43.b35398", "type": "ui_group", "name": "Verbrauch", "tab": "61ec3881.53526", "order": 2, "disp": true, "width": "4", "collapse": false, "className": "" }, { "id": "4e74439e.ee7e74", "type": "ui_group", "name": "Spannung", "tab": "61ec3881.53526", "order": 1, "disp": true, "width": "4", "collapse": false, "className": "" }, { "id": "595dfa51.2c1224", "type": "mqtt-broker", "name": "Kossdorf", "broker": "192.168.123.16", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "61ec3881.53526", "type": "ui_tab", "name": "Blitzwolf / Tuya Plugs", "icon": "dashboard", "order": 7, "disabled": false, "hidden": false } ]