[ { "id": "667e4b4.2c2ddb4", "type": "tab", "label": "Home", "disabled": true, "info": "" }, { "id": "76c4ef38.d037a8", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Battery Voltage", "group": "45d13185.8fc46", "order": 4, "width": "6", "height": "6", "gtype": "gage", "title": "Battery voltage", "label": "Volts", "format": "{{value}} V", "min": "10", "max": "15.4", "colors": [ "#b50012", "#ffff00", "#00ff00" ], "seg1": "11", "seg2": "12.3", "x": 1060, "y": 280, "wires": [] }, { "id": "2859335a.645c1c", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "PV Volts", "group": "45d13185.8fc46", "order": 1, "width": "6", "height": "6", "gtype": "gage", "title": "PV Volts", "label": "Volts", "format": "{{value}} V", "min": "0", "max": "60", "colors": [ "#ff0000", "#ffff00", "#00ff00" ], "seg1": "5", "seg2": "30", "x": 1040, "y": 100, "wires": [] }, { "id": "9d2d8726.81c89", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "", "group": "45d13185.8fc46", "order": 5, "width": "6", "height": "6", "gtype": "gage", "title": "Battery charging current", "label": "Amps", "format": "{{value}} A", "min": 0, "max": 10, "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 1070, "y": 340, "wires": [] }, { "id": "59a9024.73bfa7c", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Battery Charging Watts", "group": "45d13185.8fc46", "order": 6, "width": "6", "height": "6", "gtype": "gage", "title": "Battery charging power", "label": "Watts", "format": "{{value}} W", "min": 0, "max": "200", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "50", "seg2": "100", "x": 1070, "y": 400, "wires": [] }, { "id": "fcce6d79.bd5cc8", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "PV Amps", "group": "45d13185.8fc46", "order": 2, "width": "6", "height": "6", "gtype": "gage", "title": "PV Amps", "label": "Amps", "format": "{{value}} A", "min": "0", "max": "10", "colors": [ "#ff0000", "#ffff00", "#00ff00" ], "seg1": "1", "seg2": "5", "x": 1040, "y": 160, "wires": [] }, { "id": "e6f7ee90.a612f8", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "PV Watts", "group": "45d13185.8fc46", "order": 3, "width": "6", "height": "6", "gtype": "gage", "title": "PV Watts", "label": "Watts", "format": "{{value}} W", "min": "0", "max": "200", "colors": [ "#00e606", "#00e606", "#ca3838" ], "seg1": "", "seg2": "100", "x": 1040, "y": 220, "wires": [] }, { "id": "b0ca5242.a7d528", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Battery SoC", "group": "b9d11553.55a72", "order": 5, "width": "6", "height": "6", "gtype": "gage", "title": "Battery SOC", "label": "", "format": "{{value}} %", "min": 0, "max": "100", "colors": [ "#ff0000", "#e6e600", "#80ff00" ], "seg1": "25", "seg2": "50", "x": 1030, "y": 460, "wires": [] }, { "id": "b10f8444.3004a", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 2, "width": "0", "height": "0", "name": "Charger status", "label": "Charger status", "format": " {{msg.label}}  ", "layout": "row-spread", "x": 1240, "y": 940, "wires": [] }, { "id": "1e1204ee.e54453", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 3, "width": "0", "height": "0", "name": "BattStatus", "label": "BattStatus", "format": " {{msg.label}}  ", "layout": "row-spread", "x": 1230, "y": 880, "wires": [] }, { "id": "904e4906.1d825", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Load Voltage", "group": "45d13185.8fc46", "order": 7, "width": "6", "height": "6", "gtype": "gage", "title": "Load Voltage", "label": "Volts", "format": "{{value}} V", "min": "10", "max": "14.4", "colors": [ "#b50012", "#ffff00", "#00ff00" ], "seg1": "11", "seg2": "12.3", "x": 1030, "y": 520, "wires": [] }, { "id": "5918bab0.0a7f74", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Load Current", "group": "45d13185.8fc46", "order": 8, "width": "6", "height": "6", "gtype": "gage", "title": "Load current", "label": "Amps", "format": "{{value}} A", "min": 0, "max": 10, "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 1040, "y": 580, "wires": [] }, { "id": "52303b34.1b74c4", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Load Power", "group": "45d13185.8fc46", "order": 9, "width": "6", "height": "6", "gtype": "gage", "title": "Load Power", "label": "Watts", "format": "{{value}} W", "min": 0, "max": "200", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "50", "seg2": "100", "x": 1030, "y": 640, "wires": [] }, { "id": "59da7916.cfab", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 4, "width": "0", "height": "0", "name": "systemvoltage", "label": "System Voltage", "format": "{{msg.payload}} Volts", "layout": "row-spread", "x": 1040, "y": 700, "wires": [] }, { "id": "b7599030.e45248", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Charger Temp", "group": "b9d11553.55a72", "order": 7, "width": "4", "height": "4", "gtype": "donut", "title": "Charger Temp", "label": "C", "format": "{{value}}", "min": 0, "max": "80", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "28", "seg2": "40", "x": 1040, "y": 760, "wires": [] }, { "id": "70d5e82b.9d8288", "type": "function", "z": "667e4b4.2c2ddb4", "name": "Battery Status", "func": "var bs = +msg.payload;\nvar b = 0b11 & (bs >> 2);\n//var b = msg.payload[0]['Battery status'];\n//bl = 0b1111 & b;\n\n\n switch (b) {\n case 0: \n var bStatus = \"Normal\";\n msg.label = bStatus;\n //msg.colour = \"#45B222\";\n msg.icon = \"fa fa-thumbs-up fa-2x nr-dashboard-ok\"\n return msg;\n case 1: \n var bStatus = \"Overvolt\";\n msg.label = bStatus;\n msg.colour = \"red\";\n msg.background = \"green\";\n \n return msg;\n case 2: \n var bStatus = \"Undervolt\";\n msg.label = bStatus;\n msg.colour = \"red\";\n msg.background = \"green\";\n return msg;\n case 3: \n var bStatus = \"Low volt disconnect\";\n msg.label = bStatus;\n msg.colour = \"yellow\";\n msg.background = \"green\";\n return msg;\n case 4: \n {\n var bStatus = \"FAULT\";\n msg.label = bStatus;\n msg.colour = \"red\";\n msg.background = \"green\";\nreturn msg;\n }\n }", "outputs": 1, "noerr": 0, "x": 1040, "y": 880, "wires": [ [ "1e1204ee.e54453" ] ] }, { "id": "c1854510.93c628", "type": "function", "z": "667e4b4.2c2ddb4", "name": "Charger Status", "func": "var equipStatus = +msg.payload;\nvar chargStatus = 0b11 & (equipStatus >> 2);\n\nswitch (chargStatus) {\ncase 0: \n var eStatus = \"Not charging\";\n msg.label = eStatus;\n msg.icon = \"fa fa-bed fa-2x nr-dashboard-ok\"\n //node.warn(\"0\");\n return msg;\n \ncase 1: \n eStatus = \"Float (13.8V)\";\n msg.label = eStatus;\n msg.icon = \"fa fa-ship fa-2x nr-dashboard-ok\"\n //node.warn(\"1\");\n return msg;\n\ncase 2: \n var eStatus = \"Boost (14.4V)\";\n msg.label = eStatus;\n msg.icon = \"fa fa-rocket fa-2x nr-dashboard-ok\"\n //node.warn(\"2\");\n return msg;\n\ncase 3: \n var eStatus = \"Equalization (14.6V)\";\n msg.label = eStatus;\n //node.warn(\"3\");\n return msg;\n}\n\nif (equipStatus >> 4) {\n var eStatus = \"FAULT\";\n msg.label = eStatus;\n //node.warn(\"4\");\n return msg;\n}", "outputs": 1, "noerr": 0, "x": 1040, "y": 940, "wires": [ [ "b10f8444.3004a" ] ] }, { "id": "da8bfe82.6c27e8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "Battery Voltage Alert", "func": "var voltage = +msg.payload\n\nif (voltage <= 11) {\n\nmsg = {\n payload :\"Battery level is low (\" + msg.payload + \" volts) - \" + Date().toString(),\n topic : \"Alert!\",\n}\n return msg;\n}", "outputs": 1, "noerr": 0, "x": 1280, "y": 280, "wires": [ [ "cc105bc5.27c3a" ] ] }, { "id": "cc105bc5.27c3a", "type": "e-mail", "z": "667e4b4.2c2ddb4", "server": "smtp.gmail.com", "port": "465", "secure": true, "name": "2088500464@vzwpix.com", "dname": "Gmail", "x": 1330, "y": 340, "wires": [] }, { "id": "dc719985.5a6bd", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 1, "width": 0, "height": 0, "name": "", "label": "TIme", "format": "{{msg.payload}}", "layout": "row-spread", "x": 450, "y": 40, "wires": [] }, { "id": "23999d1e.2ff562", "type": "moment", "z": "667e4b4.2c2ddb4", "name": "UTC-6", "topic": "UTC-6", "input": "", "inputType": "date", "inTz": "ETC/GMT-6", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "HH:mm:ss - ddd Do MMM YYYY", "locale": "en_US", "output": "payload", "outputType": "msg", "outTz": "America/Boise", "x": 290, "y": 40, "wires": [ [ "dc719985.5a6bd" ] ] }, { "id": "537e7061.c146f8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 100, "wires": [ [ "337aad10.9cf77a" ], [] ] }, { "id": "6e1f4803.30ccb8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12544", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12544, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 100, "wires": [ [ "537e7061.c146f8" ] ] }, { "id": "c9966a29.6e463", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 100, "wires": [ [ "6e1f4803.30ccb8" ] ] }, { "id": "337aad10.9cf77a", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 100, "wires": [ [ "2859335a.645c1c" ] ] }, { "id": "83e48978.d168d8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 160, "wires": [ [ "c3ebce8f.ddf66" ], [] ] }, { "id": "8353d3e2.5fa3a8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12545", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12545, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 160, "wires": [ [ "83e48978.d168d8" ] ] }, { "id": "3c7a766f.fc4a82", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 160, "wires": [ [ "8353d3e2.5fa3a8" ] ] }, { "id": "c3ebce8f.ddf66", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 160, "wires": [ [ "fcce6d79.bd5cc8" ] ] }, { "id": "c527eb64.1185b", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 220, "wires": [ [ "97ac0458.c523f" ], [] ] }, { "id": "73290fe.d570d7", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12546", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12546, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 220, "wires": [ [ "c527eb64.1185b" ] ] }, { "id": "aecb363d.c1f8f8", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 220, "wires": [ [ "73290fe.d570d7" ] ] }, { "id": "97ac0458.c523f", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 220, "wires": [ [ "e6f7ee90.a612f8" ] ] }, { "id": "d3643fa8.e07fe8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 280, "wires": [ [ "360f47f9.bc6a58" ], [] ] }, { "id": "f5032185.256238", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 -12548", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12548,\n 'quantity': 1\n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 280, "wires": [ [ "d3643fa8.e07fe8" ] ] }, { "id": "2d1dcf47.1399e", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 280, "wires": [ [ "f5032185.256238" ] ] }, { "id": "360f47f9.bc6a58", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 280, "wires": [ [ "76c4ef38.d037a8", "da8bfe82.6c27e8" ] ] }, { "id": "d9bb581e.8b9af8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 340, "wires": [ [ "6238f478.97ed94" ], [] ] }, { "id": "de0cfcb9.69a278", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12549", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12549, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 340, "wires": [ [ "d9bb581e.8b9af8" ] ] }, { "id": "f38badb7.5fc3f", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 340, "wires": [ [ "de0cfcb9.69a278" ] ] }, { "id": "6238f478.97ed94", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 340, "wires": [ [ "9d2d8726.81c89" ] ] }, { "id": "768e09ac.9a18a", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 400, "wires": [ [ "7f92c771.3b99e" ], [] ] }, { "id": "7e19ff09.9bf68", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12550", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12550, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 400, "wires": [ [ "768e09ac.9a18a" ] ] }, { "id": "1e65d513.1b6e93", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 400, "wires": [ [ "7e19ff09.9bf68" ] ] }, { "id": "7f92c771.3b99e", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 400, "wires": [ [ "59a9024.73bfa7c" ] ] }, { "id": "d687456a.27c0f8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 460, "wires": [ [ "bb4bfccb.2fefe" ], [] ] }, { "id": "1a0b5dd6.553fb2", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12570", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12570, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 460, "wires": [ [ "d687456a.27c0f8" ] ] }, { "id": "16bbefa8.13e728", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 460, "wires": [ [ "1a0b5dd6.553fb2" ] ] }, { "id": "bb4bfccb.2fefe", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\n//msg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 460, "wires": [ [ "b0ca5242.a7d528" ] ] }, { "id": "d1ded719.46383", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 520, "wires": [ [ "eb589e6c.b17f08" ], [] ] }, { "id": "e2265397.a80c6", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12556", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12556, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 520, "wires": [ [ "d1ded719.46383" ] ] }, { "id": "892b1509.0cb638", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 520, "wires": [ [ "e2265397.a80c6" ] ] }, { "id": "eb589e6c.b17f08", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 520, "wires": [ [ "904e4906.1d825" ] ] }, { "id": "75063679.97eb38", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 580, "wires": [ [ "2a5bd8d9.b7553" ], [] ] }, { "id": "7cd53e5c.94105", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12557", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12557, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 580, "wires": [ [ "75063679.97eb38" ] ] }, { "id": "e32a34f1.e8713", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 580, "wires": [ [ "7cd53e5c.94105" ] ] }, { "id": "2a5bd8d9.b7553", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 580, "wires": [ [ "5918bab0.0a7f74" ] ] }, { "id": "2f739dbb.3b2d62", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 640, "wires": [ [ "cd75ffbf.a7f198" ], [] ] }, { "id": "fa24aa52.cc016", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12558", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12558, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 640, "wires": [ [ "2f739dbb.3b2d62" ] ] }, { "id": "a8aee211.973e18", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 640, "wires": [ [ "fa24aa52.cc016" ] ] }, { "id": "cd75ffbf.a7f198", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 640, "wires": [ [ "52303b34.1b74c4" ] ] }, { "id": "2e891667.1e2ea2", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 700, "wires": [ [ "711ade3.47c5aa" ], [] ] }, { "id": "be14a5a.83d8e58", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12573", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12573, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 700, "wires": [ [ "2e891667.1e2ea2" ] ] }, { "id": "112c5643.a8ccf2", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1800", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 700, "wires": [ [ "be14a5a.83d8e58" ] ] }, { "id": "711ade3.47c5aa", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 700, "wires": [ [ "59da7916.cfab" ] ] }, { "id": "b2f151fc.2b8b48", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 760, "wires": [ [ "1feae804.8e5e38" ], [] ] }, { "id": "9ca8628c.936fd8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12562", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12562, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 760, "wires": [ [ "b2f151fc.2b8b48" ] ] }, { "id": "e3e25c13.dda6d", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "5 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "5", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 760, "wires": [ [ "9ca8628c.936fd8" ] ] }, { "id": "1feae804.8e5e38", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 760, "wires": [ [ "b7599030.e45248" ] ] }, { "id": "fee981a7.ee1368", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 880, "wires": [ [ "d5602a83.1078b8" ], [] ] }, { "id": "71f1796d.340ea8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12800", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12800, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 880, "wires": [ [ "fee981a7.ee1368" ] ] }, { "id": "403d9c93.72759c", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 880, "wires": [ [ "71f1796d.340ea8" ] ] }, { "id": "d5602a83.1078b8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 880, "wires": [ [ "70d5e82b.9d8288" ] ] }, { "id": "8e328329.b6c358", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 940, "wires": [ [ "c8d4e91f.5912f8" ], [] ] }, { "id": "8ef73bc2.ccb95", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - 12801", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12801, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 940, "wires": [ [ "8e328329.b6c358" ] ] }, { "id": "66c61e76.ea659", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "1 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 940, "wires": [ [ "8ef73bc2.ccb95" ] ] }, { "id": "c8d4e91f.5912f8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 940, "wires": [ [ "c1854510.93c628" ] ] }, { "id": "28958259.39664e", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 40, "wires": [ [ "23999d1e.2ff562" ] ] }, { "id": "a49cdf26.d84ec", "type": "ui_gauge", "z": "667e4b4.2c2ddb4", "name": "Battery Temp", "group": "b9d11553.55a72", "order": 6, "width": "4", "height": "4", "gtype": "donut", "title": "Battery Temp", "label": "C", "format": "{{value}}", "min": 0, "max": "80", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "28", "seg2": "40", "x": 1030, "y": 820, "wires": [] }, { "id": "9c8185e1.9ba2f8", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": false, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 820, "wires": [ [ "2e46be4e.005fda" ], [] ] }, { "id": "660bd24d.81e784", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC4 - Hex 311B Dec12560", "func": "msg.payload = {\n 'fc': 4, \n 'unitid': 1, \n 'address': 12560, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 340, "y": 820, "wires": [ [ "9c8185e1.9ba2f8" ] ] }, { "id": "9ad1a4dc.da773", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "5 sec", "topic": "", "payload": "", "payloadType": "str", "repeat": "5", "crontab": "", "once": false, "onceDelay": 0.1, "x": 90, "y": 820, "wires": [ [ "660bd24d.81e784" ] ] }, { "id": "2e46be4e.005fda", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\nmsg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 820, "wires": [ [ "a49cdf26.d84ec" ] ] }, { "id": "3ae37610.51caf2", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 2, "width": "0", "height": "0", "name": "Battery Capacity", "label": "Battery Capacity", "format": "{{msg.payload}} AH", "layout": "row-spread", "x": 1050, "y": 1000, "wires": [] }, { "id": "d98e9251.440a", "type": "modbus-flex-getter", "z": "667e4b4.2c2ddb4", "name": "I1: phase 1 current", "showStatusActivities": true, "showErrors": true, "logIOActivities": false, "server": "2d0b9d18.a028da", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "x": 630, "y": 1000, "wires": [ [ "2119e4a3.deefc4" ], [] ] }, { "id": "de9240c7.0dd298", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC3 - Hex 9001 Dec 36865", "func": "msg.payload = {\n 'fc': 3, \n 'unitid': 1, \n 'address': 36865, \n 'quantity': 1 \n}; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 340, "y": 1000, "wires": [ [ "d98e9251.440a" ] ] }, { "id": "a038b17e.809ea8", "type": "inject", "z": "667e4b4.2c2ddb4", "name": "30 min", "topic": "", "payload": "", "payloadType": "str", "repeat": "1800", "crontab": "", "once": false, "onceDelay": 0.1, "x": 100, "y": 1000, "wires": [ [ "de9240c7.0dd298" ] ] }, { "id": "2119e4a3.deefc4", "type": "function", "z": "667e4b4.2c2ddb4", "name": "", "func": "msg.payload = Number(msg.payload);\n//msg.payload = (msg.payload)/100;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 870, "y": 1000, "wires": [ [ "3ae37610.51caf2" ] ] }, { "id": "5b84741.dcc2c8c", "type": "modbus-flex-write", "z": "667e4b4.2c2ddb4", "name": "", "showStatusActivities": false, "showErrors": false, "server": "2d0b9d18.a028da", "x": 1030, "y": 1280, "wires": [ [ "164efe1.de46382" ], [] ] }, { "id": "d19344cc.803cc8", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC5 Address 2 Load ON", "func": " msg.payload = { \n value: msg.payload, \n 'fc': 5, \n 'unitid': 1, \n 'address': 2, \n 'quantity': 1 };\n \n return msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 1280, "wires": [ [ "5b84741.dcc2c8c" ] ] }, { "id": "e4d82cd6.ef75e", "type": "ui_text", "z": "667e4b4.2c2ddb4", "group": "b9d11553.55a72", "order": 9, "width": "4", "height": "1", "name": "", "label": "", "format": " {{msg.label}}  ", "layout": "row-spread", "x": 290, "y": 1160, "wires": [] }, { "id": "a45d28f2.fd022", "type": "function", "z": "667e4b4.2c2ddb4", "name": "Load Status", "func": "var loadcurrent = +msg.payload\nif(loadcurrent == 0){\n msg.label = \"Load Off\";\n msg.payload = 0\n msg.topic = \"state\"\n msg.colour = \"#000\";\n msg.background = \"green\";\n msg.icon = \"fa fa-lightbulb-o fa-2x nr-dashboard-error\"\n return msg;\n}\n\n\nelse{\n msg.label = \"Load On\";\n msg.payload = 1\n msg.topic = \"state\"\n msg.colour = \"#f44242\";\n msg.background = \"red\";\n msg.icon = \"fa fa-lightbulb-o fa-2x nr-dashboard-ok\"\n return msg;\n}\nreturn msg;", "outputs": 1, "noerr": 0, "x": 90, "y": 1160, "wires": [ [ "e4d82cd6.ef75e", "2f0a45aa.bb64aa" ] ] }, { "id": "2f0a45aa.bb64aa", "type": "ui_switch", "z": "667e4b4.2c2ddb4", "name": "", "label": "Load on/off", "group": "b9d11553.55a72", "order": 8, "width": "4", "height": "1", "passthru": false, "decouple": "false", "topic": "state", "style": "", "onvalue": "1", "onvalueType": "num", "onicon": "", "oncolor": "", "offvalue": "0", "offvalueType": "num", "officon": "", "offcolor": "", "x": 170, "y": 1260, "wires": [ [ "18e0c6fe.2d25b9", "7ce53a7a.83cbac" ] ] }, { "id": "3ceaf0d.065849", "type": "switch", "z": "667e4b4.2c2ddb4", "name": "", "property": "override", "propertyType": "global", "rules": [ { "t": "eq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 150, "y": 1360, "wires": [ [ "18e0c6fe.2d25b9" ] ] }, { "id": "e9356ac3.0fd06", "type": "change", "z": "667e4b4.2c2ddb4", "name": "global override", "rules": [ { "t": "set", "p": "override", "pt": "global", "to": "on", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 525.0000076293945, "y": 1322.5, "wires": [ [ "d19344cc.803cc8" ] ] }, { "id": "7ce53a7a.83cbac", "type": "switch", "z": "667e4b4.2c2ddb4", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 342.50000762939453, "y": 1343.75, "wires": [ [ "e9356ac3.0fd06" ], [ "334366e6.349a2a" ] ] }, { "id": "334366e6.349a2a", "type": "change", "z": "667e4b4.2c2ddb4", "name": "global override", "rules": [ { "t": "set", "p": "override", "pt": "global", "to": "off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 527.5, "y": 1362.4999866485596, "wires": [ [ "df7b6f14.1c52b" ] ] }, { "id": "18e0c6fe.2d25b9", "type": "smartswitch", "z": "667e4b4.2c2ddb4", "name": "switch", "topic": "main", "timeout": "0", "x": 410, "y": 1260, "wires": [ [] ] }, { "id": "f37ad287.97016", "type": "modbus-flex-write", "z": "667e4b4.2c2ddb4", "name": "", "showStatusActivities": false, "showErrors": false, "server": "2d0b9d18.a028da", "x": 1030, "y": 1400, "wires": [ [ "ab3f4b47.25fae" ], [] ] }, { "id": "df7b6f14.1c52b", "type": "function", "z": "667e4b4.2c2ddb4", "name": "FC5 Address 2 Load OFF", "func": " msg.payload = { \n value: msg.payload, \n 'fc': 5, \n 'unitid': 1, \n 'address': 2, \n 'quantity': 1 };\n \n return msg;", "outputs": 1, "noerr": 0, "x": 780, "y": 1400, "wires": [ [ "f37ad287.97016" ] ] }, { "id": "2e8c4a7b.03638e", "type": "comment", "z": "667e4b4.2c2ddb4", "name": "Manually turn Load On or OFF", "info": "", "x": 310, "y": 1100, "wires": [] }, { "id": "7659a40e.66ae54", "type": "ui_audio", "z": "667e4b4.2c2ddb4", "name": "", "group": "45d13185.8fc46", "voice": "en-US", "always": "", "x": 1440, "y": 1280, "wires": [] }, { "id": "164efe1.de46382", "type": "change", "z": "667e4b4.2c2ddb4", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "Load is on", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 1280, "wires": [ [ "7659a40e.66ae54" ] ] }, { "id": "ab3f4b47.25fae", "type": "change", "z": "667e4b4.2c2ddb4", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "Load is OFF", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 1380, "wires": [ [ "901246c5.0d9d8" ] ] }, { "id": "901246c5.0d9d8", "type": "ui_audio", "z": "667e4b4.2c2ddb4", "name": "", "group": "45d13185.8fc46", "voice": "en-US", "always": "", "x": 1440, "y": 1380, "wires": [] }, { "id": "45d13185.8fc46", "type": "ui_group", "z": "", "name": "Dashboard", "tab": "c569e95d.e2ea7", "order": 3, "disp": true, "width": "20", "collapse": true }, { "id": "b9d11553.55a72", "type": "ui_group", "z": "", "name": "Status", "tab": "c569e95d.e2ea7", "order": 4, "disp": true, "width": "8", "collapse": true }, { "id": "2d0b9d18.a028da", "type": "modbus-client", "z": "", "name": "", "clienttype": "serial", "bufferCommands": true, "stateLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "502", "tcpType": "DEFAULT", "serialPort": "/dev/ttyUSB0", "serialType": "RTU-BUFFERD", "serialBaudrate": "115200", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "unit_id": "1", "commandDelay": "1", "clientTimeout": "1000", "reconnectTimeout": "2000" }, { "id": "c569e95d.e2ea7", "type": "ui_tab", "z": "", "name": "Home", "icon": "dashboard", "order": 1 } ]