Node-RED to disconnect charging station from an Opel Corsa

Hi,

when I open the Corsa while charging, the victron wallbox is going into readyness and the Corsa doesn’t unlock the cable.
It was only when I stopped charging via a Victron connection that the Corsa unlocked the charging plug.

So I created a Node-RED flow to stop the charging and the Corsa unlocked the charging plug.

[
    {
        "id": "ea24f4afbf81d05c",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "0629fbf8bde1469b",
        "type": "victron-input-evcharger",
        "z": "ea24f4afbf81d05c",
        "service": "com.victronenergy.evcharger/40",
        "path": "/Ac/Power",
        "serviceObj": {
            "service": "com.victronenergy.evcharger/40",
            "name": "Victron-Wallbox"
        },
        "pathObj": {
            "path": "/Ac/Power",
            "type": "float",
            "name": "Total power (W)"
        },
        "name": "",
        "onlyChanges": true,
        "roundValues": "3",
        "outputs": 1,
        "x": 190,
        "y": 660,
        "wires": [
            [
                "d71ca72d447f52c6",
                "092e853cf792592c"
            ]
        ]
    },
    {
        "id": "d71ca72d447f52c6",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": ">1000",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gt",
                "v": "1000",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 390,
        "y": 660,
        "wires": [
            [
                "ea2679e3a3e27f1b"
            ]
        ]
    },
    {
        "id": "ea2679e3a3e27f1b",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "WarAktiv=1",
        "rules": [
            {
                "t": "set",
                "p": "WarAktiv",
                "pt": "flow",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 660,
        "wires": [
            [
                "7dd81fa4317eefb8"
            ]
        ]
    },
    {
        "id": "0934cdc88af69ace",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": "Charging",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "2",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 360,
        "y": 920,
        "wires": [
            [
                "197e87bde680d146"
            ]
        ]
    },
    {
        "id": "028d19dbb590db08",
        "type": "victron-input-evcharger",
        "z": "ea24f4afbf81d05c",
        "service": "com.victronenergy.evcharger/40",
        "path": "/Status",
        "serviceObj": {
            "service": "com.victronenergy.evcharger/40",
            "name": "Victron-Wallbox"
        },
        "pathObj": {
            "path": "/Status",
            "type": "enum",
            "name": "Status",
            "enum": {
                "0": "Disconnected",
                "1": "Connected",
                "2": "Charging",
                "3": "Charged",
                "4": "Waiting for sun",
                "5": "Waiting for RFID",
                "6": "Waiting for start",
                "7": "Low SOC",
                "8": "Ground test error",
                "9": "Welded contacts test error",
                "10": "CP input test error (shorted)",
                "11": "Residual current detected",
                "12": "Undervoltage detected",
                "13": "Overvoltage detected",
                "14": "Overheating detected",
                "15": "Reserved",
                "16": "Reserved",
                "17": "Reserved",
                "18": "Reserved",
                "19": "Reserved",
                "20": "Charging limit",
                "21": "Start charging",
                "22": "Switching to 3 phase",
                "23": "Switching to 1 phase",
                "24": "Stop charging"
            }
        },
        "name": "",
        "onlyChanges": true,
        "outputs": 1,
        "x": 160,
        "y": 920,
        "wires": [
            [
                "0934cdc88af69ace",
                "ad5e409a6b9bd076"
            ]
        ]
    },
    {
        "id": "0634a8a4d95f9889",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": "WarAktiv?",
        "property": "WarAktiv",
        "propertyType": "flow",
        "rules": [
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 260,
        "y": 720,
        "wires": [
            [
                "d0dc8def54f64163",
                "dfb980fecbaa681e"
            ]
        ]
    },
    {
        "id": "d0dc8def54f64163",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "WarAktiv=0",
        "rules": [
            {
                "t": "set",
                "p": "WarAktiv",
                "pt": "flow",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 530,
        "y": 720,
        "wires": [
            [
                "0bf74f3cdd82d578"
            ]
        ]
    },
    {
        "id": "197e87bde680d146",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "StatusCharging",
        "rules": [
            {
                "t": "set",
                "p": "StatusCharging",
                "pt": "flow",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 540,
        "y": 920,
        "wires": [
            [
                "7b019a8d3a14f021"
            ]
        ]
    },
    {
        "id": "ad5e409a6b9bd076",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": "NotCharging",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "neq",
                "v": "2",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 370,
        "y": 960,
        "wires": [
            [
                "61c506347deda1aa"
            ]
        ]
    },
    {
        "id": "61c506347deda1aa",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "StatusNotCharging",
        "rules": [
            {
                "t": "set",
                "p": "StatusCharging",
                "pt": "flow",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 550,
        "y": 960,
        "wires": [
            [
                "7b019a8d3a14f021"
            ]
        ]
    },
    {
        "id": "7dd81fa4317eefb8",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "payload=WarAktiv",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "WarAktiv",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 710,
        "y": 660,
        "wires": [
            []
        ]
    },
    {
        "id": "0bf74f3cdd82d578",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "payload=WarAktiv",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "WarAktiv",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 710,
        "y": 700,
        "wires": [
            []
        ]
    },
    {
        "id": "7b019a8d3a14f021",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "payload=StatusCharging",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "StatusCharging",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 770,
        "y": 940,
        "wires": [
            []
        ]
    },
    {
        "id": "092e853cf792592c",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": "<500?",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "500",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 130,
        "y": 720,
        "wires": [
            [
                "0634a8a4d95f9889"
            ]
        ]
    },
    {
        "id": "dfb980fecbaa681e",
        "type": "switch",
        "z": "ea24f4afbf81d05c",
        "name": "StatusCharging?",
        "property": "StatusCharging",
        "propertyType": "flow",
        "rules": [
            {
                "t": "true"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 760,
        "wires": [
            [
                "cedb52fbf8d081a1"
            ]
        ]
    },
    {
        "id": "cedb52fbf8d081a1",
        "type": "change",
        "z": "ea24f4afbf81d05c",
        "name": "0",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 650,
        "y": 760,
        "wires": [
            [
                "a3f84e5aced56364"
            ]
        ]
    },
    {
        "id": "a3f84e5aced56364",
        "type": "victron-output-evcharger",
        "z": "ea24f4afbf81d05c",
        "service": "com.victronenergy.evcharger/40",
        "path": "/StartStop",
        "serviceObj": {
            "service": "com.victronenergy.evcharger/40",
            "name": "Victron-Wallbox"
        },
        "pathObj": {
            "path": "/StartStop",
            "type": "enum",
            "name": "Start/stop charging (manual mode)",
            "enum": {
                "0": "Stop",
                "1": "Start"
            },
            "mode": "both"
        },
        "name": "",
        "onlyChanges": false,
        "outputs": 0,
        "x": 800,
        "y": 800,
        "wires": []
    },
    {
        "id": "b6473fdba451629b",
        "type": "global-config",
        "env": [],
        "modules": {
            "@victronenergy/node-red-contrib-victron": "1.6.63"
        }
    }
]

Gerd