Victron GX Relay MPPT nodes

Trying hard to achieve the Next:

Have got 4 nodes:
MPPT
AC-In
Battery SoC
Relay node.

What I want:
MPPT gives over 200W for 2 minutes: Relay turns on.
condition: Battery needs to above 80%.
If Battery gets below 70% or MPPT under 200W (for 5 minutes), relay needs to turn off.

If AC in is detected, all needs to be overwritten and relay needs to turn on.

I've got this:

[
    {
        "id": "c4aa7f38eacaf413",
        "type": "victron-input-battery",
        "z": "87ebc29a0e4cc01e",
        "service": "com.victronenergy.battery/277",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/277",
            "name": "Hoofd Batterij"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "SoC",
        "onlyChanges": false,
        "roundValues": "0",
        "x": 70,
        "y": 340,
        "wires": [
            [
                "e136c3e354ea899d"
            ]
        ]
    },
    {
        "id": "02361eb237892a7b",
        "type": "victron-input-system",
        "z": "87ebc29a0e4cc01e",
        "service": "com.victronenergy.system/0",
        "path": "/Dc/Pv/Power",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus system"
        },
        "pathObj": {
            "path": "/Dc/Pv/Power",
            "type": "float",
            "name": "MPPTs - power (W)"
        },
        "name": "MPPT",
        "onlyChanges": false,
        "roundValues": "0",
        "x": 70,
        "y": 60,
        "wires": [
            [
                "536f43f1fb9f4351"
            ]
        ]
    },
    {
        "id": "536f43f1fb9f4351",
        "type": "switch",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "199",
                "vt": "num"
            },
            {
                "t": "gte",
                "v": "200",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 270,
        "y": 60,
        "wires": [
            [
                "8d7ee1b67e05e7ca"
            ],
            [
                "3c9c63645eca3436"
            ]
        ]
    },
    {
        "id": "8d7ee1b67e05e7ca",
        "type": "change",
        "z": "87ebc29a0e4cc01e",
        "name": "mppt 0",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 450,
        "y": 20,
        "wires": [
            [
                "4c582424c7da6360",
                "b347511a65624c59",
                "3c0f9b1247cc901d"
            ]
        ]
    },
    {
        "id": "3c9c63645eca3436",
        "type": "change",
        "z": "87ebc29a0e4cc01e",
        "name": "mppt 1",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 450,
        "y": 100,
        "wires": [
            [
                "811d363f7da95da6"
            ]
        ]
    },
    {
        "id": "b347511a65624c59",
        "type": "debug",
        "z": "87ebc29a0e4cc01e",
        "name": "Boiler aan uit",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1030,
        "y": 60,
        "wires": []
    },
    {
        "id": "3c0f9b1247cc901d",
        "type": "victron-output-relay",
        "z": "87ebc29a0e4cc01e",
        "service": "com.victronenergy.system/0",
        "path": "/Relay/0/State",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus device"
        },
        "pathObj": {
            "path": "/Relay/0/State",
            "type": "enum",
            "name": "Venus relay 1 state",
            "enum": {
                "0": "Open",
                "1": "Closed"
            },
            "writable": true
        },
        "initial": "0",
        "name": "Relay 1 Boiler",
        "onlyChanges": false,
        "x": 1280,
        "y": 160,
        "wires": []
    },
    {
        "id": "a9819cbaa37c7682",
        "type": "debug",
        "z": "87ebc29a0e4cc01e",
        "name": "SoC debug",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 340,
        "wires": []
    },
    {
        "id": "2c1483741e6c7ac9",
        "type": "inject",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2001",
        "payloadType": "num",
        "x": 70,
        "y": 120,
        "wires": [
            [
                "536f43f1fb9f4351"
            ]
        ]
    },
    {
        "id": "811d363f7da95da6",
        "type": "switch",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "property": "SoC",
        "propertyType": "flow",
        "rules": [
            {
                "t": "gte",
                "v": "80",
                "vt": "str"
            },
            {
                "t": "lte",
                "v": "79",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 610,
        "y": 100,
        "wires": [
            [
                "b347511a65624c59",
                "3c0f9b1247cc901d"
            ],
            [
                "55278b772cebd086"
            ]
        ]
    },
    {
        "id": "4d2df5d0ae5a2c24",
        "type": "inject",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "199",
        "payloadType": "num",
        "x": 90,
        "y": 160,
        "wires": [
            [
                "536f43f1fb9f4351"
            ]
        ]
    },
    {
        "id": "4c582424c7da6360",
        "type": "delay",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "pauseType": "delay",
        "timeout": "120",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 630,
        "y": 20,
        "wires": [
            [
                "b347511a65624c59",
                "256a618b80425695"
            ]
        ]
    },
    {
        "id": "9b609f1ec885755e",
        "type": "inject",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "79",
        "payloadType": "num",
        "x": 70,
        "y": 400,
        "wires": [
            [
                "e136c3e354ea899d"
            ]
        ]
    },
    {
        "id": "2361db03bc3ca635",
        "type": "inject",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "81",
        "payloadType": "num",
        "x": 70,
        "y": 460,
        "wires": [
            [
                "e136c3e354ea899d"
            ]
        ]
    },
    {
        "id": "e136c3e354ea899d",
        "type": "change",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "SoC",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 270,
        "y": 340,
        "wires": [
            [
                "a9819cbaa37c7682"
            ]
        ]
    },
    {
        "id": "55278b772cebd086",
        "type": "change",
        "z": "87ebc29a0e4cc01e",
        "name": "mppt 0",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 750,
        "y": 140,
        "wires": [
            [
                "b347511a65624c59",
                "3c0f9b1247cc901d"
            ]
        ]
    },
    {
        "id": "29e3ba7f289f1da4",
        "type": "victron-input-system",
        "z": "87ebc29a0e4cc01e",
        "service": "com.victronenergy.system/0",
        "path": "/Ac/ActiveIn/Source",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus system"
        },
        "pathObj": {
            "path": "/Ac/ActiveIn/Source",
            "type": "enum",
            "name": "AC-Input",
            "enum": {
                "0": "Not available",
                "1": "Grid",
                "2": "Generator",
                "3": "Shore",
                "240": "Inverting"
            }
        },
        "initial": "",
        "name": "",
        "onlyChanges": false,
        "x": 310,
        "y": 180,
        "wires": [
            [
                "2a404f90e96d8554",
                "3c0f9b1247cc901d"
            ]
        ]
    },
    {
        "id": "2a404f90e96d8554",
        "type": "change",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "AC-Input",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 550,
        "y": 240,
        "wires": [
            []
        ]
    },
    {
        "id": "256a618b80425695",
        "type": "switch",
        "z": "87ebc29a0e4cc01e",
        "name": "",
        "property": "AC-Input",
        "propertyType": "flow",
        "rules": [
            {
                "t": "eq",
                "v": "0",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 1010,
        "y": 100,
        "wires": [
            [
                "3c0f9b1247cc901d"
            ]
        ]
    }
]

I was used to make automations with Home Assistant, but since it's only one relay I want to manage, I hope I get this done in Node-RED (implemented in Venus OS Large)

Who can help me out?

Here is an example that may help you work out something, hope it helps

[{"id":"81f4d87c20c4d758","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7700,"wires":[["5c965611bf7ff3c5","5c09e5c9c27b10c5","ecce5b9b781a7d11"]]},{"id":"26cc4800f33d99d7","type":"switch","z":"d1395164b4eec73e","name":"","property":"payload.ac","propertyType":"msg","rules":[{"t":"true"},{"t":"jsonata_exp","v":"$$.payload.mppt >= 200 and \t$$.payload.battery >= 80","vt":"jsonata"},{"t":"jsonata_exp","v":"($$.payload.mppt < 200 or\t$$.payload.battery < 70) and \t$$.payload.ac = false\t","vt":"jsonata"},{"t":"else"}],"checkall":"false","repair":false,"outputs":4,"x":490,"y":7740,"wires":[["81f4d87c20c4d758"],["8fab012bf963a57a"],["6a0575f94e0a487b"],[]]},{"id":"5c965611bf7ff3c5","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"300","extend":false,"overrideDelay":false,"units":"s","reset":"true","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7780,"wires":[["9598aa3195aece67"]]},{"id":"5c09e5c9c27b10c5","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7700,"wires":[["9598aa3195aece67"]]},{"id":"ecce5b9b781a7d11","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"120","extend":false,"overrideDelay":false,"units":"s","reset":"false","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7740,"wires":[["9598aa3195aece67"]]},{"id":"47e2ae08c0783ef2","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":370,"y":7740,"wires":[["26cc4800f33d99d7","d9b46580a97b013c"]]},{"id":"8fab012bf963a57a","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7740,"wires":[["ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"6a0575f94e0a487b","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7780,"wires":[["5c965611bf7ff3c5","ecce5b9b781a7d11"]]},{"id":"8958b15d4001f468","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7840,"wires":[["da4ccf2cc424c608","ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"9598aa3195aece67","type":"rbe","z":"d1395164b4eec73e","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1070,"y":7780,"wires":[["a1a5056e652a7b19"]]},{"id":"2c1483741e6c7ac9","type":"inject","z":"d1395164b4eec73e","name":"mppt in 2001","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"2001","payloadType":"num","x":210,"y":7580,"wires":[["47e2ae08c0783ef2"]]},{"id":"9b609f1ec885755e","type":"inject","z":"d1395164b4eec73e","name":"battery 69","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"69","payloadType":"num","x":220,"y":7800,"wires":[["47e2ae08c0783ef2"]]},{"id":"2361db03bc3ca635","type":"inject","z":"d1395164b4eec73e","name":"battery 81","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"81","payloadType":"num","x":220,"y":7840,"wires":[["47e2ae08c0783ef2"]]},{"id":"aab67430ff03b7c4","type":"inject","z":"d1395164b4eec73e","name":"ac true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"true","payloadType":"bool","x":210,"y":7700,"wires":[["47e2ae08c0783ef2"]]},{"id":"4d2df5d0ae5a2c24","type":"inject","z":"d1395164b4eec73e","name":"mppt in 199","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"199","payloadType":"num","x":210,"y":7620,"wires":[["47e2ae08c0783ef2"]]},{"id":"d16839b5d96e2057","type":"inject","z":"d1395164b4eec73e","name":"ac false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"false","payloadType":"bool","x":210,"y":7740,"wires":[["47e2ae08c0783ef2"]]},{"id":"d9b46580a97b013c","type":"debug","z":"d1395164b4eec73e","name":"debug 2486","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":7620,"wires":[]},{"id":"da4ccf2cc424c608","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7820,"wires":[["9598aa3195aece67"]]},{"id":"a1a5056e652a7b19","type":"debug","z":"d1395164b4eec73e","name":"relay","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1110,"y":7720,"wires":[]}]

Awsome! Thank you so much!

Summary

But unfortunatly the Join doesn't work... No output in your debug.

If I add a debug right after the MPPT-node it gives:

24-3-2024 13:52:44node: debug 2487
mppt : msg.payload : number
256

Battery gives:

24-3-2024 13:55:25node: debug 2488
battery : msg.payload : number
98

(Sorry AC was not connected, so the 3 different inputs of join didn't achieve)

And one other thing I need to change:
The AC node gives:
0 - Not available
1 - Grid
2 - Generator
3 - Shore
240 - Inverting

I Only use 0, 1 and 240.
The relay should only work when output is 1.

Summary

And for additional info: The relay only excepts:
0 = off
1 = on

Managed this with a change node in the end. So works!

How should I manage?

One extra question:

You made in the switch node an "otherwise" on output 4.
This one is not connected to the lower set.message.reset. Should this be connected? What does it do?

If you look at inject nodes each one has a msg.topic. If you add your victron nodes, each will need a change node to set the topic, unless victron node allow a topic to be set.

edited flow to handle ac "grid" and output 0 or 1.

[{"id":"2c1483741e6c7ac9","type":"inject","z":"d1395164b4eec73e","name":"mppt in 2001","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"2001","payloadType":"num","x":210,"y":7580,"wires":[["47e2ae08c0783ef2"]]},{"id":"47e2ae08c0783ef2","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":370,"y":7740,"wires":[["26cc4800f33d99d7","d9b46580a97b013c"]]},{"id":"9b609f1ec885755e","type":"inject","z":"d1395164b4eec73e","name":"battery 69","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"69","payloadType":"num","x":220,"y":7800,"wires":[["47e2ae08c0783ef2"]]},{"id":"2361db03bc3ca635","type":"inject","z":"d1395164b4eec73e","name":"battery 81","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"81","payloadType":"num","x":220,"y":7840,"wires":[["47e2ae08c0783ef2"]]},{"id":"aab67430ff03b7c4","type":"inject","z":"d1395164b4eec73e","name":"ac true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"Grid","payloadType":"str","x":210,"y":7700,"wires":[["47e2ae08c0783ef2"]]},{"id":"4d2df5d0ae5a2c24","type":"inject","z":"d1395164b4eec73e","name":"mppt in 199","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"199","payloadType":"num","x":210,"y":7620,"wires":[["47e2ae08c0783ef2"]]},{"id":"d16839b5d96e2057","type":"inject","z":"d1395164b4eec73e","name":"ac false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"other values","payloadType":"str","x":210,"y":7740,"wires":[["47e2ae08c0783ef2"]]},{"id":"26cc4800f33d99d7","type":"switch","z":"d1395164b4eec73e","name":"","property":"payload.ac","propertyType":"msg","rules":[{"t":"eq","v":"Grid","vt":"str"},{"t":"jsonata_exp","v":"$$.payload.mppt >= 200 and \t$$.payload.battery >= 80","vt":"jsonata"},{"t":"jsonata_exp","v":"($$.payload.mppt < 200 or\t$$.payload.battery < 70) and \t$$.payload.ac != \"Grid\"\t","vt":"jsonata"},{"t":"else"}],"checkall":"false","repair":false,"outputs":4,"x":490,"y":7740,"wires":[["81f4d87c20c4d758"],["8fab012bf963a57a"],["6a0575f94e0a487b"],[]]},{"id":"d9b46580a97b013c","type":"debug","z":"d1395164b4eec73e","name":"debug 2486","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":7620,"wires":[]},{"id":"81f4d87c20c4d758","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7700,"wires":[["5c965611bf7ff3c5","5c09e5c9c27b10c5","ecce5b9b781a7d11"]]},{"id":"8fab012bf963a57a","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7740,"wires":[["ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"6a0575f94e0a487b","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7780,"wires":[["5c965611bf7ff3c5","ecce5b9b781a7d11"]]},{"id":"5c965611bf7ff3c5","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"300","extend":false,"overrideDelay":false,"units":"s","reset":"1","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7780,"wires":[["9598aa3195aece67"]]},{"id":"5c09e5c9c27b10c5","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7700,"wires":[["9598aa3195aece67"]]},{"id":"ecce5b9b781a7d11","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"120","extend":false,"overrideDelay":false,"units":"s","reset":"0","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7740,"wires":[["9598aa3195aece67"]]},{"id":"8958b15d4001f468","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7840,"wires":[["da4ccf2cc424c608","ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"9598aa3195aece67","type":"rbe","z":"d1395164b4eec73e","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1070,"y":7780,"wires":[["a1a5056e652a7b19"]]},{"id":"da4ccf2cc424c608","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7820,"wires":[["9598aa3195aece67"]]},{"id":"a1a5056e652a7b19","type":"debug","z":"d1395164b4eec73e","name":"relay","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1110,"y":7720,"wires":[]}]

or is it ac 1

[{"id":"2c1483741e6c7ac9","type":"inject","z":"d1395164b4eec73e","name":"mppt in 2001","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"2001","payloadType":"num","x":210,"y":7580,"wires":[["47e2ae08c0783ef2"]]},{"id":"47e2ae08c0783ef2","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":370,"y":7740,"wires":[["26cc4800f33d99d7","d9b46580a97b013c"]]},{"id":"9b609f1ec885755e","type":"inject","z":"d1395164b4eec73e","name":"battery 69","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"69","payloadType":"num","x":220,"y":7800,"wires":[["47e2ae08c0783ef2"]]},{"id":"2361db03bc3ca635","type":"inject","z":"d1395164b4eec73e","name":"battery 81","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"battery","payload":"81","payloadType":"num","x":220,"y":7840,"wires":[["47e2ae08c0783ef2"]]},{"id":"aab67430ff03b7c4","type":"inject","z":"d1395164b4eec73e","name":"ac true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"1","payloadType":"num","x":210,"y":7700,"wires":[["47e2ae08c0783ef2"]]},{"id":"4d2df5d0ae5a2c24","type":"inject","z":"d1395164b4eec73e","name":"mppt in 199","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mppt","payload":"199","payloadType":"num","x":210,"y":7620,"wires":[["47e2ae08c0783ef2"]]},{"id":"d16839b5d96e2057","type":"inject","z":"d1395164b4eec73e","name":"ac false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ac","payload":"other values","payloadType":"str","x":210,"y":7740,"wires":[["47e2ae08c0783ef2"]]},{"id":"26cc4800f33d99d7","type":"switch","z":"d1395164b4eec73e","name":"","property":"payload.ac","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"jsonata_exp","v":"$$.payload.mppt >= 200 and \t$$.payload.battery >= 80","vt":"jsonata"},{"t":"jsonata_exp","v":"($$.payload.mppt < 200 or\t$$.payload.battery < 70) and \t$$.payload.ac != 1\t","vt":"jsonata"},{"t":"else"}],"checkall":"false","repair":false,"outputs":4,"x":490,"y":7740,"wires":[["81f4d87c20c4d758"],["8fab012bf963a57a"],["6a0575f94e0a487b"],[]]},{"id":"d9b46580a97b013c","type":"debug","z":"d1395164b4eec73e","name":"debug 2486","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":7620,"wires":[]},{"id":"81f4d87c20c4d758","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7700,"wires":[["5c965611bf7ff3c5","5c09e5c9c27b10c5","ecce5b9b781a7d11"]]},{"id":"8fab012bf963a57a","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7740,"wires":[["ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"6a0575f94e0a487b","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7780,"wires":[["5c965611bf7ff3c5","ecce5b9b781a7d11"]]},{"id":"5c965611bf7ff3c5","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"300","extend":false,"overrideDelay":false,"units":"s","reset":"1","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7780,"wires":[["1364bf09d7ca87c0"]]},{"id":"5c09e5c9c27b10c5","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"},{"t":"delete","p":"reset","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7700,"wires":[["1364bf09d7ca87c0"]]},{"id":"ecce5b9b781a7d11","type":"trigger","z":"d1395164b4eec73e","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"120","extend":false,"overrideDelay":false,"units":"s","reset":"0","bytopic":"all","topic":"topic","outputs":1,"x":870,"y":7740,"wires":[["1364bf09d7ca87c0"]]},{"id":"8958b15d4001f468","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":7840,"wires":[["da4ccf2cc424c608","ecce5b9b781a7d11","5c965611bf7ff3c5"]]},{"id":"1364bf09d7ca87c0","type":"rbe","z":"d1395164b4eec73e","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":1130,"y":7840,"wires":[["a1a5056e652a7b19"]]},{"id":"da4ccf2cc424c608","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":7840,"wires":[["1364bf09d7ca87c0"]]},{"id":"a1a5056e652a7b19","type":"debug","z":"d1395164b4eec73e","name":"relay","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1110,"y":7720,"wires":[]}]

[edit] fixed typo in swutch node !=

Cool!

All seems to work now!

I adjusted it a little bit for who ever wants to do the same in the future:

[
    {
        "id": "c953fd15a712a9b8",
        "type": "tab",
        "label": "Flow",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "3cc249daca1d40c6",
        "type": "victron-input-system",
        "z": "c953fd15a712a9b8",
        "service": "com.victronenergy.system/0",
        "path": "/Dc/Pv/Power",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus system"
        },
        "pathObj": {
            "path": "/Dc/Pv/Power",
            "type": "float",
            "name": "MPPTs - power (W)"
        },
        "name": "mppt",
        "onlyChanges": false,
        "roundValues": "0",
        "x": 130,
        "y": 280,
        "wires": [
            [
                "8eeb2ded47b7bf2e",
                "2647805b351a2e5b"
            ]
        ]
    },
    {
        "id": "9abd2f6636fef1f2",
        "type": "victron-input-system",
        "z": "c953fd15a712a9b8",
        "service": "com.victronenergy.system/0",
        "path": "/Ac/ActiveIn/Source",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus system"
        },
        "pathObj": {
            "path": "/Ac/ActiveIn/Source",
            "type": "enum",
            "name": "AC-Input",
            "enum": {
                "0": "Not available",
                "1": "Grid",
                "2": "Generator",
                "3": "Shore",
                "240": "Inverting"
            }
        },
        "initial": "",
        "name": "ac",
        "onlyChanges": false,
        "x": 110,
        "y": 440,
        "wires": [
            [
                "8eeb2ded47b7bf2e",
                "4d8cb5d6b147e242"
            ]
        ]
    },
    {
        "id": "e3f03ee07195c0e8",
        "type": "victron-input-battery",
        "z": "c953fd15a712a9b8",
        "service": "com.victronenergy.battery/277",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/277",
            "name": "Hoofd Batterij"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "battery",
        "onlyChanges": false,
        "roundValues": "0",
        "x": 110,
        "y": 700,
        "wires": [
            [
                "8eeb2ded47b7bf2e",
                "ff4e6b2cb0caa2c7"
            ]
        ]
    },
    {
        "id": "cd50f8565106ef7a",
        "type": "victron-output-relay",
        "z": "c953fd15a712a9b8",
        "service": "com.victronenergy.system/0",
        "path": "/Relay/0/State",
        "serviceObj": {
            "service": "com.victronenergy.system/0",
            "name": "Venus device"
        },
        "pathObj": {
            "path": "/Relay/0/State",
            "type": "enum",
            "name": "Venus relay 1 state",
            "enum": {
                "0": "Open",
                "1": "Closed"
            },
            "writable": true
        },
        "initial": "",
        "name": "Boiler",
        "onlyChanges": false,
        "x": 1250,
        "y": 640,
        "wires": []
    },
    {
        "id": "07e57475d3989bbf",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "mppt in 2001",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "mppt",
        "payload": "2001",
        "payloadType": "num",
        "x": 110,
        "y": 340,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "8eeb2ded47b7bf2e",
        "type": "join",
        "z": "c953fd15a712a9b8",
        "name": "",
        "mode": "custom",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": true,
        "timeout": "",
        "count": "3",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 270,
        "y": 540,
        "wires": [
            [
                "3aec9e371df4f921",
                "5d06a52d2ad73660"
            ]
        ]
    },
    {
        "id": "b63c2287590c4679",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "battery 69",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "battery",
        "payload": "69",
        "payloadType": "num",
        "x": 120,
        "y": 600,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "d24b82da9d1f270b",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "battery 81",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "battery",
        "payload": "81",
        "payloadType": "num",
        "x": 120,
        "y": 640,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "2a4d840f83b80e75",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "ac true",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "ac",
        "payload": "1",
        "payloadType": "num",
        "x": 110,
        "y": 500,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "a869e227e9f8239a",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "mppt in 199",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "mppt",
        "payload": "199",
        "payloadType": "num",
        "x": 110,
        "y": 380,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "ea59e4de67819e73",
        "type": "inject",
        "z": "c953fd15a712a9b8",
        "name": "ac false",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "ac",
        "payload": "other values",
        "payloadType": "str",
        "x": 110,
        "y": 540,
        "wires": [
            [
                "8eeb2ded47b7bf2e"
            ]
        ]
    },
    {
        "id": "3aec9e371df4f921",
        "type": "switch",
        "z": "c953fd15a712a9b8",
        "name": "",
        "property": "payload.ac",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            },
            {
                "t": "jsonata_exp",
                "v": "$$.payload.mppt >= 200 and \t$$.payload.battery >= 80",
                "vt": "jsonata"
            },
            {
                "t": "jsonata_exp",
                "v": "($$.payload.mppt < 200 or\t$$.payload.battery < 70) and \t$$.payload.ac != 1\t",
                "vt": "jsonata"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "false",
        "repair": false,
        "outputs": 4,
        "x": 390,
        "y": 540,
        "wires": [
            [
                "18f0bc3f8ae41822"
            ],
            [
                "3e4d2134a28c8eeb"
            ],
            [
                "8e43298b3f89d3f2"
            ],
            []
        ]
    },
    {
        "id": "5d06a52d2ad73660",
        "type": "debug",
        "z": "c953fd15a712a9b8",
        "name": "debug 2486",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 330,
        "y": 420,
        "wires": []
    },
    {
        "id": "18f0bc3f8ae41822",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "reset",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 560,
        "y": 500,
        "wires": [
            [
                "764eb22cc19dde1b",
                "2a8ff7518e4f5b58",
                "197ae8af3f8280e0"
            ]
        ]
    },
    {
        "id": "3e4d2134a28c8eeb",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 560,
        "y": 540,
        "wires": [
            [
                "197ae8af3f8280e0",
                "764eb22cc19dde1b"
            ]
        ]
    },
    {
        "id": "8e43298b3f89d3f2",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 560,
        "y": 580,
        "wires": [
            [
                "764eb22cc19dde1b",
                "197ae8af3f8280e0"
            ]
        ]
    },
    {
        "id": "764eb22cc19dde1b",
        "type": "trigger",
        "z": "c953fd15a712a9b8",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "payl",
        "duration": "120",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "1",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 810,
        "y": 580,
        "wires": [
            [
                "7f4308caf85e7dd7"
            ]
        ]
    },
    {
        "id": "2a8ff7518e4f5b58",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            },
            {
                "t": "delete",
                "p": "reset",
                "pt": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 820,
        "y": 500,
        "wires": [
            [
                "7f4308caf85e7dd7"
            ]
        ]
    },
    {
        "id": "197ae8af3f8280e0",
        "type": "trigger",
        "z": "c953fd15a712a9b8",
        "name": "",
        "op1": "",
        "op2": "",
        "op1type": "nul",
        "op2type": "payl",
        "duration": "300",
        "extend": false,
        "overrideDelay": false,
        "units": "s",
        "reset": "0",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 810,
        "y": 540,
        "wires": [
            [
                "7f4308caf85e7dd7"
            ]
        ]
    },
    {
        "id": "6ac1dbf1ad0c46a0",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "reset",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 560,
        "y": 640,
        "wires": [
            [
                "e41692466e6d34c2",
                "197ae8af3f8280e0",
                "764eb22cc19dde1b"
            ]
        ]
    },
    {
        "id": "7f4308caf85e7dd7",
        "type": "rbe",
        "z": "c953fd15a712a9b8",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 1030,
        "y": 640,
        "wires": [
            [
                "75cc718eaf93d347",
                "cd50f8565106ef7a",
                "479335b692279628"
            ]
        ]
    },
    {
        "id": "e41692466e6d34c2",
        "type": "change",
        "z": "c953fd15a712a9b8",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 820,
        "y": 640,
        "wires": [
            [
                "7f4308caf85e7dd7"
            ]
        ]
    },
    {
        "id": "75cc718eaf93d347",
        "type": "debug",
        "z": "c953fd15a712a9b8",
        "name": "relay",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": true,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "payload",
        "statusType": "auto",
        "x": 1050,
        "y": 520,
        "wires": []
    },
    {
        "id": "2647805b351a2e5b",
        "type": "ui_gauge",
        "z": "c953fd15a712a9b8",
        "name": "MPPT",
        "group": "9b4290ae01764c48",
        "order": 20,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "MPPT",
        "label": "Watt",
        "format": "{{value}}",
        "min": 0,
        "max": "1000",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 290,
        "y": 200,
        "wires": []
    },
    {
        "id": "ff4e6b2cb0caa2c7",
        "type": "ui_gauge",
        "z": "c953fd15a712a9b8",
        "name": "Battery state",
        "group": "9b4290ae01764c48",
        "order": 21,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Battery",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 270,
        "y": 740,
        "wires": []
    },
    {
        "id": "479335b692279628",
        "type": "ui_led",
        "z": "c953fd15a712a9b8",
        "order": 22,
        "group": "9b4290ae01764c48",
        "width": 0,
        "height": 0,
        "label": "Boiler",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "#ff0000",
                "value": "0",
                "valueType": "num"
            },
            {
                "color": "#008000",
                "value": "1",
                "valueType": "num"
            }
        ],
        "allowColorForValueInMessage": false,
        "shape": "circle",
        "showGlow": true,
        "name": "",
        "x": 1270,
        "y": 580,
        "wires": []
    },
    {
        "id": "4d8cb5d6b147e242",
        "type": "ui_led",
        "z": "c953fd15a712a9b8",
        "order": 23,
        "group": "9b4290ae01764c48",
        "width": 0,
        "height": 0,
        "label": "AC",
        "labelPlacement": "left",
        "labelAlignment": "left",
        "colorForValue": [
            {
                "color": "#ff0000",
                "value": "0",
                "valueType": "num"
            },
            {
                "color": "#008000",
                "value": "1",
                "valueType": "num"
            },
            {
                "color": "#0000ff",
                "value": "240",
                "valueType": "num"
            }
        ],
        "allowColorForValueInMessage": false,
        "shape": "circle",
        "showGlow": true,
        "name": "AC",
        "x": 290,
        "y": 260,
        "wires": []
    },
    {
        "id": "9b4290ae01764c48",
        "type": "ui_group",
        "name": "Dashboard",
        "tab": "6984a52b7f96970d",
        "order": 1,
        "disp": false,
        "width": "12",
        "collapse": false,
        "className": ""
    },
    {
        "id": "6984a52b7f96970d",
        "type": "ui_tab",
        "name": "Threshold Control",
        "icon": "dashboard",
        "order": 5,
        "disabled": false,
        "hidden": false
    }
]

Thank you so much!

Nothing as it is not connected, thought you may want a output of some type if no condition was true. It's there to show that you can have an otherwise if required.

I see no adjustment/edit of flow, looks like my solution as is.

Just added the Victron nodes.

But thank you so much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.