Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "dce13d.371c3ec",
- "type": "tab",
- "label": "Blitzwolf Plug 01",
- "disabled": false,
- "info": ""
- },
- {
- "id": "25b2b830.559948",
- "type": "ui_gauge",
- "z": "dce13d.371c3ec",
- "name": "",
- "group": "ba196e43.b35398",
- "order": 1,
- "width": 0,
- "height": 0,
- "gtype": "donut",
- "title": "Load",
- "label": "W",
- "format": "{{value}}",
- "min": 0,
- "max": "1000",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "",
- "seg2": "",
- "x": 770,
- "y": 360,
- "wires": []
- },
- {
- "id": "c7e38de1.fcb0a",
- "type": "ui_chart",
- "z": "dce13d.371c3ec",
- "name": "Verbrauch / Zeit",
- "group": "ba196e43.b35398",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "Verbrauch / Zeit",
- "chartType": "line",
- "legend": "false",
- "xformat": "dd HH:mm",
- "interpolate": "linear",
- "nodata": "",
- "dot": false,
- "ymin": "0",
- "ymax": "1000",
- "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,
- "x": 800,
- "y": 400,
- "wires": [
- []
- ]
- },
- {
- "id": "4f556552.92598c",
- "type": "ui_gauge",
- "z": "dce13d.371c3ec",
- "name": "",
- "group": "421e19.192041e8",
- "order": 1,
- "width": 0,
- "height": 0,
- "gtype": "wave",
- "title": "",
- "label": "kWh",
- "format": "{{value}}",
- "min": "0",
- "max": "1000",
- "colors": [
- "#b50000",
- "#e6e600",
- "#00b500"
- ],
- "seg1": "",
- "seg2": "",
- "x": 770,
- "y": 320,
- "wires": []
- },
- {
- "id": "66bcfa74.bd3944",
- "type": "ui_gauge",
- "z": "dce13d.371c3ec",
- "name": "Netzspannung",
- "group": "4e74439e.ee7e74",
- "order": 4,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Netzspannung",
- "label": "V AC",
- "format": "{{value}}",
- "min": "190",
- "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": "74586b20.85c2f4",
- "order": 1,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "Link Quality",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "100",
- "colors": [
- "#ff0000",
- "#e6e600",
- "#00ff01"
- ],
- "seg1": "",
- "seg2": "",
- "x": 790,
- "y": 540,
- "wires": []
- },
- {
- "id": "1d44e223.d94a1e",
- "type": "ui_chart",
- "z": "dce13d.371c3ec",
- "name": "Netzspannung / Zeit",
- "group": "4e74439e.ee7e74",
- "order": 5,
- "width": 0,
- "height": 0,
- "label": "Netzspannung / Zeit",
- "chartType": "line",
- "legend": "false",
- "xformat": "dd HH:mm",
- "interpolate": "linear",
- "nodata": "",
- "dot": false,
- "ymin": "180",
- "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,
- "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 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 ];",
- "outputs": 7,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "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": "Blitzwolf-01 ON",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
- "payload": "{\"state\": \"ON\"}",
- "payloadType": "str",
- "x": 140,
- "y": 120,
- "wires": [
- [
- "8dba8856.467a18"
- ]
- ]
- },
- {
- "id": "74136876.7dee48",
- "type": "inject",
- "z": "dce13d.371c3ec",
- "name": "Blitzwolf-01 OFF",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
- "payload": "{\"state\": \"OFF\"}",
- "payloadType": "str",
- "x": 140,
- "y": 160,
- "wires": [
- [
- "8dba8856.467a18"
- ]
- ]
- },
- {
- "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": "Blitzwolf-01 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": 150,
- "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": 6,
- "height": 1,
- "passthru": false,
- "decouple": "true",
- "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
- "topicType": "str",
- "style": "",
- "onvalue": "ON",
- "onvalueType": "str",
- "onicon": "",
- "oncolor": "",
- "offvalue": "OFF",
- "offvalueType": "str",
- "officon": "",
- "offcolor": "",
- "animate": false,
- "x": 810,
- "y": 480,
- "wires": [
- [
- "8dba8856.467a18"
- ]
- ]
- },
- {
- "id": "da6e3848.cacb38",
- "type": "ui_led",
- "z": "dce13d.371c3ec",
- "order": 2,
- "group": "4e74439e.ee7e74",
- "width": 6,
- "height": 1,
- "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": "4e74439e.ee7e74",
- "order": 3,
- "width": 6,
- "height": 1,
- "name": "Strom",
- "label": "A",
- "format": "{{msg.payload}}",
- "layout": "col-center",
- "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",
- "broker": "595dfa51.2c1224",
- "x": 170,
- "y": 500,
- "wires": [
- [
- "2355b076.561e4"
- ]
- ]
- },
- {
- "id": "6e206e60.d002e",
- "type": "link out",
- "z": "dce13d.371c3ec",
- "name": "",
- "links": [
- "22f2e00e.74f9a"
- ],
- "x": 735,
- "y": 600,
- "wires": []
- },
- {
- "id": "2355b076.561e4",
- "type": "json",
- "z": "dce13d.371c3ec",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 310,
- "y": 560,
- "wires": [
- [
- "576b6d94.eae1b4"
- ]
- ]
- },
- {
- "id": "ba196e43.b35398",
- "type": "ui_group",
- "name": "momentaner Verbrauch (W)",
- "tab": "61ec3881.53526",
- "order": 2,
- "disp": true,
- "width": 6,
- "collapse": false
- },
- {
- "id": "421e19.192041e8",
- "type": "ui_group",
- "name": "Kumulierter Verbrauch",
- "tab": "61ec3881.53526",
- "order": 3,
- "disp": true,
- "width": 6,
- "collapse": false
- },
- {
- "id": "4e74439e.ee7e74",
- "type": "ui_group",
- "name": "Spannung / Strom",
- "tab": "61ec3881.53526",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false
- },
- {
- "id": "74586b20.85c2f4",
- "type": "ui_group",
- "name": "Link",
- "tab": "61ec3881.53526",
- "order": 4,
- "disp": true,
- "width": 6,
- "collapse": false
- },
- {
- "id": "595dfa51.2c1224",
- "type": "mqtt-broker",
- "name": "",
- "broker": "192.168.123.38",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": "",
- "closeTopic": "",
- "closePayload": "",
- "willTopic": "",
- "willQos": "0",
- "willPayload": ""
- },
- {
- "id": "61ec3881.53526",
- "type": "ui_tab",
- "name": "Blitzwolf Plug",
- "icon": "dashboard",
- "order": 3,
- "disabled": false,
- "hidden": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement