Go e wallbox over mqtt and node red

Hi there, I try to connect my go e wallbox to my node red logic. I get all information of the box but cannot send any command such as "alw", "amp". I also tried to connect over "ids". Box receives and answers with success but does not switch anything as far as I see. Does anyone have a simular problem or can say how this thing works (firmware is 59.4). Thank you very much.[

[
    {
        "id": "cb59ca7e.67d638",
        "type": "mqtt in",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/#",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "0d3c22a06edf6381",
        "nl": false,
        "rap": false,
        "inputs": 0,
        "x": 160,
        "y": 100,
        "wires": [
            [
                "c726eedd60c09a18",
                "6bc8a32c03cb6241",
                "a0a9fbc8bc0c8eab"
            ]
        ]
    },
    {
        "id": "84b2520e.ad482",
        "type": "ui_text",
        "z": "6b3071d362553b25",
        "group": "d265234bf702ff52",
        "order": 7,
        "width": 5,
        "height": 4,
        "name": "Ladestatus",
        "label": "",
        "format": "<font size = 4>{{msg.payload}}",
        "layout": "row-center",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": "",
        "color": "#000000",
        "x": 890,
        "y": 160,
        "wires": []
    },
    {
        "id": "3ac85715.04c588",
        "type": "function",
        "z": "6b3071d362553b25",
        "name": "Ladestatus",
        "func": "switch (msg.payload) {\n    case 1:\n    msg.payload = 'Ladestation bereit, kein Fahrzeug';\n    return msg;\n    \n    case 2:\n    msg.payload = 'Fahrzeug lädt';\n    return msg;\n    \n    case 3:\n    msg.payload = 'Warte auf Fahrzeug';\n    return msg;\n    \n    case 4:\n    msg.payload = 'Ladung beendet, Fahrzeug noch verbunden';\n    return msg;\n}\n",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 670,
        "y": 160,
        "wires": [
            [
                "84b2520e.ad482"
            ]
        ]
    },
    {
        "id": "9bf7777e.d47fb8",
        "type": "ui_gauge",
        "z": "6b3071d362553b25",
        "name": "Ladestrom",
        "group": "d265234bf702ff52",
        "order": 8,
        "width": 5,
        "height": 4,
        "gtype": "gage",
        "title": "<font size=1>Ladestrom",
        "label": "A",
        "format": "{{value}}",
        "min": 0,
        "max": "32",
        "colors": [
            "#ca3838",
            "#ca3838",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 890,
        "y": 100,
        "wires": []
    },
    {
        "id": "c726eedd60c09a18",
        "type": "switch",
        "z": "6b3071d362553b25",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "go-eCharger/409549/amp",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 100,
        "wires": [
            [
                "9bf7777e.d47fb8"
            ]
        ]
    },
    {
        "id": "6bc8a32c03cb6241",
        "type": "switch",
        "z": "6b3071d362553b25",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "go-eCharger/409549/car",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 160,
        "wires": [
            [
                "3ac85715.04c588"
            ]
        ]
    },
    {
        "id": "a0a9fbc8bc0c8eab",
        "type": "switch",
        "z": "6b3071d362553b25",
        "name": "",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "go-eCharger/409549/alw",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 220,
        "wires": [
            [
                "fa2323694950847d"
            ]
        ]
    },
    {
        "id": "11da7a5865d9d8d2",
        "type": "mqtt out",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/ids/set",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d3c22a06edf6381",
        "x": 940,
        "y": 220,
        "wires": []
    },
    {
        "id": "6a7c8d900e3ce3ca",
        "type": "mqtt out",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/ids/set",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d3c22a06edf6381",
        "x": 940,
        "y": 280,
        "wires": []
    },
    {
        "id": "332cdeeb5819a0b6",
        "type": "function",
        "z": "6b3071d362553b25",
        "name": "mapping",
        "func": "let map = {\n    1: {\"amp\":6,  \"frc\":2},\n    2: {\"amp\":7,  \"frc\":2},\n    3: {\"amp\":8,  \"frc\":2},\n    4: {\"amp\":10, \"frc\":2},\n    5: {\"amp\":24, \"frc\":2}\n};\n\n// Nur 1 Permit‑Zustand, 0 Stop‑Zustand\nlet permit = (msg.payload === 0) ? 0 : 1;   // 0 = Stop, alles andere = Start\n\nmsg.payload = {\n    \"amp\": map[msg.payload]?.amp || 6,   // Standardstrom 6 A\n    \"frc\": permit\n};\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 460,
        "y": 280,
        "wires": [
            [
                "6a7c8d900e3ce3ca"
            ]
        ]
    },
    {
        "id": "7c65240d36981b34",
        "type": "ui_dropdown",
        "z": "6b3071d362553b25",
        "name": "",
        "label": "Phasenanzahl",
        "tooltip": "Phasenanzahl einstellen",
        "place": "1 -3 Phasen",
        "group": "d265234bf702ff52",
        "order": 18,
        "width": 5,
        "height": 4,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "1 Phase",
                "value": 1,
                "type": "num"
            },
            {
                "label": "2 Phasen",
                "value": 2,
                "type": "num"
            },
            {
                "label": "3 Phasen",
                "value": 3,
                "type": "num"
            }
        ],
        "payload": "",
        "topic": "",
        "topicType": "str",
        "className": "",
        "x": 140,
        "y": 360,
        "wires": [
            [
                "11646c39cac27077"
            ]
        ]
    },
    {
        "id": "11646c39cac27077",
        "type": "mqtt out",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/set/pha",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d3c22a06edf6381",
        "x": 940,
        "y": 360,
        "wires": []
    },
    {
        "id": "67f74a1f3c5a6bbe",
        "type": "ui_dropdown",
        "z": "6b3071d362553b25",
        "name": "",
        "label": "Strom einstellen",
        "tooltip": "Strom",
        "place": "6 - 32 A",
        "group": "d265234bf702ff52",
        "order": 17,
        "width": 5,
        "height": 4,
        "passthru": true,
        "multiple": false,
        "options": [
            {
                "label": "6A",
                "value": 1,
                "type": "num"
            },
            {
                "label": "7A",
                "value": 2,
                "type": "num"
            },
            {
                "label": "8A",
                "value": 3,
                "type": "num"
            },
            {
                "label": "10A",
                "value": 4,
                "type": "num"
            },
            {
                "label": "24A",
                "value": 5,
                "type": "num"
            },
            {
                "label": "aus",
                "value": "0",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "",
        "topicType": "str",
        "className": "",
        "x": 140,
        "y": 280,
        "wires": [
            [
                "332cdeeb5819a0b6"
            ]
        ]
    },
    {
        "id": "fa2323694950847d",
        "type": "ui_switch",
        "z": "6b3071d362553b25",
        "name": "",
        "label": "",
        "tooltip": "Wallbox an- und ausschalten",
        "group": "d265234bf702ff52",
        "order": 4,
        "width": 2,
        "height": 1,
        "passthru": false,
        "decouple": "true",
        "topic": "",
        "topicType": "str",
        "style": "",
        "onvalue": "{\"alw\":1}",
        "onvalueType": "json",
        "onicon": "fa-power-off bigIcon",
        "oncolor": "green",
        "offvalue": "{\"alw\":0}",
        "offvalueType": "json",
        "officon": "fa-power-off bigIcon",
        "offcolor": "red",
        "animate": true,
        "className": "",
        "x": 650,
        "y": 220,
        "wires": [
            [
                "11da7a5865d9d8d2"
            ]
        ]
    },
    {
        "id": "612057c09e9b58a8",
        "type": "ui_template",
        "z": "6b3071d362553b25",
        "group": "d265234bf702ff52",
        "name": "icon style fĂĽr switch",
        "order": 1,
        "width": 0,
        "height": 0,
        "format": "<style>\n    .bigIcon{\n        font-size:3em;\n        transition: 1s;\n    }\n    .bigIcon.red{\n        color:red;\n    }\n    \n</style>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": false,
        "templateScope": "local",
        "className": "",
        "x": 150,
        "y": 440,
        "wires": [
            []
        ]
    },
    {
        "id": "624f23dfe81fa777",
        "type": "ui_template",
        "z": "6b3071d362553b25",
        "group": "d265234bf702ff52",
        "name": "Icon Wallbox",
        "order": 2,
        "width": 1,
        "height": 1,
        "format": "<i class=\"fa fa-plug\" style=\"color:red; font-size:20px;\">",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": false,
        "templateScope": "local",
        "className": "",
        "x": 130,
        "y": 480,
        "wires": [
            []
        ]
    },
    {
        "id": "2dc0efb8af67f553",
        "type": "mqtt out",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/frc",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d3c22a06edf6381",
        "x": 930,
        "y": 560,
        "wires": []
    },
    {
        "id": "66c7e6dc59fc39b6",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 130,
        "y": 560,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "536c991cfae43518",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 130,
        "y": 600,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "c2a53e3b79206b93",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 130,
        "y": 640,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "ff7f2a5590da9643",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 200,
        "y": 220,
        "wires": [
            []
        ]
    },
    {
        "id": "0d3c22a06edf6381",
        "type": "mqtt-broker",
        "name": "",
        "broker": "192.168.178.123",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "3",
        "keepalive": "60",
        "cleansession": true,
        "autoUnsubscribe": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "d265234bf702ff52",
        "type": "ui_group",
        "name": "GOe",
        "tab": "6dd6fbb7.f2a4b4",
        "order": 1,
        "disp": true,
        "width": "16",
        "collapse": false,
        "className": ""
    },
    {
        "id": "6dd6fbb7.f2a4b4",
        "type": "ui_tab",
        "name": "GO-e",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]

Did you try searching the internet for a solution? You should go to this link:

Though it looks like you will need to use HomeAssistant.

Do you mean that it is working correctly over mqtt except for sending commands?

If so then can you point us to the docs for sending the commands via mqtt? Also create a very simple flow using just an inject node to set the data and the mqtt node, which demonstrates the problem, and post that here.

Hi, it is as always i suggest! Reading through the API at go-eCharger-API-v2/mqtt-de.md at main · goecharger/go-eCharger-API-v2 · GitHub made me try this (see flow) and what shall I say, it worked. I always tried the wrong parameter "alw" which means "allow loading". I also tried writing on the parameter "ids" and sending the command as a json. Both doesn't work, allthough documented. I will build me logik around that, an post the result when its ready. Thanks for your support.

[
    {
        "id": "2dc0efb8af67f553",
        "type": "mqtt out",
        "z": "6b3071d362553b25",
        "name": "",
        "topic": "go-eCharger/409549/frc/set",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d3c22a06edf6381",
        "x": 940,
        "y": 560,
        "wires": []
    },
    {
        "id": "66c7e6dc59fc39b6",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 130,
        "y": 560,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "536c991cfae43518",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 130,
        "y": 600,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "c2a53e3b79206b93",
        "type": "inject",
        "z": "6b3071d362553b25",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2",
        "payloadType": "num",
        "x": 130,
        "y": 640,
        "wires": [
            [
                "2dc0efb8af67f553"
            ]
        ]
    },
    {
        "id": "0d3c22a06edf6381",
        "type": "mqtt-broker",
        "name": "",
        "broker": "192.168.178.123",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "3",
        "keepalive": "60",
        "cleansession": true,
        "autoUnsubscribe": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    }
]
1 Like