question

h2009 avatar image
h2009 asked

Need some help with flows and conditions

Hello,

I would like to get some help setting up my flows correctly as I can't seem to get it working how I would like. I've made the flows but I have no idea if this will work ok or not because I have no experience at this.


The issue that I've had at certain times, my inverters have been maxed out on loads and the whole system has shutdown in error: Overload L1: warning

So what I'm trying to setup is a rule:


  • If the battery level is below 10%, charge it regardless of the time of the day
  • If the battery level is between 10% and 80%, charge at night and use battery power (inverter only mode) during the daytime
  • otherwise (80% - 100% SoC) use battery battery power (inverter only mode)
  • IF inverter load is warning or alarm, switch inverter to ON
  • When inverter load is OK, switch inverter to INVERT ONLY

screenshot-2023-01-10-at-103726.png



[
    {
        "id": "64b7307e01aa633b",
        "type": "tab",
        "label": "UI Dashboard",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "f9df767e13ef261d",
        "type": "tab",
        "label": "Basic Invert/On",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "7fe980e5830be600",
        "type": "tab",
        "label": "SOC Invert/ON",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "d3e931130b911bb2",
        "type": "tab",
        "label": "Flow 4",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "9ca4a021a9423611",
        "type": "tab",
        "label": "Flow 5",
        "disabled": true,
        "info": "",
        "env": []
    },
    {
        "id": "victron-client-id",
        "type": "victron-client"
    },
    {
        "id": "8211a5b9cb347914",
        "type": "ui_group",
        "name": "Default",
        "tab": "4460f5744949c03b",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "4460f5744949c03b",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "50f73f7bbbef8285",
        "type": "ui_base",
        "theme": {
            "name": "theme-light",
            "lightTheme": {
                "default": "#0094CE",
                "baseColor": "#0094CE",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": false
            },
            "darkTheme": {
                "default": "#097479",
                "baseColor": "#097479",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": false
            },
            "customTheme": {
                "name": "Untitled Theme 1",
                "default": "#4B7930",
                "baseColor": "#4B7930",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
            },
            "themeState": {
                "base-color": {
                    "default": "#0094CE",
                    "value": "#0094CE",
                    "edited": false
                },
                "page-titlebar-backgroundColor": {
                    "value": "#0094CE",
                    "edited": false
                },
                "page-backgroundColor": {
                    "value": "#fafafa",
                    "edited": false
                },
                "page-sidebar-backgroundColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "group-textColor": {
                    "value": "#1bbfff",
                    "edited": false
                },
                "group-borderColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "group-backgroundColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "widget-textColor": {
                    "value": "#111111",
                    "edited": false
                },
                "widget-backgroundColor": {
                    "value": "#0094ce",
                    "edited": false
                },
                "widget-borderColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "base-font": {
                    "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
                }
            },
            "angularTheme": {
                "primary": "indigo",
                "accents": "blue",
                "warn": "red",
                "background": "grey",
                "palette": "light"
            }
        },
        "site": {
            "name": "Node-RED Dashboard",
            "hideToolbar": "false",
            "allowSwipe": "false",
            "lockMenu": "false",
            "allowTempTheme": "true",
            "dateFormat": "DD/MM/YYYY",
            "sizes": {
                "sx": 48,
                "sy": 48,
                "gx": 6,
                "gy": 6,
                "cx": 6,
                "cy": 6,
                "px": 0,
                "py": 0
            }
        }
    },
    {
        "id": "eed4d675713b4416",
        "type": "ui_gauge",
        "z": "64b7307e01aa633b",
        "name": "System SOC",
        "group": "8211a5b9cb347914",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "SOC%",
        "label": "units",
        "format": "{
  {value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 530,
        "y": 220,
        "wires": []
    },
    {
        "id": "9c3a991b673c2174",
        "type": "victron-input-battery",
        "z": "64b7307e01aa633b",
        "service": "com.victronenergy.battery.socketcan_can1",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery.socketcan_can1",
            "name": "Pylontech battery",
            "paths": [
                {
                    "path": "/Alarms/CellImbalance",
                    "type": "enum",
                    "name": "Cell Imbalance alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeCurrent",
                    "type": "enum",
                    "name": "High charge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeTemperature",
                    "type": "enum",
                    "name": "High charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighDischargeCurrent",
                    "type": "enum",
                    "name": "High discharge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "High battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighVoltage",
                    "type": "enum",
                    "name": "High voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/InternalFailure",
                    "type": "enum",
                    "name": "Internal error alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowChargeTemperature",
                    "type": "enum",
                    "name": "Low charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowTemperature",
                    "type": "enum",
                    "name": "Low battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowVoltage",
                    "type": "enum",
                    "name": "Low voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Capacity",
                    "type": "float",
                    "name": "Capacity (Ah)"
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Battery temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/History/ChargedEnergy",
                    "type": "float",
                    "name": "Charged Energy (kWh)"
                },
                {
                    "path": "/History/DischargedEnergy",
                    "type": "float",
                    "name": "Discharged Energy (kWh)"
                },
                {
                    "path": "/Info/BatteryLowVoltage",
                    "type": "float",
                    "name": "Min discharge voltage (V DC)"
                },
                {
                    "path": "/Info/MaxChargeCurrent",
                    "type": "float",
                    "name": "CCL - Charge Current Limit (A)"
                },
                {
                    "path": "/Info/MaxChargeVoltage",
                    "type": "float",
                    "name": "CVL - Charge Voltage Limit (V)"
                },
                {
                    "path": "/Info/MaxDischargeCurrent",
                    "type": "float",
                    "name": "DCL - Discharge Current Limit (A)"
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "State of charge (%)"
                },
                {
                    "path": "/Soh",
                    "type": "float",
                    "name": "State of health (%)"
                },
                {
                    "path": "/System/MaxVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell voltage"
                },
                {
                    "path": "/System/MaxCellTemperature",
                    "type": "float",
                    "name": "Maximum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MaxCellVoltage",
                    "type": "float",
                    "name": "System; maximum cell voltage (V DC)"
                },
                {
                    "path": "/System/MaxTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell temperature"
                },
                {
                    "path": "/System/MinVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell voltage"
                },
                {
                    "path": "/System/MinCellTemperature",
                    "type": "float",
                    "name": "Minimum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MinCellVoltage",
                    "type": "float",
                    "name": "System; minimum cell voltage (V DC)"
                },
                {
                    "path": "/System/MinTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell temperature"
                },
                {
                    "path": "/System/NrOfModulesBlockingCharge",
                    "type": "integer",
                    "name": "Number of modules blocking charge"
                },
                {
                    "path": "/System/NrOfModulesBlockingDischarge",
                    "type": "integer",
                    "name": "Number of modules blocking discharge"
                },
                {
                    "path": "/System/NrOfModulesOffline",
                    "type": "integer",
                    "name": "Number of offline modules"
                },
                {
                    "path": "/System/NrOfModulesOnline",
                    "type": "integer",
                    "name": "Number of online modules"
                }
            ]
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "initial": "",
        "name": "",
        "x": 230,
        "y": 220,
        "wires": [
            [
                "eed4d675713b4416"
            ]
        ]
    },
    {
        "id": "8edfbcd6929c560e",
        "type": "victron-input-battery",
        "z": "64b7307e01aa633b",
        "service": "com.victronenergy.battery.socketcan_can1",
        "path": "/Soh",
        "serviceObj": {
            "service": "com.victronenergy.battery.socketcan_can1",
            "name": "Pylontech battery",
            "paths": [
                {
                    "path": "/Alarms/CellImbalance",
                    "type": "enum",
                    "name": "Cell Imbalance alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeCurrent",
                    "type": "enum",
                    "name": "High charge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeTemperature",
                    "type": "enum",
                    "name": "High charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighDischargeCurrent",
                    "type": "enum",
                    "name": "High discharge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "High battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighVoltage",
                    "type": "enum",
                    "name": "High voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/InternalFailure",
                    "type": "enum",
                    "name": "Internal error alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowChargeTemperature",
                    "type": "enum",
                    "name": "Low charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowTemperature",
                    "type": "enum",
                    "name": "Low battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowVoltage",
                    "type": "enum",
                    "name": "Low voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Capacity",
                    "type": "float",
                    "name": "Capacity (Ah)"
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Battery temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/History/ChargedEnergy",
                    "type": "float",
                    "name": "Charged Energy (kWh)"
                },
                {
                    "path": "/History/DischargedEnergy",
                    "type": "float",
                    "name": "Discharged Energy (kWh)"
                },
                {
                    "path": "/Info/BatteryLowVoltage",
                    "type": "float",
                    "name": "Min discharge voltage (V DC)"
                },
                {
                    "path": "/Info/MaxChargeCurrent",
                    "type": "float",
                    "name": "CCL - Charge Current Limit (A)"
                },
                {
                    "path": "/Info/MaxChargeVoltage",
                    "type": "float",
                    "name": "CVL - Charge Voltage Limit (V)"
                },
                {
                    "path": "/Info/MaxDischargeCurrent",
                    "type": "float",
                    "name": "DCL - Discharge Current Limit (A)"
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "State of charge (%)"
                },
                {
                    "path": "/Soh",
                    "type": "float",
                    "name": "State of health (%)"
                },
                {
                    "path": "/System/MaxVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell voltage"
                },
                {
                    "path": "/System/MaxCellTemperature",
                    "type": "float",
                    "name": "Maximum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MaxCellVoltage",
                    "type": "float",
                    "name": "System; maximum cell voltage (V DC)"
                },
                {
                    "path": "/System/MaxTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell temperature"
                },
                {
                    "path": "/System/MinVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell voltage"
                },
                {
                    "path": "/System/MinCellTemperature",
                    "type": "float",
                    "name": "Minimum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MinCellVoltage",
                    "type": "float",
                    "name": "System; minimum cell voltage (V DC)"
                },
                {
                    "path": "/System/MinTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell temperature"
                },
                {
                    "path": "/System/NrOfModulesBlockingCharge",
                    "type": "integer",
                    "name": "Number of modules blocking charge"
                },
                {
                    "path": "/System/NrOfModulesBlockingDischarge",
                    "type": "integer",
                    "name": "Number of modules blocking discharge"
                },
                {
                    "path": "/System/NrOfModulesOffline",
                    "type": "integer",
                    "name": "Number of offline modules"
                },
                {
                    "path": "/System/NrOfModulesOnline",
                    "type": "integer",
                    "name": "Number of online modules"
                }
            ]
        },
        "pathObj": {
            "path": "/Soh",
            "type": "float",
            "name": "State of health (%)"
        },
        "initial": "",
        "name": "",
        "x": 210,
        "y": 300,
        "wires": [
            [
                "51bc27917a49ee84"
            ]
        ]
    },
    {
        "id": "51bc27917a49ee84",
        "type": "ui_gauge",
        "z": "64b7307e01aa633b",
        "name": "Battery Health",
        "group": "8211a5b9cb347914",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Health",
        "label": "units",
        "format": "{
  {value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "className": "",
        "x": 540,
        "y": 300,
        "wires": []
    },
    {
        "id": "0b44534a856e15e1",
        "type": "victron-input-battery",
        "z": "64b7307e01aa633b",
        "service": "com.victronenergy.battery.socketcan_can1",
        "path": "/Dc/0/Temperature",
        "serviceObj": {
            "service": "com.victronenergy.battery.socketcan_can1",
            "name": "Pylontech battery",
            "paths": [
                {
                    "path": "/Alarms/CellImbalance",
                    "type": "enum",
                    "name": "Cell Imbalance alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeCurrent",
                    "type": "enum",
                    "name": "High charge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighChargeTemperature",
                    "type": "enum",
                    "name": "High charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighDischargeCurrent",
                    "type": "enum",
                    "name": "High discharge current alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "High battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighVoltage",
                    "type": "enum",
                    "name": "High voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/InternalFailure",
                    "type": "enum",
                    "name": "Internal error alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowChargeTemperature",
                    "type": "enum",
                    "name": "Low charge temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowTemperature",
                    "type": "enum",
                    "name": "Low battery temperature alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowVoltage",
                    "type": "enum",
                    "name": "Low voltage alarm",
                    "enum": {
                        "0": "No alarm",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Capacity",
                    "type": "float",
                    "name": "Capacity (Ah)"
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Battery temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/History/ChargedEnergy",
                    "type": "float",
                    "name": "Charged Energy (kWh)"
                },
                {
                    "path": "/History/DischargedEnergy",
                    "type": "float",
                    "name": "Discharged Energy (kWh)"
                },
                {
                    "path": "/Info/BatteryLowVoltage",
                    "type": "float",
                    "name": "Min discharge voltage (V DC)"
                },
                {
                    "path": "/Info/MaxChargeCurrent",
                    "type": "float",
                    "name": "CCL - Charge Current Limit (A)"
                },
                {
                    "path": "/Info/MaxChargeVoltage",
                    "type": "float",
                    "name": "CVL - Charge Voltage Limit (V)"
                },
                {
                    "path": "/Info/MaxDischargeCurrent",
                    "type": "float",
                    "name": "DCL - Discharge Current Limit (A)"
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "State of charge (%)"
                },
                {
                    "path": "/Soh",
                    "type": "float",
                    "name": "State of health (%)"
                },
                {
                    "path": "/System/MaxVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell voltage"
                },
                {
                    "path": "/System/MaxCellTemperature",
                    "type": "float",
                    "name": "Maximum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MaxCellVoltage",
                    "type": "float",
                    "name": "System; maximum cell voltage (V DC)"
                },
                {
                    "path": "/System/MaxTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with highest cell temperature"
                },
                {
                    "path": "/System/MinVoltageCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell voltage"
                },
                {
                    "path": "/System/MinCellTemperature",
                    "type": "float",
                    "name": "Minimum cell temperature (Degrees celsius)"
                },
                {
                    "path": "/System/MinCellVoltage",
                    "type": "float",
                    "name": "System; minimum cell voltage (V DC)"
                },
                {
                    "path": "/System/MinTemperatureCellId",
                    "type": "string",
                    "name": "System; ID of module with lowest cell temperature"
                },
                {
                    "path": "/System/NrOfModulesBlockingCharge",
                    "type": "integer",
                    "name": "Number of modules blocking charge"
                },
                {
                    "path": "/System/NrOfModulesBlockingDischarge",
                    "type": "integer",
                    "name": "Number of modules blocking discharge"
                },
                {
                    "path": "/System/NrOfModulesOffline",
                    "type": "integer",
                    "name": "Number of offline modules"
                },
                {
                    "path": "/System/NrOfModulesOnline",
                    "type": "integer",
                    "name": "Number of online modules"
                }
            ]
        },
        "pathObj": {
            "path": "/Dc/0/Temperature",
            "type": "float",
            "name": "Battery temperature (C)"
        },
        "initial": "",
        "name": "",
        "x": 220,
        "y": 400,
        "wires": [
            [
                "bf71ed0f47980fd1"
            ]
        ]
    },
    {
        "id": "bf71ed0f47980fd1",
        "type": "ui_text",
        "z": "64b7307e01aa633b",
        "group": "8211a5b9cb347914",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "Battery Temp",
        "label": "Battery Temp",
        "format": "{
  {msg.payload}}",
        "layout": "col-center",
        "className": "",
        "x": 530,
        "y": 400,
        "wires": []
    },
    {
        "id": "0fa3c3d40353fd7d",
        "type": "ui_text",
        "z": "64b7307e01aa633b",
        "group": "8211a5b9cb347914",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "Inverter Mode",
        "label": "Inverter Mode",
        "format": "{
  {msg.payload}}",
        "layout": "col-center",
        "className": "",
        "x": 440,
        "y": 520,
        "wires": []
    },
    {
        "id": "45bb45d34ee08bdf",
        "type": "victron-input-vebus",
        "z": "64b7307e01aa633b",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/ActiveInput",
                    "type": "enum",
                    "name": "Active input",
                    "enum": {
                        "0": "AC Input 1",
                        "1": "AC Input 2",
                        "240": "Disconnected"
                    }
                },
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/F",
                    "type": "float",
                    "name": "Input frequency 1 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/I",
                    "type": "float",
                    "name": "Input current phase 1 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/P",
                    "type": "float",
                    "name": "Input power 1 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/V",
                    "type": "float",
                    "name": "Input voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/F",
                    "type": "float",
                    "name": "Input frequency 2 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/I",
                    "type": "float",
                    "name": "Input current phase 2 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/P",
                    "type": "float",
                    "name": "Input power 2 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/V",
                    "type": "float",
                    "name": "Input voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/F",
                    "type": "float",
                    "name": "Input frequency 3 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/I",
                    "type": "float",
                    "name": "Input current phase 3 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/P",
                    "type": "float",
                    "name": "Input power 3 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/V",
                    "type": "float",
                    "name": "Input voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 1 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/In/2/CurrentLimit",
                    "type": "float",
                    "name": "Input 2 current limit (A)"
                },
                {
                    "path": "/Ac/In/2/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 2 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/NumberOfPhases",
                    "type": "float",
                    "name": "Phase count"
                },
                {
                    "path": "/Ac/Out/L1/F",
                    "type": "float",
                    "name": "Output frequency (Hz)"
                },
                {
                    "path": "/Ac/Out/L1/I",
                    "type": "float",
                    "name": "Output current phase 1 (A)"
                },
                {
                    "path": "/Ac/Out/L1/P",
                    "type": "float",
                    "name": "Output power 1 (W)"
                },
                {
                    "path": "/Ac/Out/L1/V",
                    "type": "float",
                    "name": "Output voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/Out/L2/I",
                    "type": "float",
                    "name": "Output current phase 2 (A)"
                },
                {
                    "path": "/Ac/Out/L2/P",
                    "type": "float",
                    "name": "Output power 2 (W)"
                },
                {
                    "path": "/Ac/Out/L2/V",
                    "type": "float",
                    "name": "Output voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/Out/L3/I",
                    "type": "float",
                    "name": "Output current phase 3 (A)"
                },
                {
                    "path": "/Ac/Out/L3/P",
                    "type": "float",
                    "name": "Output power 3 (W)"
                },
                {
                    "path": "/Ac/Out/L3/V",
                    "type": "float",
                    "name": "Output voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/State/IgnoreAcIn1",
                    "type": "enum",
                    "name": "AC input 1 ignored",
                    "enum": {
                        "0": "AC input not ignored",
                        "1": "AC input ignored"
                    }
                },
                {
                    "path": "/Alarms/GridLost",
                    "type": "enum",
                    "name": "Grid lost alarm",
                    "enum": {
                        "0": "Ok",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "Temperature",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Overload",
                    "type": "enum",
                    "name": "Overload alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Overload",
                    "type": "enum",
                    "name": "Overload alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Overload",
                    "type": "enum",
                    "name": "Overload alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowBattery",
                    "type": "enum",
                    "name": "Low battery",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/Overload",
                    "type": "enum",
                    "name": "Overload",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/PhaseRotation",
                    "type": "enum",
                    "name": "Phase Rotation",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning"
                    }
                },
                {
                    "path": "/Alarms/TemperatureSensor",
                    "type": "enum",
                    "name": "Temperatur sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/VoltageSensor",
                    "type": "enum",
                    "name": "Voltage sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Bms/AllowToCharge",
                    "type": "enum",
                    "name": "BMS allows battery to be charged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/AllowToDischarge",
                    "type": "enum",
                    "name": "BMS allows battery to be discharged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/BmsExpected",
                    "type": "enum",
                    "name": "VE.Bus BMS is expected",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/Error",
                    "type": "enum",
                    "name": "VE.Bus BMS error",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/Energy/AcIn1ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn1 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn1ToInverter",
                    "type": "float",
                    "name": "Energy AcIn1 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn2 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToInverter",
                    "type": "float",
                    "name": "Energy ACIn2 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn1",
                    "type": "float",
                    "name": "Energy AcOut to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn2",
                    "type": "float",
                    "name": "Energy AcOut to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn1",
                    "type": "float",
                    "name": "Energy Inverter to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn2",
                    "type": "float",
                    "name": "Energy Inverter to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcOut",
                    "type": "float",
                    "name": "Inverter To AcOut (kWh)"
                },
                {
                    "path": "/Energy/OutToInverter",
                    "type": "float",
                    "name": "AcOut to Inverter (kWh)"
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    }
                },
                {
                    "path": "/Hub4/Sustain",
                    "type": "enum",
                    "name": "Sustain active",
                    "enum": {
                        "0": "Sustain inactive",
                        "1": "Sustain active"
                    }
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    }
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    }
                },
                {
                    "path": "/ModeIsAdjustable",
                    "type": "enum",
                    "name": "Mode is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)"
                },
                {
                    "path": "/State",
                    "type": "enum",
                    "name": "VE.Bus state",
                    "enum": {
                        "0": "Off",
                        "1": "Low Power",
                        "2": "Fault",
                        "3": "Bulk",
                        "4": "Absorption",
                        "5": "Float",
                        "6": "Storage",
                        "7": "Equalize",
                        "8": "Passthru",
                        "9": "Inverting",
                        "10": "Power assist",
                        "11": "Power supply",
                        "252": "Bulk protect"
                    }
                },
                {
                    "path": "/VebusError",
                    "type": "enum",
                    "name": "VE.Bus Error",
                    "enum": {
                        "0": "No error",
                        "1": "VE.Bus Error 1: Device is switched off because one of the other phases in the system has switched off",
                        "2": "VE.Bus Error 2: New and old types MK2 are mixed in the system",
                        "3": "VE.Bus Error 3: Not all, or more than, the expected devices were found in the system",
                        "4": "VE.Bus Error 4: No other device whatsoever detected",
                        "5": "VE.Bus Error 5: Overvoltage on AC-out",
                        "6": "VE.Bus Error 6: Error in DDC Program",
                        "7": "VE.Bus Error 7:  BMS connected, which requires an Assistant, but no assistant found",
                        "8": "VE.Bus Error 8: Ground relay test failed",
                        "9": "VE.Bus Error 9",
                        "10": "VE.Bus Error 10: System time synchronisation problem occurred",
                        "11": "VE.Bus Error 11: Relay test fault",
                        "12": "VE.Bus Error 12",
                        "13": "VE.Bus Error 13",
                        "14": "VE.Bus Error 14: Device cannot transmit data",
                        "15": "VE.Bus Error 15",
                        "16": "VE.Bus Error 16: Awaiting configuration or dongle missing",
                        "17": "VE.Bus Error 17: Phase master missing",
                        "18": "VE.Bus Error 18: AC Overvoltage on the output of a slave has occurred while already switched off",
                        "19": "VE.Bus Error 19",
                        "20": "VE.Bus Error 20",
                        "21": "VE.Bus Error 21",
                        "22": "VE.Bus Error 22: This device cannot function as slave",
                        "23": "VE.Bus Error 23",
                        "24": "VE.Bus Error 24: Switch-over system protection initiated",
                        "25": "VE.Bus Error 25: Firmware incompatibility. The firmware of one of the connected device is not sufficiently up to date to operate in conjunction with this device",
                        "26": "VE.Bus Error 26: Internal error",
                        "27": "VE.Bus Error 27",
                        "28": "VE.Bus Error 28",
                        "29": "VE.Bus Error 29",
                        "30": "VE.Bus Error 30",
                        "31": "VE.Bus Error 31",
                        "32": "VE.Bus Error 32"
                    }
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            }
        },
        "initial": "",
        "name": "",
        "x": 140,
        "y": 540,
        "wires": [
            [
                "0fa3c3d40353fd7d"
            ]
        ]
    },
    {
        "id": "aaa14838.e2a268",
        "type": "inject",
        "z": "f9df767e13ef261d",
        "name": "Trigger 'ON' at 12:00",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "00 00 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "3",
        "payloadType": "num",
        "x": 120,
        "y": 220,
        "wires": [
            [
                "87b4cc47.a7886",
                "b60488ad9c330da7"
            ]
        ]
    },
    {
        "id": "e2730bab.207058",
        "type": "inject",
        "z": "f9df767e13ef261d",
        "name": "Trigger 'INVERT' at 05:30",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "30 05 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 130,
        "y": 260,
        "wires": [
            [
                "87b4cc47.a7886",
                "b5cd12e42d931795"
            ]
        ]
    },
    {
        "id": "87b4cc47.a7886",
        "type": "victron-output-vebus",
        "z": "f9df767e13ef261d",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableCharge",
                    "type": "enum",
                    "name": "ESS disable charge flag phase",
                    "enum": {
                        "0": "Charge allowed",
                        "1": "Charge disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableFeedIn",
                    "type": "enum",
                    "name": "ESS disable feedback flag phase",
                    "enum": {
                        "0": "Feed in allowed",
                        "1": "Feed in disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DoNotFeedInOvervoltage",
                    "type": "enum",
                    "name": "Feed DC overvoltage into grid",
                    "enum": {
                        "0": "Feed in overvoltage",
                        "1": "Do not feed in overvoltage"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    },
                    "writable": true
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    },
                    "writable": true
                },
                {
                    "path": "/PvInverter/Disable",
                    "type": "enum",
                    "name": "Disable PV inverter",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)",
                    "writable": true
                },
                {
                    "path": "/SystemReset",
                    "type": "enum",
                    "name": "VE.Bus Reset",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            },
            "writable": true
        },
        "initial": "",
        "name": "",
        "x": 380,
        "y": 240,
        "wires": []
    },
    {
        "id": "b60488ad9c330da7",
        "type": "debug",
        "z": "f9df767e13ef261d",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 360,
        "y": 180,
        "wires": []
    },
    {
        "id": "b5cd12e42d931795",
        "type": "debug",
        "z": "f9df767e13ef261d",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 360,
        "y": 300,
        "wires": []
    },
    {
        "id": "198d1c35f79a8fc2",
        "type": "inject",
        "z": "7fe980e5830be600",
        "name": "Trigger 'ON' at 12:00",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "00 00 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "3",
        "payloadType": "num",
        "x": 360,
        "y": 320,
        "wires": [
            [
                "75f392b66be1de1b",
                "3f0669fe302b3cf8"
            ]
        ]
    },
    {
        "id": "15ff6720d61303e0",
        "type": "inject",
        "z": "7fe980e5830be600",
        "name": "Trigger 'INVERT' at 05:30",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "30 05 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 370,
        "y": 380,
        "wires": [
            [
                "75f392b66be1de1b",
                "50e8eace707db845"
            ]
        ]
    },
    {
        "id": "75f392b66be1de1b",
        "type": "victron-output-vebus",
        "z": "7fe980e5830be600",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableCharge",
                    "type": "enum",
                    "name": "ESS disable charge flag phase",
                    "enum": {
                        "0": "Charge allowed",
                        "1": "Charge disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableFeedIn",
                    "type": "enum",
                    "name": "ESS disable feedback flag phase",
                    "enum": {
                        "0": "Feed in allowed",
                        "1": "Feed in disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DoNotFeedInOvervoltage",
                    "type": "enum",
                    "name": "Feed DC overvoltage into grid",
                    "enum": {
                        "0": "Feed in overvoltage",
                        "1": "Do not feed in overvoltage"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    },
                    "writable": true
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    },
                    "writable": true
                },
                {
                    "path": "/PvInverter/Disable",
                    "type": "enum",
                    "name": "Disable PV inverter",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)",
                    "writable": true
                },
                {
                    "path": "/SystemReset",
                    "type": "enum",
                    "name": "VE.Bus Reset",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            },
            "writable": true
        },
        "initial": "",
        "name": "",
        "x": 620,
        "y": 360,
        "wires": []
    },
    {
        "id": "3f0669fe302b3cf8",
        "type": "debug",
        "z": "7fe980e5830be600",
        "name": "debug 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 600,
        "y": 300,
        "wires": []
    },
    {
        "id": "50e8eace707db845",
        "type": "debug",
        "z": "7fe980e5830be600",
        "name": "debug 4",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 600,
        "y": 420,
        "wires": []
    },
    {
        "id": "9d5fab83c7452461",
        "type": "switch",
        "z": "7fe980e5830be600",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "10",
                "vt": "str"
            },
            {
                "t": "gte",
                "v": "30",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 370,
        "y": 700,
        "wires": [
            [
                "211a63b5281e3af8"
            ],
            [
                "27938006c2c7d5b8"
            ]
        ]
    },
    {
        "id": "a10acfb0af9945cb",
        "type": "victron-input-vebus",
        "z": "7fe980e5830be600",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/ActiveInput",
                    "type": "enum",
                    "name": "Active input",
                    "enum": {
                        "0": "AC Input 1",
                        "1": "AC Input 2",
                        "240": "Disconnected"
                    }
                },
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/F",
                    "type": "float",
                    "name": "Input frequency 1 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/I",
                    "type": "float",
                    "name": "Input current phase 1 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/P",
                    "type": "float",
                    "name": "Input power 1 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/V",
                    "type": "float",
                    "name": "Input voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/F",
                    "type": "float",
                    "name": "Input frequency 2 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/I",
                    "type": "float",
                    "name": "Input current phase 2 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/P",
                    "type": "float",
                    "name": "Input power 2 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/V",
                    "type": "float",
                    "name": "Input voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/F",
                    "type": "float",
                    "name": "Input frequency 3 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/I",
                    "type": "float",
                    "name": "Input current phase 3 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/P",
                    "type": "float",
                    "name": "Input power 3 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/V",
                    "type": "float",
                    "name": "Input voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 1 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/In/2/CurrentLimit",
                    "type": "float",
                    "name": "Input 2 current limit (A)"
                },
                {
                    "path": "/Ac/In/2/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 2 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/NumberOfPhases",
                    "type": "float",
                    "name": "Phase count"
                },
                {
                    "path": "/Ac/Out/L1/F",
                    "type": "float",
                    "name": "Output frequency (Hz)"
                },
                {
                    "path": "/Ac/Out/L1/I",
                    "type": "float",
                    "name": "Output current phase 1 (A)"
                },
                {
                    "path": "/Ac/Out/L1/P",
                    "type": "float",
                    "name": "Output power 1 (W)"
                },
                {
                    "path": "/Ac/Out/L1/V",
                    "type": "float",
                    "name": "Output voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/Out/L2/I",
                    "type": "float",
                    "name": "Output current phase 2 (A)"
                },
                {
                    "path": "/Ac/Out/L2/P",
                    "type": "float",
                    "name": "Output power 2 (W)"
                },
                {
                    "path": "/Ac/Out/L2/V",
                    "type": "float",
                    "name": "Output voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/Out/L3/I",
                    "type": "float",
                    "name": "Output current phase 3 (A)"
                },
                {
                    "path": "/Ac/Out/L3/P",
                    "type": "float",
                    "name": "Output power 3 (W)"
                },
                {
                    "path": "/Ac/Out/L3/V",
                    "type": "float",
                    "name": "Output voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/State/IgnoreAcIn1",
                    "type": "enum",
                    "name": "AC input 1 ignored",
                    "enum": {
                        "0": "AC input not ignored",
                        "1": "AC input ignored"
                    }
                },
                {
                    "path": "/Alarms/GridLost",
                    "type": "enum",
                    "name": "Grid lost alarm",
                    "enum": {
                        "0": "Ok",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "Temperature",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Overload",
                    "type": "enum",
                    "name": "Overload alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Overload",
                    "type": "enum",
                    "name": "Overload alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Overload",
                    "type": "enum",
                    "name": "Overload alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowBattery",
                    "type": "enum",
                    "name": "Low battery",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/Overload",
                    "type": "enum",
                    "name": "Overload",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/PhaseRotation",
                    "type": "enum",
                    "name": "Phase Rotation",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning"
                    }
                },
                {
                    "path": "/Alarms/TemperatureSensor",
                    "type": "enum",
                    "name": "Temperatur sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/VoltageSensor",
                    "type": "enum",
                    "name": "Voltage sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Bms/AllowToCharge",
                    "type": "enum",
                    "name": "BMS allows battery to be charged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/AllowToDischarge",
                    "type": "enum",
                    "name": "BMS allows battery to be discharged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/BmsExpected",
                    "type": "enum",
                    "name": "VE.Bus BMS is expected",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/Error",
                    "type": "enum",
                    "name": "VE.Bus BMS error",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/Energy/AcIn1ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn1 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn1ToInverter",
                    "type": "float",
                    "name": "Energy AcIn1 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn2 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToInverter",
                    "type": "float",
                    "name": "Energy ACIn2 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn1",
                    "type": "float",
                    "name": "Energy AcOut to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn2",
                    "type": "float",
                    "name": "Energy AcOut to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn1",
                    "type": "float",
                    "name": "Energy Inverter to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn2",
                    "type": "float",
                    "name": "Energy Inverter to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcOut",
                    "type": "float",
                    "name": "Inverter To AcOut (kWh)"
                },
                {
                    "path": "/Energy/OutToInverter",
                    "type": "float",
                    "name": "AcOut to Inverter (kWh)"
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    }
                },
                {
                    "path": "/Hub4/Sustain",
                    "type": "enum",
                    "name": "Sustain active",
                    "enum": {
                        "0": "Sustain inactive",
                        "1": "Sustain active"
                    }
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    }
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    }
                },
                {
                    "path": "/ModeIsAdjustable",
                    "type": "enum",
                    "name": "Mode is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)"
                },
                {
                    "path": "/State",
                    "type": "enum",
                    "name": "VE.Bus state",
                    "enum": {
                        "0": "Off",
                        "1": "Low Power",
                        "2": "Fault",
                        "3": "Bulk",
                        "4": "Absorption",
                        "5": "Float",
                        "6": "Storage",
                        "7": "Equalize",
                        "8": "Passthru",
                        "9": "Inverting",
                        "10": "Power assist",
                        "11": "Power supply",
                        "252": "Bulk protect"
                    }
                },
                {
                    "path": "/VebusError",
                    "type": "enum",
                    "name": "VE.Bus Error",
                    "enum": {
                        "0": "No error",
                        "1": "VE.Bus Error 1: Device is switched off because one of the other phases in the system has switched off",
                        "2": "VE.Bus Error 2: New and old types MK2 are mixed in the system",
                        "3": "VE.Bus Error 3: Not all, or more than, the expected devices were found in the system",
                        "4": "VE.Bus Error 4: No other device whatsoever detected",
                        "5": "VE.Bus Error 5: Overvoltage on AC-out",
                        "6": "VE.Bus Error 6: Error in DDC Program",
                        "7": "VE.Bus Error 7:  BMS connected, which requires an Assistant, but no assistant found",
                        "8": "VE.Bus Error 8: Ground relay test failed",
                        "9": "VE.Bus Error 9",
                        "10": "VE.Bus Error 10: System time synchronisation problem occurred",
                        "11": "VE.Bus Error 11: Relay test fault",
                        "12": "VE.Bus Error 12",
                        "13": "VE.Bus Error 13",
                        "14": "VE.Bus Error 14: Device cannot transmit data",
                        "15": "VE.Bus Error 15",
                        "16": "VE.Bus Error 16: Awaiting configuration or dongle missing",
                        "17": "VE.Bus Error 17: Phase master missing",
                        "18": "VE.Bus Error 18: AC Overvoltage on the output of a slave has occurred while already switched off",
                        "19": "VE.Bus Error 19",
                        "20": "VE.Bus Error 20",
                        "21": "VE.Bus Error 21",
                        "22": "VE.Bus Error 22: This device cannot function as slave",
                        "23": "VE.Bus Error 23",
                        "24": "VE.Bus Error 24: Switch-over system protection initiated",
                        "25": "VE.Bus Error 25: Firmware incompatibility. The firmware of one of the connected device is not sufficiently up to date to operate in conjunction with this device",
                        "26": "VE.Bus Error 26: Internal error",
                        "27": "VE.Bus Error 27",
                        "28": "VE.Bus Error 28",
                        "29": "VE.Bus Error 29",
                        "30": "VE.Bus Error 30",
                        "31": "VE.Bus Error 31",
                        "32": "VE.Bus Error 32"
                    }
                }
            ]
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "VE.Bus state of charge (%)"
        },
        "initial": "",
        "name": "",
        "x": 130,
        "y": 700,
        "wires": [
            [
                "9d5fab83c7452461"
            ]
        ]
    },
    {
        "id": "223a13fef399ae20",
        "type": "victron-output-vebus",
        "z": "7fe980e5830be600",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableCharge",
                    "type": "enum",
                    "name": "ESS disable charge flag phase",
                    "enum": {
                        "0": "Charge allowed",
                        "1": "Charge disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableFeedIn",
                    "type": "enum",
                    "name": "ESS disable feedback flag phase",
                    "enum": {
                        "0": "Feed in allowed",
                        "1": "Feed in disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DoNotFeedInOvervoltage",
                    "type": "enum",
                    "name": "Feed DC overvoltage into grid",
                    "enum": {
                        "0": "Feed in overvoltage",
                        "1": "Do not feed in overvoltage"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    },
                    "writable": true
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    },
                    "writable": true
                },
                {
                    "path": "/PvInverter/Disable",
                    "type": "enum",
                    "name": "Disable PV inverter",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)",
                    "writable": true
                },
                {
                    "path": "/SystemReset",
                    "type": "enum",
                    "name": "VE.Bus Reset",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            },
            "writable": true
        },
        "initial": "",
        "name": "",
        "x": 880,
        "y": 700,
        "wires": []
    },
    {
        "id": "211a63b5281e3af8",
        "type": "change",
        "z": "7fe980e5830be600",
        "name": "Trigger 'ON' ",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "3",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 600,
        "wires": [
            [
                "223a13fef399ae20"
            ]
        ]
    },
    {
        "id": "27938006c2c7d5b8",
        "type": "change",
        "z": "7fe980e5830be600",
        "name": "Trigger 'INVERT' ",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "2",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 640,
        "y": 780,
        "wires": [
            [
                "223a13fef399ae20"
            ]
        ]
    },
    {
        "id": "e5ce6a498811348c",
        "type": "function",
        "z": "7fe980e5830be600",
        "name": "Is it night?",
        "func": "// get current hours\nconst hr = new Date().getHours();\n\n// trigger a message if the time is between 12am and 6am or 'night'\nif (hr >= 0 && hr <= 5) {\n    return [msg, null]; // input 1\n} else {\n    return [null, msg]; // input 2\n}\n",
        "outputs": 2,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 570,
        "y": 700,
        "wires": [
            [
                "211a63b5281e3af8"
            ],
            [
                "27938006c2c7d5b8"
            ]
        ]
    },
    {
        "id": "7a66435e.a64fcc",
        "type": "victron-output-vebus",
        "z": "d3e931130b911bb2",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableCharge",
                    "type": "enum",
                    "name": "ESS disable charge flag phase",
                    "enum": {
                        "0": "Charge allowed",
                        "1": "Charge disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableFeedIn",
                    "type": "enum",
                    "name": "ESS disable feedback flag phase",
                    "enum": {
                        "0": "Feed in allowed",
                        "1": "Feed in disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DoNotFeedInOvervoltage",
                    "type": "enum",
                    "name": "Feed DC overvoltage into grid",
                    "enum": {
                        "0": "Feed in overvoltage",
                        "1": "Do not feed in overvoltage"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    },
                    "writable": true
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    },
                    "writable": true
                },
                {
                    "path": "/PvInverter/Disable",
                    "type": "enum",
                    "name": "Disable PV inverter",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)",
                    "writable": true
                },
                {
                    "path": "/SystemReset",
                    "type": "enum",
                    "name": "VE.Bus Reset",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            },
            "writable": true
        },
        "initial": "",
        "name": "",
        "x": 1220,
        "y": 440,
        "wires": []
    },
    {
        "id": "95d75091.0ac12",
        "type": "change",
        "z": "d3e931130b911bb2",
        "name": "ON (grid input, charge batteries)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "3",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 830,
        "y": 360,
        "wires": [
            [
                "1898bb04.622815"
            ]
        ]
    },
    {
        "id": "f5995c2.c28a4a",
        "type": "change",
        "z": "d3e931130b911bb2",
        "name": "Inverter Only (no grid, use batteries)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "2",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 840,
        "y": 560,
        "wires": [
            [
                "1898bb04.622815"
            ]
        ]
    },
    {
        "id": "967c021a.4e981",
        "type": "switch",
        "z": "d3e931130b911bb2",
        "name": "SoC Switch",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "10",
                "vt": "str"
            },
            {
                "t": "lt",
                "v": "80",
                "vt": "str"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 370,
        "y": 440,
        "wires": [
            [
                "95d75091.0ac12",
                "bf8675a465a35e63"
            ],
            [
                "e174d8df.3ed888",
                "bae54df74c486be6"
            ],
            [
                "f5995c2.c28a4a",
                "53371c6c37ed5b47"
            ]
        ]
    },
    {
        "id": "1898bb04.622815",
        "type": "rbe",
        "z": "d3e931130b911bb2",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "property": "payload",
        "x": 1030,
        "y": 440,
        "wires": [
            [
                "7a66435e.a64fcc"
            ]
        ]
    },
    {
        "id": "e174d8df.3ed888",
        "type": "function",
        "z": "d3e931130b911bb2",
        "name": "night?",
        "func": "// get current hours\nconst hr = new Date().getHours();\n\n// trigger a message if the time is between 12am and 5.30am or 'night'\nif (hr >= 0 && hr <= 5.30) {\n    return [msg, null]; // input 1\n} else {\n    return [null, msg]; // input 2\n}\n",
        "outputs": 2,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 710,
        "y": 440,
        "wires": [
            [
                "95d75091.0ac12",
                "a1d168ddce2ecc7c"
            ],
            [
                "f5995c2.c28a4a",
                "78d91bfa423ebec2"
            ]
        ]
    },
    {
        "id": "2d94f28dd46b6ed8",
        "type": "victron-input-vebus",
        "z": "d3e931130b911bb2",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/ActiveInput",
                    "type": "enum",
                    "name": "Active input",
                    "enum": {
                        "0": "AC Input 1",
                        "1": "AC Input 2",
                        "240": "Disconnected"
                    }
                },
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/F",
                    "type": "float",
                    "name": "Input frequency 1 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/I",
                    "type": "float",
                    "name": "Input current phase 1 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/P",
                    "type": "float",
                    "name": "Input power 1 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/V",
                    "type": "float",
                    "name": "Input voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/F",
                    "type": "float",
                    "name": "Input frequency 2 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/I",
                    "type": "float",
                    "name": "Input current phase 2 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/P",
                    "type": "float",
                    "name": "Input power 2 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/V",
                    "type": "float",
                    "name": "Input voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/F",
                    "type": "float",
                    "name": "Input frequency 3 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/I",
                    "type": "float",
                    "name": "Input current phase 3 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/P",
                    "type": "float",
                    "name": "Input power 3 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/V",
                    "type": "float",
                    "name": "Input voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 1 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/In/2/CurrentLimit",
                    "type": "float",
                    "name": "Input 2 current limit (A)"
                },
                {
                    "path": "/Ac/In/2/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 2 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/NumberOfPhases",
                    "type": "float",
                    "name": "Phase count"
                },
                {
                    "path": "/Ac/Out/L1/F",
                    "type": "float",
                    "name": "Output frequency (Hz)"
                },
                {
                    "path": "/Ac/Out/L1/I",
                    "type": "float",
                    "name": "Output current phase 1 (A)"
                },
                {
                    "path": "/Ac/Out/L1/P",
                    "type": "float",
                    "name": "Output power 1 (W)"
                },
                {
                    "path": "/Ac/Out/L1/V",
                    "type": "float",
                    "name": "Output voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/Out/L2/I",
                    "type": "float",
                    "name": "Output current phase 2 (A)"
                },
                {
                    "path": "/Ac/Out/L2/P",
                    "type": "float",
                    "name": "Output power 2 (W)"
                },
                {
                    "path": "/Ac/Out/L2/V",
                    "type": "float",
                    "name": "Output voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/Out/L3/I",
                    "type": "float",
                    "name": "Output current phase 3 (A)"
                },
                {
                    "path": "/Ac/Out/L3/P",
                    "type": "float",
                    "name": "Output power 3 (W)"
                },
                {
                    "path": "/Ac/Out/L3/V",
                    "type": "float",
                    "name": "Output voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/State/IgnoreAcIn1",
                    "type": "enum",
                    "name": "AC input 1 ignored",
                    "enum": {
                        "0": "AC input not ignored",
                        "1": "AC input ignored"
                    }
                },
                {
                    "path": "/Alarms/GridLost",
                    "type": "enum",
                    "name": "Grid lost alarm",
                    "enum": {
                        "0": "Ok",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "Temperature",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Overload",
                    "type": "enum",
                    "name": "Overload alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Overload",
                    "type": "enum",
                    "name": "Overload alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Overload",
                    "type": "enum",
                    "name": "Overload alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowBattery",
                    "type": "enum",
                    "name": "Low battery",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/Overload",
                    "type": "enum",
                    "name": "Overload",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/PhaseRotation",
                    "type": "enum",
                    "name": "Phase Rotation",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning"
                    }
                },
                {
                    "path": "/Alarms/TemperatureSensor",
                    "type": "enum",
                    "name": "Temperatur sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/VoltageSensor",
                    "type": "enum",
                    "name": "Voltage sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Bms/AllowToCharge",
                    "type": "enum",
                    "name": "BMS allows battery to be charged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/AllowToDischarge",
                    "type": "enum",
                    "name": "BMS allows battery to be discharged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/BmsExpected",
                    "type": "enum",
                    "name": "VE.Bus BMS is expected",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/Error",
                    "type": "enum",
                    "name": "VE.Bus BMS error",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/Energy/AcIn1ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn1 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn1ToInverter",
                    "type": "float",
                    "name": "Energy AcIn1 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn2 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToInverter",
                    "type": "float",
                    "name": "Energy ACIn2 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn1",
                    "type": "float",
                    "name": "Energy AcOut to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn2",
                    "type": "float",
                    "name": "Energy AcOut to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn1",
                    "type": "float",
                    "name": "Energy Inverter to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn2",
                    "type": "float",
                    "name": "Energy Inverter to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcOut",
                    "type": "float",
                    "name": "Inverter To AcOut (kWh)"
                },
                {
                    "path": "/Energy/OutToInverter",
                    "type": "float",
                    "name": "AcOut to Inverter (kWh)"
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    }
                },
                {
                    "path": "/Hub4/Sustain",
                    "type": "enum",
                    "name": "Sustain active",
                    "enum": {
                        "0": "Sustain inactive",
                        "1": "Sustain active"
                    }
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    }
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    }
                },
                {
                    "path": "/ModeIsAdjustable",
                    "type": "enum",
                    "name": "Mode is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)"
                },
                {
                    "path": "/State",
                    "type": "enum",
                    "name": "VE.Bus state",
                    "enum": {
                        "0": "Off",
                        "1": "Low Power",
                        "2": "Fault",
                        "3": "Bulk",
                        "4": "Absorption",
                        "5": "Float",
                        "6": "Storage",
                        "7": "Equalize",
                        "8": "Passthru",
                        "9": "Inverting",
                        "10": "Power assist",
                        "11": "Power supply",
                        "252": "Bulk protect"
                    }
                },
                {
                    "path": "/VebusError",
                    "type": "enum",
                    "name": "VE.Bus Error",
                    "enum": {
                        "0": "No error",
                        "1": "VE.Bus Error 1: Device is switched off because one of the other phases in the system has switched off",
                        "2": "VE.Bus Error 2: New and old types MK2 are mixed in the system",
                        "3": "VE.Bus Error 3: Not all, or more than, the expected devices were found in the system",
                        "4": "VE.Bus Error 4: No other device whatsoever detected",
                        "5": "VE.Bus Error 5: Overvoltage on AC-out",
                        "6": "VE.Bus Error 6: Error in DDC Program",
                        "7": "VE.Bus Error 7:  BMS connected, which requires an Assistant, but no assistant found",
                        "8": "VE.Bus Error 8: Ground relay test failed",
                        "9": "VE.Bus Error 9",
                        "10": "VE.Bus Error 10: System time synchronisation problem occurred",
                        "11": "VE.Bus Error 11: Relay test fault",
                        "12": "VE.Bus Error 12",
                        "13": "VE.Bus Error 13",
                        "14": "VE.Bus Error 14: Device cannot transmit data",
                        "15": "VE.Bus Error 15",
                        "16": "VE.Bus Error 16: Awaiting configuration or dongle missing",
                        "17": "VE.Bus Error 17: Phase master missing",
                        "18": "VE.Bus Error 18: AC Overvoltage on the output of a slave has occurred while already switched off",
                        "19": "VE.Bus Error 19",
                        "20": "VE.Bus Error 20",
                        "21": "VE.Bus Error 21",
                        "22": "VE.Bus Error 22: This device cannot function as slave",
                        "23": "VE.Bus Error 23",
                        "24": "VE.Bus Error 24: Switch-over system protection initiated",
                        "25": "VE.Bus Error 25: Firmware incompatibility. The firmware of one of the connected device is not sufficiently up to date to operate in conjunction with this device",
                        "26": "VE.Bus Error 26: Internal error",
                        "27": "VE.Bus Error 27",
                        "28": "VE.Bus Error 28",
                        "29": "VE.Bus Error 29",
                        "30": "VE.Bus Error 30",
                        "31": "VE.Bus Error 31",
                        "32": "VE.Bus Error 32"
                    }
                }
            ]
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "VE.Bus state of charge (%)"
        },
        "initial": "",
        "name": "",
        "x": 130,
        "y": 440,
        "wires": [
            [
                "967c021a.4e981"
            ]
        ]
    },
    {
        "id": "bf8675a465a35e63",
        "type": "debug",
        "z": "d3e931130b911bb2",
        "name": "debug 5",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 680,
        "y": 240,
        "wires": []
    },
    {
        "id": "bae54df74c486be6",
        "type": "debug",
        "z": "d3e931130b911bb2",
        "name": "debug 6",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 560,
        "y": 440,
        "wires": []
    },
    {
        "id": "53371c6c37ed5b47",
        "type": "debug",
        "z": "d3e931130b911bb2",
        "name": "debug 7",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 540,
        "y": 600,
        "wires": []
    },
    {
        "id": "a1d168ddce2ecc7c",
        "type": "debug",
        "z": "d3e931130b911bb2",
        "name": "debug 8",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 880,
        "y": 400,
        "wires": []
    },
    {
        "id": "78d91bfa423ebec2",
        "type": "debug",
        "z": "d3e931130b911bb2",
        "name": "debug 9",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 880,
        "y": 500,
        "wires": []
    },
    {
        "id": "5ec4f55d9b0754c3",
        "type": "victron-input-vebus",
        "z": "d3e931130b911bb2",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Alarms/Overload",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/ActiveInput",
                    "type": "enum",
                    "name": "Active input",
                    "enum": {
                        "0": "AC Input 1",
                        "1": "AC Input 2",
                        "240": "Disconnected"
                    }
                },
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/F",
                    "type": "float",
                    "name": "Input frequency 1 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/I",
                    "type": "float",
                    "name": "Input current phase 1 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/P",
                    "type": "float",
                    "name": "Input power 1 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L1/V",
                    "type": "float",
                    "name": "Input voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/F",
                    "type": "float",
                    "name": "Input frequency 2 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/I",
                    "type": "float",
                    "name": "Input current phase 2 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/P",
                    "type": "float",
                    "name": "Input power 2 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L2/V",
                    "type": "float",
                    "name": "Input voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/F",
                    "type": "float",
                    "name": "Input frequency 3 (Hz)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/I",
                    "type": "float",
                    "name": "Input current phase 3 (A)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/P",
                    "type": "float",
                    "name": "Input power 3 (W)"
                },
                {
                    "path": "/Ac/ActiveIn/L3/V",
                    "type": "float",
                    "name": "Input voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)"
                },
                {
                    "path": "/Ac/In/1/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 1 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/In/2/CurrentLimit",
                    "type": "float",
                    "name": "Input 2 current limit (A)"
                },
                {
                    "path": "/Ac/In/2/CurrentLimitIsAdjustable",
                    "type": "enum",
                    "name": "Input 2 current limit is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Ac/NumberOfPhases",
                    "type": "float",
                    "name": "Phase count"
                },
                {
                    "path": "/Ac/Out/L1/F",
                    "type": "float",
                    "name": "Output frequency (Hz)"
                },
                {
                    "path": "/Ac/Out/L1/I",
                    "type": "float",
                    "name": "Output current phase 1 (A)"
                },
                {
                    "path": "/Ac/Out/L1/P",
                    "type": "float",
                    "name": "Output power 1 (W)"
                },
                {
                    "path": "/Ac/Out/L1/V",
                    "type": "float",
                    "name": "Output voltage phase 1 (VAC)"
                },
                {
                    "path": "/Ac/Out/L2/I",
                    "type": "float",
                    "name": "Output current phase 2 (A)"
                },
                {
                    "path": "/Ac/Out/L2/P",
                    "type": "float",
                    "name": "Output power 2 (W)"
                },
                {
                    "path": "/Ac/Out/L2/V",
                    "type": "float",
                    "name": "Output voltage phase 2 (VAC)"
                },
                {
                    "path": "/Ac/Out/L3/I",
                    "type": "float",
                    "name": "Output current phase 3 (A)"
                },
                {
                    "path": "/Ac/Out/L3/P",
                    "type": "float",
                    "name": "Output power 3 (W)"
                },
                {
                    "path": "/Ac/Out/L3/V",
                    "type": "float",
                    "name": "Output voltage phase 3 (VAC)"
                },
                {
                    "path": "/Ac/State/IgnoreAcIn1",
                    "type": "enum",
                    "name": "AC input 1 ignored",
                    "enum": {
                        "0": "AC input not ignored",
                        "1": "AC input ignored"
                    }
                },
                {
                    "path": "/Alarms/GridLost",
                    "type": "enum",
                    "name": "Grid lost alarm",
                    "enum": {
                        "0": "Ok",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/HighTemperature",
                    "type": "enum",
                    "name": "Temperature",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Overload",
                    "type": "enum",
                    "name": "Overload alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L1/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L1",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Overload",
                    "type": "enum",
                    "name": "Overload alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L2/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L2",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/HighTemperature",
                    "type": "enum",
                    "name": "Temperature alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/LowBattery",
                    "type": "enum",
                    "name": "Low battery alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Overload",
                    "type": "enum",
                    "name": "Overload alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/L3/Ripple",
                    "type": "enum",
                    "name": "Ripple alarm L3",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/LowBattery",
                    "type": "enum",
                    "name": "Low battery",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/Overload",
                    "type": "enum",
                    "name": "Overload",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/PhaseRotation",
                    "type": "enum",
                    "name": "Phase Rotation",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning"
                    }
                },
                {
                    "path": "/Alarms/TemperatureSensor",
                    "type": "enum",
                    "name": "Temperatur sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Alarms/VoltageSensor",
                    "type": "enum",
                    "name": "Voltage sensor alarm",
                    "enum": {
                        "0": "Ok",
                        "1": "Warning",
                        "2": "Alarm"
                    }
                },
                {
                    "path": "/Bms/AllowToCharge",
                    "type": "enum",
                    "name": "BMS allows battery to be charged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/AllowToDischarge",
                    "type": "enum",
                    "name": "BMS allows battery to be discharged",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/BmsExpected",
                    "type": "enum",
                    "name": "VE.Bus BMS is expected",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Bms/Error",
                    "type": "enum",
                    "name": "VE.Bus BMS error",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Dc/0/Current",
                    "type": "float",
                    "name": "Current (A)"
                },
                {
                    "path": "/Dc/0/Temperature",
                    "type": "float",
                    "name": "Temperature (C)"
                },
                {
                    "path": "/Dc/0/Voltage",
                    "type": "float",
                    "name": "Voltage (V)"
                },
                {
                    "path": "/Energy/AcIn1ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn1 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn1ToInverter",
                    "type": "float",
                    "name": "Energy AcIn1 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToAcOut",
                    "type": "float",
                    "name": "Energy ACIn2 to AcOut (kWh)"
                },
                {
                    "path": "/Energy/AcIn2ToInverter",
                    "type": "float",
                    "name": "Energy ACIn2 to Inverter (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn1",
                    "type": "float",
                    "name": "Energy AcOut to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/AcOutToAcIn2",
                    "type": "float",
                    "name": "Energy AcOut to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn1",
                    "type": "float",
                    "name": "Energy Inverter to AcIn1 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcIn2",
                    "type": "float",
                    "name": "Energy Inverter to AcIn2 (kWh)"
                },
                {
                    "path": "/Energy/InverterToAcOut",
                    "type": "float",
                    "name": "Inverter To AcOut (kWh)"
                },
                {
                    "path": "/Energy/OutToInverter",
                    "type": "float",
                    "name": "AcOut to Inverter (kWh)"
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    }
                },
                {
                    "path": "/Hub4/Sustain",
                    "type": "enum",
                    "name": "Sustain active",
                    "enum": {
                        "0": "Sustain inactive",
                        "1": "Sustain active"
                    }
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    }
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    }
                },
                {
                    "path": "/ModeIsAdjustable",
                    "type": "enum",
                    "name": "Mode is adjustable",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    }
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)"
                },
                {
                    "path": "/State",
                    "type": "enum",
                    "name": "VE.Bus state",
                    "enum": {
                        "0": "Off",
                        "1": "Low Power",
                        "2": "Fault",
                        "3": "Bulk",
                        "4": "Absorption",
                        "5": "Float",
                        "6": "Storage",
                        "7": "Equalize",
                        "8": "Passthru",
                        "9": "Inverting",
                        "10": "Power assist",
                        "11": "Power supply",
                        "252": "Bulk protect"
                    }
                },
                {
                    "path": "/VebusError",
                    "type": "enum",
                    "name": "VE.Bus Error",
                    "enum": {
                        "0": "No error",
                        "1": "VE.Bus Error 1: Device is switched off because one of the other phases in the system has switched off",
                        "2": "VE.Bus Error 2: New and old types MK2 are mixed in the system",
                        "3": "VE.Bus Error 3: Not all, or more than, the expected devices were found in the system",
                        "4": "VE.Bus Error 4: No other device whatsoever detected",
                        "5": "VE.Bus Error 5: Overvoltage on AC-out",
                        "6": "VE.Bus Error 6: Error in DDC Program",
                        "7": "VE.Bus Error 7:  BMS connected, which requires an Assistant, but no assistant found",
                        "8": "VE.Bus Error 8: Ground relay test failed",
                        "9": "VE.Bus Error 9",
                        "10": "VE.Bus Error 10: System time synchronisation problem occurred",
                        "11": "VE.Bus Error 11: Relay test fault",
                        "12": "VE.Bus Error 12",
                        "13": "VE.Bus Error 13",
                        "14": "VE.Bus Error 14: Device cannot transmit data",
                        "15": "VE.Bus Error 15",
                        "16": "VE.Bus Error 16: Awaiting configuration or dongle missing",
                        "17": "VE.Bus Error 17: Phase master missing",
                        "18": "VE.Bus Error 18: AC Overvoltage on the output of a slave has occurred while already switched off",
                        "19": "VE.Bus Error 19",
                        "20": "VE.Bus Error 20",
                        "21": "VE.Bus Error 21",
                        "22": "VE.Bus Error 22: This device cannot function as slave",
                        "23": "VE.Bus Error 23",
                        "24": "VE.Bus Error 24: Switch-over system protection initiated",
                        "25": "VE.Bus Error 25: Firmware incompatibility. The firmware of one of the connected device is not sufficiently up to date to operate in conjunction with this device",
                        "26": "VE.Bus Error 26: Internal error",
                        "27": "VE.Bus Error 27",
                        "28": "VE.Bus Error 28",
                        "29": "VE.Bus Error 29",
                        "30": "VE.Bus Error 30",
                        "31": "VE.Bus Error 31",
                        "32": "VE.Bus Error 32"
                    }
                }
            ]
        },
        "pathObj": {
            "path": "/Alarms/Overload",
            "type": "enum",
            "name": "Overload",
            "enum": {
                "0": "Ok",
                "1": "Warning",
                "2": "Alarm"
            }
        },
        "initial": "",
        "name": "",
        "x": 100,
        "y": 900,
        "wires": [
            [
                "15bc17e1c4714d81"
            ]
        ]
    },
    {
        "id": "2946e0c8aed3af65",
        "type": "victron-output-vebus",
        "z": "d3e931130b911bb2",
        "service": "com.victronenergy.vebus.ttyS4",
        "path": "/Mode",
        "serviceObj": {
            "service": "com.victronenergy.vebus.ttyS4",
            "name": "MP2",
            "paths": [
                {
                    "path": "/Ac/ActiveIn/CurrentLimit",
                    "type": "float",
                    "name": "Active input current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Ac/In/1/CurrentLimit",
                    "type": "float",
                    "name": "Input 1 current limit (A)",
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableCharge",
                    "type": "enum",
                    "name": "ESS disable charge flag phase",
                    "enum": {
                        "0": "Charge allowed",
                        "1": "Charge disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DisableFeedIn",
                    "type": "enum",
                    "name": "ESS disable feedback flag phase",
                    "enum": {
                        "0": "Feed in allowed",
                        "1": "Feed in disabled"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/DoNotFeedInOvervoltage",
                    "type": "enum",
                    "name": "Feed DC overvoltage into grid",
                    "enum": {
                        "0": "Feed in overvoltage",
                        "1": "Do not feed in overvoltage"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/FixSolarOffsetTo100mV",
                    "type": "enum",
                    "name": "Solar offset voltage",
                    "enum": {
                        "0": "OvervoltageFeedIn uses 1V offset",
                        "1": "OvervoltageFeedIn uses 0.1V offset"
                    },
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L1/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L1 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L2/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L2 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/AcPowerSetpoint",
                    "type": "float",
                    "name": "ESS power setpoint phase 3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/L3/MaxFeedInPower",
                    "type": "float",
                    "name": "Maximum overvoltage feed-in power L3 (W)",
                    "writable": true
                },
                {
                    "path": "/Hub4/TargetPowerIsMaxFeedIn",
                    "type": "enum",
                    "name": "AcPowerSetpoint acts as feed-in limit",
                    "enum": {
                        "0": "AcPowerSetpoint interpreted normally",
                        "1": "AcPowerSetpoint is OvervoltageFeedIn limit"
                    },
                    "writable": true
                },
                {
                    "path": "/Mode",
                    "type": "enum",
                    "name": "Switch Position",
                    "enum": {
                        "1": "Charger Only",
                        "2": "Inverter Only",
                        "3": "On",
                        "4": "Off"
                    },
                    "writable": true
                },
                {
                    "path": "/PvInverter/Disable",
                    "type": "enum",
                    "name": "Disable PV inverter",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                },
                {
                    "path": "/Soc",
                    "type": "float",
                    "name": "VE.Bus state of charge (%)",
                    "writable": true
                },
                {
                    "path": "/SystemReset",
                    "type": "enum",
                    "name": "VE.Bus Reset",
                    "enum": {
                        "0": "No",
                        "1": "Yes"
                    },
                    "writable": true
                }
            ]
        },
        "pathObj": {
            "path": "/Mode",
            "type": "enum",
            "name": "Switch Position",
            "enum": {
                "1": "Charger Only",
                "2": "Inverter Only",
                "3": "On",
                "4": "Off"
            },
            "writable": true
        },
        "initial": "",
        "name": "",
        "x": 800,
        "y": 900,
        "wires": []
    },
    {
        "id": "15bc17e1c4714d81",
        "type": "switch",
        "z": "d3e931130b911bb2",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            },
            {
                "t": "neq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 270,
        "y": 900,
        "wires": [
            [
                "a5e8aa8bbe2e2859"
            ],
            [
                "4105833820198e2f"
            ]
        ]
    },
    {
        "id": "4105833820198e2f",
        "type": "change",
        "z": "d3e931130b911bb2",
        "name": "ON (grid input, charge batteries)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "3",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 490,
        "y": 980,
        "wires": [
            [
                "2946e0c8aed3af65"
            ]
        ]
    },
    {
        "id": "a5e8aa8bbe2e2859",
        "type": "change",
        "z": "d3e931130b911bb2",
        "name": "Inverter Only (no grid, use batteries)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "2",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 500,
        "y": 820,
        "wires": [
            [
                "2946e0c8aed3af65"
            ]
        ]
    }
]
Node-RED
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers