Event-trigger for join node

Hi,
I am just starting with node red and want to join several payloads from an OBD2-Adapter and a wallbox.
I want to write into a csv-file depending on the alternating status between "online" and "offline".
In my project I have no control about the time of the published final message. Can somebody help me to control the publishing time as desired.

Formatting all topics works well, but I have another problem converting the time and date. After the timestamp conversion i have a false day, 2 days later than the real day, shown in the original "now".variable.

As new user I cannot upload a file here, that's why here the projects file text:

[
    {
        "id": "667cec54c048503c",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "b35e51cc0f70f6fc",
        "type": "mqtt in",
        "z": "667cec54c048503c",
        "name": "WiCAN Status",
        "topic": "wican/7c2c67b3dbc1/can/status",
        "qos": "2",
        "datatype": "utf8",
        "broker": "5c944a233ddbd024",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 220,
        "wires": [
            [
                "1f1f7d535435a077",
                "2e6d55ebe817c89e"
            ]
        ]
    },
    {
        "id": "1f1f7d535435a077",
        "type": "function",
        "z": "667cec54c048503c",
        "name": "Zeitstempel formatieren",
        "func": "var now = new Date();\nvar year = now.getFullYear();\nvar month = now.getMonth()+1;\nvar day = now.getDay();\nvar hour = now.getHours();\nvar minute = now.getMinutes();\nvar second = now.getSeconds();\n\nif(month.toString().length == 1) {\n    month = '0' + month;\n}\nif(day.toString().length == 1) {\n    day = '0' + day;\n}\nif(hour.toString().length == 1) {\n    hour = '0' + hour;\n}\nif(minute.toString().length == 1) {\n    minute = '0' + minute;\n}\nif(second.toString().length == 1) {\n    second = '0' + second;\n}\n\n//Funktion gibt die aktuelle Zeit als Payload aus\n//msg.payload = now\nmsg.payload = year + '-' + month + '-' + day + ';' + hour + ':' + minute + ':' + second;\n//msg.payload = now;\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 370,
        "y": 220,
        "wires": [
            [
                "8b0fd796241ec09d"
            ]
        ]
    },
    {
        "id": "87b8aed1b7e49c7c",
        "type": "file",
        "z": "667cec54c048503c",
        "name": "Zoe-Daten.csv",
        "filename": "\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv",
        "filenameType": "str",
        "appendNewline": true,
        "createDir": false,
        "overwriteFile": "false",
        "encoding": "utf8",
        "x": 1180,
        "y": 340,
        "wires": [
            []
        ]
    },
    {
        "id": "2931e955acfbd9b7",
        "type": "mqtt in",
        "z": "667cec54c048503c",
        "name": "Wallbox E1",
        "topic": "cfos_mqtt/get/E1",
        "qos": "2",
        "datatype": "json",
        "broker": "5c944a233ddbd024",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 120,
        "y": 420,
        "wires": [
            [
                "a5c18b192740d349",
                "d4c9f823dd98ce95",
                "07a13776143fd6e3"
            ]
        ]
    },
    {
        "id": "a5c18b192740d349",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "total_energy",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.total_energy",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 330,
        "y": 380,
        "wires": [
            [
                "e9384a9106db9179"
            ]
        ]
    },
    {
        "id": "d4c9f823dd98ce95",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "used_phases",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.used_phases",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 340,
        "y": 420,
        "wires": [
            [
                "e9384a9106db9179"
            ]
        ]
    },
    {
        "id": "07a13776143fd6e3",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "power_w",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.power_w",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 460,
        "wires": [
            [
                "e9384a9106db9179"
            ]
        ]
    },
    {
        "id": "e9384a9106db9179",
        "type": "join",
        "z": "667cec54c048503c",
        "name": "",
        "mode": "custom",
        "build": "string",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": ";",
        "joinerType": "str",
        "useparts": false,
        "accumulate": false,
        "timeout": "",
        "count": "3",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 550,
        "y": 420,
        "wires": [
            [
                "7632ca7698b33e53"
            ]
        ]
    },
    {
        "id": "9006e9867c02ffb1",
        "type": "mqtt in",
        "z": "667cec54c048503c",
        "name": "WiCAN Zoe",
        "topic": "wican/7c2c67b3dbc1/auto",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "5c944a233ddbd024",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 620,
        "wires": [
            [
                "8c55cd189e42dede",
                "061ad5ec23363449",
                "100f934956a08826",
                "099b2cd1789df28a",
                "867b7c8caa7ae670"
            ]
        ]
    },
    {
        "id": "8c55cd189e42dede",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "km-Stand",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.Odometer",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 540,
        "wires": [
            [
                "1057d40a833a85b8"
            ]
        ]
    },
    {
        "id": "061ad5ec23363449",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "SoC",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.SOC",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 580,
        "wires": [
            [
                "1057d40a833a85b8"
            ]
        ]
    },
    {
        "id": "100f934956a08826",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "kWh Batterie",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.KwhAvail",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 330,
        "y": 620,
        "wires": [
            [
                "1057d40a833a85b8"
            ]
        ]
    },
    {
        "id": "099b2cd1789df28a",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "AcPhases",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.AcPhases",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 660,
        "wires": [
            [
                "1057d40a833a85b8"
            ]
        ]
    },
    {
        "id": "867b7c8caa7ae670",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "Temperatur",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.TempAmb",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 330,
        "y": 700,
        "wires": [
            [
                "1057d40a833a85b8"
            ]
        ]
    },
    {
        "id": "1057d40a833a85b8",
        "type": "join",
        "z": "667cec54c048503c",
        "name": "",
        "mode": "custom",
        "build": "string",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": ";",
        "joinerType": "str",
        "useparts": false,
        "accumulate": false,
        "timeout": "",
        "count": "5",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 550,
        "y": 620,
        "wires": [
            [
                "2aaeb2c46d413413"
            ]
        ]
    },
    {
        "id": "2aaeb2c46d413413",
        "type": "function",
        "z": "667cec54c048503c",
        "name": "Punkt zu Komma",
        "func": "msg.payload = msg.payload.replace('.',',');\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 730,
        "y": 620,
        "wires": [
            [
                "7632ca7698b33e53"
            ]
        ]
    },
    {
        "id": "2e6d55ebe817c89e",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "status",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.status",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 280,
        "wires": [
            [
                "522477f7ab33fe1c"
            ]
        ]
    },
    {
        "id": "522477f7ab33fe1c",
        "type": "switch",
        "z": "667cec54c048503c",
        "name": "Online",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "\"online\"",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 450,
        "y": 280,
        "wires": [
            [
                "89579474bdcc9cc4"
            ]
        ]
    },
    {
        "id": "7632ca7698b33e53",
        "type": "join",
        "z": "667cec54c048503c",
        "name": "",
        "mode": "custom",
        "build": "string",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": ";",
        "joinerType": "str",
        "useparts": true,
        "accumulate": false,
        "timeout": "",
        "count": "",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 1010,
        "y": 420,
        "wires": [
            [
                "ac0464631b5580fe"
            ]
        ]
    },
    {
        "id": "ac0464631b5580fe",
        "type": "debug",
        "z": "667cec54c048503c",
        "name": "debug 4",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1160,
        "y": 420,
        "wires": []
    },
    {
        "id": "89579474bdcc9cc4",
        "type": "change",
        "z": "667cec54c048503c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "complete",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 630,
        "y": 280,
        "wires": [
            [
                "8b0fd796241ec09d"
            ]
        ]
    },
    {
        "id": "8b0fd796241ec09d",
        "type": "join",
        "z": "667cec54c048503c",
        "name": "",
        "mode": "custom",
        "build": "string",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": ";",
        "joinerType": "str",
        "useparts": false,
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 830,
        "y": 220,
        "wires": [
            [
                "7632ca7698b33e53"
            ]
        ]
    },
    {
        "id": "5c944a233ddbd024",
        "type": "mqtt-broker",
        "name": "Raspi3",
        "broker": "192.168.178.2",
        "port": 1883,
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": 4,
        "keepalive": 60,
        "cleansession": true,
        "autoUnsubscribe": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthRetain": "false",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closeRetain": "false",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willRetain": "false",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    }
]

Hi micha53 and welcome to the forum.

It looks to me like you are over complicating the process.

To help you, you will need to provide some things.

1 the output of all your mqtt nodes.

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

See this post for more details - How to share code or flow json

2 How you would like the csv to look . Pointing out which bits of data go where, using your provided mqtt outputs in this example.

I am sure we can then get rid of most of the join and change nodes and use a csv node to construct the csv output.

[edit] here is a simplified version of what you possibly could do. It will add a new csv line everytime the status comes back online. Hope this helps you see another way.

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":140,"y":240,"wires":[["89579474bdcc9cc4"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"iso","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":280,"wires":[["7632ca7698b33e53"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":140,"y":280,"wires":[["89579474bdcc9cc4"]]},{"id":"7632ca7698b33e53","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":";","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"6","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":450,"y":360,"wires":[["c10fc05243b85321"]]},{"id":"6ad58402458bfd9a","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"total_energy\":20.9,\"used_phases\":3}","payloadType":"json","x":140,"y":360,"wires":[["7632ca7698b33e53"]]},{"id":"7979fda9689fa078","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"oddometer\":2.6,\"soc\":10}","payloadType":"json","x":140,"y":460,"wires":[["7632ca7698b33e53"]]},{"id":"c10fc05243b85321","type":"rbe","z":"667cec54c048503c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload.status","topi":"topic","x":570,"y":360,"wires":[["8ef5b1d932e947dd"]]},{"id":"8ef5b1d932e947dd","type":"switch","z":"667cec54c048503c","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"online","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":360,"wires":[["3239c497b3c37ccb"]]},{"id":"3239c497b3c37ccb","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,soc,used_phases,oddometer,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":810,"y":360,"wires":[["ac0464631b5580fe"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":160,"wires":[]},{"id":"87b8aed1b7e49c7c","type":"file","z":"667cec54c048503c","name":"Zoe-Daten.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":900,"y":300,"wires":[[]]}]

Or splitting the incoming objects, which allows you to manipulate each payload.

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":140,"y":240,"wires":[["89579474bdcc9cc4"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"iso","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":260,"wires":[["11c1b2d8775266f7"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":140,"y":280,"wires":[["89579474bdcc9cc4"]]},{"id":"11c1b2d8775266f7","type":"split","z":"667cec54c048503c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":330,"y":360,"wires":[["48bd2347f98ade8c"]]},{"id":"6ad58402458bfd9a","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"total_energy\":20.9,\"used_phases\":3}","payloadType":"json","x":140,"y":360,"wires":[["11c1b2d8775266f7"]]},{"id":"7979fda9689fa078","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"oddometer\":2.6,\"soc\":10}","payloadType":"json","x":140,"y":460,"wires":[["11c1b2d8775266f7"]]},{"id":"48bd2347f98ade8c","type":"template","z":"667cec54c048503c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":480,"y":360,"wires":[["b5dfadf7f077b97a"]]},{"id":"b5dfadf7f077b97a","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":360,"wires":[["17b03cc909c256a2"]]},{"id":"17b03cc909c256a2","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"6","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":410,"y":480,"wires":[["c10fc05243b85321"]]},{"id":"c10fc05243b85321","type":"rbe","z":"667cec54c048503c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.status","topi":"topic","x":550,"y":480,"wires":[["8ef5b1d932e947dd"]]},{"id":"8ef5b1d932e947dd","type":"switch","z":"667cec54c048503c","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"online","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":480,"wires":[["3239c497b3c37ccb"]]},{"id":"3239c497b3c37ccb","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,soc,used_phases,oddometer,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":810,"y":480,"wires":[["ac0464631b5580fe"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":820,"y":160,"wires":[]},{"id":"87b8aed1b7e49c7c","type":"file","z":"667cec54c048503c","name":"Zoe-Daten.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":900,"y":300,"wires":[[]]}]

The inject nodes simulate your mqtt in nodes.

I also suggest you store your timestamp as a UTC timestamp. You can more easily convert this to any timezone when you read the csv. You could also add a local time to the csv, but UTC is preferred for easy manipulation later.

The filter node will only pass the data when msg.payload.status changes.

1 Like

Hello E1cid,
thank you for helping me.
Yes, your setting looks much better than my first one, I collected it all together from the Web...
And now it works in principle.
so I have now this project:

[{"id":"0ddae8d6bfd7c097","type":"inject","z":"d16027b94213a763","name":"Zoe","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":90,"y":420,"wires":[["b418f057ac075850"]]}]

I insertet a function "Punkt zu Komma" to convert each dot to a comma, like in the first project, but this has no effect.
How can I replace the dots with commas, and
how can I change the timestamp format here?. I would like to remove the millisec part and convert the "T" to a blank that excel can convert it during the data import.

You seem to have only posted 1 inject node.

My second example converts . to , .
It does it for all incoming data, you may want to restrict to payloads that are numbers. This could be done with a switch node to direct to the template and change node, if the payload is of type number.

As to formating the timestamp
look at the moment node or moments, Jsonata in a change node.
Or days.js in a function node (examples on forum to), which is the latest as moment.js is not in developement any more. There may also be a days.js node by now, haven't looked.
There are many examples of formating using moment and JSONata on this forum.

so did I learnt that probably only selected Parts get really exported...
that was what I intended to send:

[{"id":"cf925267b2c8a80b","type":"inject","z":"d16027b94213a763","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":120,"y":100,"wires":[["c7ee2ef5e9c463c9"]]},{"id":"c7ee2ef5e9c463c9","type":"change","z":"d16027b94213a763","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"iso","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":140,"wires":[["b418f057ac075850"]]},{"id":"efc218adc2fdd267","type":"inject","z":"d16027b94213a763","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":120,"y":140,"wires":[["c7ee2ef5e9c463c9"]]},{"id":"b418f057ac075850","type":"join","z":"d16027b94213a763","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":";","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"6","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":410,"y":220,"wires":[["8b878cf0bf8c48cc"]]},{"id":"0ddae8d6bfd7c097","type":"inject","z":"d16027b94213a763","name":"Zoe","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":90,"y":420,"wires":[["b418f057ac075850"]]},{"id":"8b878cf0bf8c48cc","type":"rbe","z":"d16027b94213a763","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload.status","topi":"topic","x":530,"y":220,"wires":[["7308c186535af7eb","270622583b74d138"]]},{"id":"270622583b74d138","type":"switch","z":"d16027b94213a763","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"offline","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":220,"wires":[["3b08c52f9c36e77c"]]},{"id":"3b08c52f9c36e77c","type":"csv","z":"d16027b94213a763","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,used_phases,power_w,Odometer,Plugged,SOC,KwhAvail,AcPhases,TempAmb,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":850,"y":220,"wires":[["4cdb1f8aea804ea3"]]},{"id":"02f0c55284b62af8","type":"debug","z":"d16027b94213a763","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1260,"y":280,"wires":[]},{"id":"7d99d0b3e44f51f7","type":"file","z":"d16027b94213a763","name":"Zoe-Daten.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":1280,"y":180,"wires":[[]]},{"id":"c8a9bf98ef1c6b69","type":"mqtt in","z":"d16027b94213a763","name":"Wallbox E1","topic":"cfos_mqtt/get/E1","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":100,"y":220,"wires":[["b418f057ac075850"]]},{"id":"09a340f7dc21b63e","type":"mqtt in","z":"d16027b94213a763","name":"WiCAN Zoe","topic":"wican/7c2c67b3dbc1/auto","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":110,"y":360,"wires":[["b418f057ac075850"]]},{"id":"7308c186535af7eb","type":"switch","z":"d16027b94213a763","name":"","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"online","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":280,"wires":[["3b08c52f9c36e77c"]]},{"id":"4cdb1f8aea804ea3","type":"function","z":"d16027b94213a763","name":"Punkt zu Komma","func":"msg.payload = msg.payload.replace('.',',');\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1030,"y":220,"wires":[["02f0c55284b62af8","7d99d0b3e44f51f7"]]},{"id":"9bee4b5841efabab","type":"mqtt in","z":"d16027b94213a763","name":"WiCAN Status","topic":"wican/7c2c67b3dbc1/can/status","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":110,"y":40,"wires":[["c7ee2ef5e9c463c9"]]},{"id":"3fabe21b588a48dd","type":"inject","z":"d16027b94213a763","name":"Wallbox","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":90,"y":280,"wires":[["b418f057ac075850"]]},{"id":"5c944a233ddbd024","type":"mqtt-broker","name":"Raspi3","broker":"192.168.178.2","port":1883,"clientid":"","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

Here is a working example.

The second mqtt input had a status property, I moved this to another property, as it caused an issue.
I set the join to a count of 62 , to match incoming properties.
I added a switch to only look for . in a property that is a number then replace with ,
I added a format using JSONata function $now() for the timestamp. The timestamp is in Zulu/UTC time.
I moved the filter node to reduce unnecessary operations

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":120,"y":260,"wires":[["89579474bdcc9cc4"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":300,"wires":[["17b03cc909c256a2"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":120,"y":300,"wires":[["89579474bdcc9cc4"]]},{"id":"17b03cc909c256a2","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"62","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":580,"y":360,"wires":[["eee6cfe0bf572933","698d8dd848a429b4"]]},{"id":"7979fda9689fa078","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{     \"Odometer\": 7159,     \"Plugged\": 0,     \"SOC\": 67.23,     \"PowerAvail\": 0,     \"AcPhases\": 3,     \"TempAmb\": 5.7,     \"Batt12v\": 13.54,     \"SOH\": 97.04,     \"KwhAvail\": 32.62,     \"KwhCharged\": 360715.78,     \"AcCurrent\": 0,     \"AcVoltage\": 0 }","payloadType":"json","x":120,"y":400,"wires":[["17b03cc909c256a2"]]},{"id":"86149a8aa6346d8b","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":360,"wires":[["17b03cc909c256a2"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"eee6cfe0bf572933","type":"debug","z":"667cec54c048503c","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":360,"wires":[]},{"id":"698d8dd848a429b4","type":"rbe","z":"667cec54c048503c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.status","topi":"topic","x":170,"y":460,"wires":[["11c1b2d8775266f7"]]},{"id":"6ad58402458bfd9a","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":120,"y":360,"wires":[["86149a8aa6346d8b"]]},{"id":"11c1b2d8775266f7","type":"split","z":"667cec54c048503c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":290,"y":460,"wires":[["034c67556431f007"]]},{"id":"034c67556431f007","type":"switch","z":"667cec54c048503c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":410,"y":460,"wires":[["48bd2347f98ade8c"],["4225edb4d199ec01"]]},{"id":"48bd2347f98ade8c","type":"template","z":"667cec54c048503c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":560,"y":460,"wires":[["b5dfadf7f077b97a"]]},{"id":"4225edb4d199ec01","type":"join","z":"667cec54c048503c","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":410,"y":520,"wires":[["3239c497b3c37ccb"]]},{"id":"b5dfadf7f077b97a","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":460,"wires":[["4225edb4d199ec01"]]},{"id":"3239c497b3c37ccb","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,used_phases,power_w,Odometer,Plugged,SOC,KwhAvail,AcPhases,TempAmb,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":550,"y":520,"wires":[["ac0464631b5580fe"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":580,"y":560,"wires":[]}]
[{"id":"25db056b03ced92c","type":"tab","label":"Flow 10","disabled":false,"info":"","env":[]},{"id":"aa839a15b823f677","type":"inject","z":"25db056b03ced92c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":160,"y":180,"wires":[["c87c06cd72b023dc"]]},{"id":"68b28692f4ed4aa7","type":"change","z":"25db056b03ced92c","name":"timestamp","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]_[H01]:[m01]:[s01]Z\",\"00:00\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":380,"wires":[["b7f70b729e5f1fb3","50f30a2f5470fbe7"]]},{"id":"6bf0c395e7c89f6d","type":"inject","z":"25db056b03ced92c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":160,"y":140,"wires":[["c87c06cd72b023dc"]]},{"id":"c87c06cd72b023dc","type":"join","z":"25db056b03ced92c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":";","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"61","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":380,"y":380,"wires":[["68b28692f4ed4aa7"]]},{"id":"9d489ceaa8bc2e53","type":"inject","z":"25db056b03ced92c","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":130,"y":400,"wires":[["c87c06cd72b023dc"]]},{"id":"b7f70b729e5f1fb3","type":"rbe","z":"25db056b03ced92c","name":"status","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload.status","topi":"topic","x":750,"y":380,"wires":[["d4985a5642cdb34b","fbf5df04a960d986"]]},{"id":"d4985a5642cdb34b","type":"csv","z":"25db056b03ced92c","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,used_phases,power_w,Odometer,Plugged,SOC,KwhAvail,AcPhases,TempAmb,status,evse.charging,name,paused","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1050,"y":380,"wires":[["a10cd0c40b63124c"]]},{"id":"a10cd0c40b63124c","type":"debug","z":"25db056b03ced92c","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1060,"y":320,"wires":[]},{"id":"4b0d80a7c1fd0969","type":"file","z":"25db056b03ced92c","name":"Zoe-Daten.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":1080,"y":220,"wires":[[]]},{"id":"c2894743a4337225","type":"mqtt in","z":"25db056b03ced92c","name":"Wallbox E1","topic":"cfos_mqtt/get/E1","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":140,"y":500,"wires":[[]]},{"id":"cccc019d94e02ba9","type":"mqtt in","z":"25db056b03ced92c","name":"WiCAN Zoe","topic":"wican/7c2c67b3dbc1/auto","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":150,"y":260,"wires":[["c87c06cd72b023dc"]]},{"id":"50666639c1df4358","type":"mqtt in","z":"25db056b03ced92c","name":"WiCAN Status","topic":"wican/7c2c67b3dbc1/can/status","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":150,"y":80,"wires":[["c87c06cd72b023dc"]]},{"id":"5d7e0fe757642b61","type":"inject","z":"25db056b03ced92c","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":140,"y":560,"wires":[["aa5f09b82bc46c75"]]},{"id":"32153dcb5f9a7181","type":"inject","z":"25db056b03ced92c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":150,"y":320,"wires":[[]]},{"id":"53d392750c8b3e94","type":"inject","z":"25db056b03ced92c","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":140,"y":600,"wires":[["aa5f09b82bc46c75"]]},{"id":"aa5f09b82bc46c75","type":"change","z":"25db056b03ced92c","name":"status>>e1_status","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":560,"wires":[["c87c06cd72b023dc"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"9e2a04412f213d0e","type":"inject","z":"25db056b03ced92c","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":130,"y":440,"wires":[["c87c06cd72b023dc"]]},{"id":"4ae8da1a1354abba","type":"inject","z":"25db056b03ced92c","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":140,"y":320,"wires":[["c87c06cd72b023dc"]]},{"id":"50f30a2f5470fbe7","type":"rbe","z":"25db056b03ced92c","name":"evse.charging","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload.evse.charging","topi":"topic","x":780,"y":440,"wires":[["d4985a5642cdb34b","5cd0d9d34e8abbfc"]]},{"id":"fbf5df04a960d986","type":"debug","z":"25db056b03ced92c","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":220,"wires":[]},{"id":"5cd0d9d34e8abbfc","type":"debug","z":"25db056b03ced92c","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":520,"wires":[]},{"id":"ed4896539379c123","type":"inject","z":"25db056b03ced92c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":130,"y":360,"wires":[["c87c06cd72b023dc"]]},{"id":"88a467ca61a6e249","type":"rbe","z":"25db056b03ced92c","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":true,"property":"payload.KwhAvail","topi":"topic","x":750,"y":620,"wires":[[]]},{"id":"5c944a233ddbd024","type":"mqtt-broker","name":"Raspi3","broker":"192.168.178.2","port":1883,"clientid":"","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

With the new timestamp format the negociation between numbers and strings is obsolete, now remain only points within numbers. But the time is 1 hour behind the real time, is it possible to correct this with low effort, otherwise I can tolerate this?

Now I tried to include some additionals tasks.

In the moment charging starts I want to have the next data set. So I included a 2nd filter for payload evse.charging in parallel. But this doesn’t work as expected.

I have the situation that there isn't yet Zoe Data in the moment when status goes online (Zoe blank). I prepare the system with the following Injektion sequence:

  • Status offline
  • Zoe blank and
  • Wallbox 0 (not charging)

Now i inject Status online, nothing happens, that’s ok.

Now I inject Zoe 32 (kWh) and would expect that comes one csv data set. But there come 2 data sets and debug 7 and 8 show me that on both pathes comes data. I expected that the path filtering evse.charging would be blocked in the moment the Zoe paylod activates.

Injecting Wallbox 1 (charging true) the same happens vice versa. Here also one result only shall come.

And the second task is that I want to have a data set each time the car battery is filled with 1 kWh more, starting from the level in the moment charging starts (testable with Zoe 32/33/34 injection).

My trial KwhAvail delta > 1 also does not what I want, seems to be more complex, especially with the relation to the start value.

My example covered this, I think you need to study and understand how the flow works, every time there is a mqtt input the join outputs a new object with the new values from the new mqtt message, plus the old values from the other mqtt nodes. The outputs are passed through the split join section to alter the numbers and replace the . with ,

i covered this in a previous reply. The ISO formatted timestamp I showed is a standard universal time, which you will learn is the best way to store timestamps. It means you can convert it to any local time you wish easily when you read back the data, and display it.
It is standard practice to store time stamps in a UTC form. If you store it in another way you will give your self issues later on when you want to display the data, or manipulate it.
As said before you can also store a local time if you wish. But this is all just advise, you can do as you wish.
Here is where you can see how to add a timezone to the $now() function, There is an example time zone in the last $fromMillis() examples. Date/Time functions · JSONata

You will need to explain your other issue more clearly, possibly with examples. As I am having difficulty understanding this.

Every time any data changes you will get a output. Your logic will have to deal with this.

The trigger by status is not as good, because often the Zoe data is not valid when status changes.

So I changed to trigger by payload “charging” based on your last setup and – that’s new – after every kWh more in the car battery.

This is the setup and I will try it tomorrow while loading the car. The simulation with the injections looks good.

[{"id":"d6a449f6899e28ad","type":"tab","label":"Flow 12","disabled":false,"info":"","env":[]},{"id":"91ee8a5744a34032","type":"inject","z":"d6a449f6899e28ad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":200,"y":220,"wires":[[]]},{"id":"9e5cf99ccc59dcd5","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":360,"wires":[["f19e25aa7768abd1"]]},{"id":"657097a325fc3678","type":"inject","z":"d6a449f6899e28ad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":200,"y":180,"wires":[[]]},{"id":"f19e25aa7768abd1","type":"join","z":"d6a449f6899e28ad","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"61","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1020,"y":360,"wires":[["6832ec801db09358","5025eae624d61c15","cd529078b843549e"]]},{"id":"7d789efc929b47b4","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":280,"wires":[["9e5cf99ccc59dcd5"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"6832ec801db09358","type":"debug","z":"d6a449f6899e28ad","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1250,"y":320,"wires":[]},{"id":"4e26b40f097232ef","type":"split","z":"d6a449f6899e28ad","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":830,"y":540,"wires":[["f8cd49181c2ee8d2"]]},{"id":"f8cd49181c2ee8d2","type":"switch","z":"d6a449f6899e28ad","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":950,"y":540,"wires":[["dbe48e91f5701a9a"],["09ff858f7b367d5e"]]},{"id":"dbe48e91f5701a9a","type":"template","z":"d6a449f6899e28ad","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":1100,"y":540,"wires":[["e6d922b1136264a9"]]},{"id":"09ff858f7b367d5e","type":"join","z":"d6a449f6899e28ad","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":950,"y":600,"wires":[["ad5df6ce57181e1f"]]},{"id":"e6d922b1136264a9","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1280,"y":540,"wires":[["09ff858f7b367d5e"]]},{"id":"ad5df6ce57181e1f","type":"csv","z":"d6a449f6899e28ad","name":"","spec":"rfc","sep":";","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,used_phases,power_w,Odometer,Plugged,SOC,KwhAvail,AcPhases,TempAmb,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1090,"y":600,"wires":[["ea666c02f2776c26","1c7af491625ecb72"]]},{"id":"ea666c02f2776c26","type":"debug","z":"d6a449f6899e28ad","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1260,"y":600,"wires":[]},{"id":"5edc31645ea75ce1","type":"mqtt in","z":"d6a449f6899e28ad","name":"Wallbox E1","topic":"cfos_mqtt/get/E1","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":180,"y":300,"wires":[["7d789efc929b47b4"]]},{"id":"d4db7c3be6544dd2","type":"mqtt in","z":"d6a449f6899e28ad","name":"WiCAN Zoe","topic":"wican/7c2c67b3dbc1/auto","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":190,"y":480,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"eb622f59465b40a7","type":"mqtt in","z":"d6a449f6899e28ad","name":"WiCAN Status","topic":"wican/7c2c67b3dbc1/can/status","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":190,"y":120,"wires":[[]]},{"id":"cbdc89d66f099e4d","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":540,"wires":[[]]},{"id":"8d8e19f16a1980fb","type":"inject","z":"d6a449f6899e28ad","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":180,"y":540,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"96fc1fecad35139d","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":580,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"906fa60c0b5959fa","type":"inject","z":"d6a449f6899e28ad","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":360,"wires":[["7d789efc929b47b4"]]},{"id":"6872232f6e53da69","type":"inject","z":"d6a449f6899e28ad","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":400,"wires":[["7d789efc929b47b4"]]},{"id":"5025eae624d61c15","type":"rbe","z":"d6a449f6899e28ad","name":"evse.charging","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.evse.charging","topi":"topic","x":660,"y":540,"wires":[["4e26b40f097232ef"]]},{"id":"cd529078b843549e","type":"rbe","z":"d6a449f6899e28ad","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":true,"property":"payload.KwhAvail","topi":"topic","x":650,"y":600,"wires":[["4e26b40f097232ef"]]},{"id":"d4d3892486845741","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":620,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"246fc1139d60bf66","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":660,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"1c7af491625ecb72","type":"file","z":"d6a449f6899e28ad","name":"Zoe-Daten.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":1280,"y":660,"wires":[[]]},{"id":"5c944a233ddbd024","type":"mqtt-broker","name":"Raspi3","broker":"192.168.178.2","port":1883,"clientid":"","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

It seems to work, some older nodes seemed to disturb me, I think I can fix the last porblems alone.
Only one question else.
I do not find the right syntax to put msg evse.charging into the csv node. With ...,evse.charging,...or ...,evse:charging,... or only ...,charging,... I get no data and in the user Guide i find nothing helpful.

You would need to move the evse properties to a payload.name property.
In this example i move payload.evse.charging to the payload.evse_charging.

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":120,"y":260,"wires":[["89579474bdcc9cc4"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":280,"wires":[["17b03cc909c256a2"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":120,"y":300,"wires":[["89579474bdcc9cc4"]]},{"id":"17b03cc909c256a2","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"63","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":860,"y":360,"wires":[["eee6cfe0bf572933","698d8dd848a429b4"]]},{"id":"7979fda9689fa078","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{     \"Odometer\": 7159,     \"Plugged\": 0,     \"SOC\": 67.23,     \"PowerAvail\": 0,     \"AcPhases\": 3,     \"TempAmb\": 5.7,     \"Batt12v\": 13.54,     \"SOH\": 97.04,     \"KwhAvail\": 32.62,     \"KwhCharged\": 360715.78,     \"AcCurrent\": 0,     \"AcVoltage\": 0 }","payloadType":"json","x":120,"y":400,"wires":[["17b03cc909c256a2"]]},{"id":"86149a8aa6346d8b","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"},{"t":"move","p":"payload.evse.charging","pt":"msg","to":"payload.evse_charging","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":360,"wires":[["17b03cc909c256a2"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"eee6cfe0bf572933","type":"debug","z":"667cec54c048503c","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1010,"y":360,"wires":[]},{"id":"698d8dd848a429b4","type":"rbe","z":"667cec54c048503c","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.status","topi":"topic","x":170,"y":460,"wires":[["11c1b2d8775266f7"]]},{"id":"6ad58402458bfd9a","type":"inject","z":"667cec54c048503c","name":"cfos_mqtt/get/E1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":120,"y":360,"wires":[["86149a8aa6346d8b"]]},{"id":"11c1b2d8775266f7","type":"split","z":"667cec54c048503c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":290,"y":460,"wires":[["034c67556431f007"]]},{"id":"034c67556431f007","type":"switch","z":"667cec54c048503c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":410,"y":460,"wires":[["48bd2347f98ade8c"],["4225edb4d199ec01"]]},{"id":"48bd2347f98ade8c","type":"template","z":"667cec54c048503c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":560,"y":460,"wires":[["b5dfadf7f077b97a"]]},{"id":"4225edb4d199ec01","type":"join","z":"667cec54c048503c","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":410,"y":520,"wires":[["3239c497b3c37ccb"]]},{"id":"b5dfadf7f077b97a","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":460,"wires":[["4225edb4d199ec01"]]},{"id":"3239c497b3c37ccb","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"timestamp,total_energy,used_phases,power_w,Odometer,Plugged,SOC,KwhAvail,AcPhases,TempAmb,evse_charging,status","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":550,"y":520,"wires":[["ac0464631b5580fe"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":580,"y":560,"wires":[]}]

Thanks, this works.

And the last „feature“ is the following:


[{"id":"d6a449f6899e28ad","type":"tab","label":"Flow 12","disabled":false,"info":"","env":[]},{"id":"91ee8a5744a34032","type":"inject","z":"d6a449f6899e28ad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":200,"y":220,"wires":[[]]},{"id":"9e5cf99ccc59dcd5","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00:00 GMT+01:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":360,"wires":[["f19e25aa7768abd1"]]},{"id":"657097a325fc3678","type":"inject","z":"d6a449f6899e28ad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":200,"y":180,"wires":[[]]},{"id":"f19e25aa7768abd1","type":"join","z":"d6a449f6899e28ad","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"62","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":900,"y":360,"wires":[["5025eae624d61c15","cd529078b843549e"]]},{"id":"6832ec801db09358","type":"debug","z":"d6a449f6899e28ad","name":"debug charging","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1100,"y":440,"wires":[]},{"id":"4e26b40f097232ef","type":"split","z":"d6a449f6899e28ad","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":710,"y":540,"wires":[["f8cd49181c2ee8d2"]]},{"id":"f8cd49181c2ee8d2","type":"switch","z":"d6a449f6899e28ad","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":830,"y":540,"wires":[["dbe48e91f5701a9a"],["09ff858f7b367d5e"]]},{"id":"dbe48e91f5701a9a","type":"template","z":"d6a449f6899e28ad","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":980,"y":540,"wires":[["e6d922b1136264a9"]]},{"id":"09ff858f7b367d5e","type":"join","z":"d6a449f6899e28ad","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":830,"y":600,"wires":[["ad5df6ce57181e1f"]]},{"id":"e6d922b1136264a9","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":540,"wires":[["09ff858f7b367d5e"]]},{"id":"ad5df6ce57181e1f","type":"csv","z":"d6a449f6899e28ad","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\r\\n","temp":"timestamp,Plugged,evse_charging,used_phases,AcPhases,power_w,total_energy,Odometer,SOC,KwhAvail,TempAmb","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":970,"y":600,"wires":[["ea666c02f2776c26","1c7af491625ecb72"]]},{"id":"ea666c02f2776c26","type":"debug","z":"d6a449f6899e28ad","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1140,"y":600,"wires":[]},{"id":"5edc31645ea75ce1","type":"mqtt in","z":"d6a449f6899e28ad","name":"Wallbox E1","topic":"cfos_mqtt/get/E1","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":180,"y":300,"wires":[[]]},{"id":"d4db7c3be6544dd2","type":"mqtt in","z":"d6a449f6899e28ad","name":"WiCAN Zoe","topic":"wican/7c2c67b3dbc1/auto","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":190,"y":480,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"eb622f59465b40a7","type":"mqtt in","z":"d6a449f6899e28ad","name":"WiCAN Status","topic":"wican/7c2c67b3dbc1/can/status","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":190,"y":120,"wires":[[]]},{"id":"cbdc89d66f099e4d","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":540,"wires":[[]]},{"id":"8d8e19f16a1980fb","type":"inject","z":"d6a449f6899e28ad","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":180,"y":540,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"96fc1fecad35139d","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":580,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"906fa60c0b5959fa","type":"inject","z":"d6a449f6899e28ad","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":360,"wires":[["0a3160c07e17229a"]]},{"id":"6872232f6e53da69","type":"inject","z":"d6a449f6899e28ad","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":400,"wires":[["0a3160c07e17229a"]]},{"id":"5025eae624d61c15","type":"rbe","z":"d6a449f6899e28ad","name":"evse_charging","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.evse_charging","topi":"topic","x":540,"y":540,"wires":[["4e26b40f097232ef","6832ec801db09358"]]},{"id":"cd529078b843549e","type":"rbe","z":"d6a449f6899e28ad","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":true,"property":"payload.KwhAvail","topi":"topic","x":530,"y":600,"wires":[["051e0ccc9a72f968","4e26b40f097232ef"]]},{"id":"d4d3892486845741","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":620,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"246fc1139d60bf66","type":"inject","z":"d6a449f6899e28ad","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":170,"y":660,"wires":[["9e5cf99ccc59dcd5"]]},{"id":"1c7af491625ecb72","type":"file","z":"d6a449f6899e28ad","name":"Zoe-Daten_12.csv","filename":"\\\\fritz.box\\AremoricaNAS\\backup\\micha\\Dokumente\\NodeRed\\Zoe-Daten_12.csv","filenameType":"str","appendNewline":false,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":1170,"y":660,"wires":[[]]},{"id":"0a3160c07e17229a","type":"change","z":"d6a449f6899e28ad","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"},{"t":"move","p":"payload.evse.charging","pt":"msg","to":"payload.evse_charging","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":220,"wires":[["9e5cf99ccc59dcd5"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"051e0ccc9a72f968","type":"debug","z":"d6a449f6899e28ad","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":700,"wires":[]},{"id":"5c944a233ddbd024","type":"mqtt-broker","name":"Raspi3","broker":"192.168.178.2","port":1883,"clientid":"","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

Like in real situation I start the test with alternating Wallbox 0 and Zoe blank some times, nothing happens, ok

Then comes the Zoe data: alternating Wallbox 0 and Zoe 32, nothing happens, ok

Then Wallbox 1 (charging=true), now comes one data set, very nice, alternating with Zoe32, nothing more happens, ok

Sometimes later instead of Zoe 32 comes Zoe 33 (33,62kWh), the condition KwhAvail delta>1 is filled and I get one data set. That’s what I want.

But now, with the next Injection of Wallbox 1, comes a 2nd data set, together with a message at debug 1, though the filter condition for KwhAvail delta>1 is not fulfilled.

Now I can again alternate between Wallbox 1 and Zoe33 and nothing happens, very nice.

Now I replace Zoe 33 with Zoe34 and get one data set, very nice, but again injecting next Wallbox 1, I get an additional data set that is not wanted.

As last I inject a Wallbox 0 and get one message that I want have. OK

How can I suppress the duplicate message each time the kwh delta condition fulfilles?

Here is the Output to the csv file:


2025-01-04T17:51:22Z;0;false;1;3;0;715900;7159;67,23;32,62;5,7 (situation before)

2025-01-04T17:52:32Z;0;true;1;3;0;715900;7159;67,23;32,62;5,7 >ok

2025-01-04T17:53:06Z;0;true;1;3;0;715900;7159;67,23;33,62;5,7 >ok

2025-01-04T17:53:12Z;0;true;1;3;0;715900;7159;67,23;33,62;5,7 >???, no difference to the data set before

2025-01-04T18:07:36Z;0;true;1;3;0;715900;7159;67,23;34,62;5,7 >ok

2025-01-04T18:11:04Z;0;true;1;3;0;715900;7159;67,23;34,62;5,7 >???, no difference to the data set before

2025-01-04T18:13:39Z;0;false;1;3;0;715900;7159;67,23;34,62;5,7 >ok

Try unchecking Apply mode separately for each in the filter nodes.

And here is probably a better flow configeration, it should reduce the use of the split join segment.

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":120,"y":260,"wires":[["89579474bdcc9cc4"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":280,"wires":[["17b03cc909c256a2"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":120,"y":300,"wires":[["89579474bdcc9cc4"]]},{"id":"17b03cc909c256a2","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"63","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":860,"y":360,"wires":[["eee6cfe0bf572933","61784edd9fb02b1c","5c49636ddd3d3f49"]]},{"id":"4225edb4d199ec01","type":"join","z":"667cec54c048503c","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":590,"y":420,"wires":[["17b03cc909c256a2"]]},{"id":"eee6cfe0bf572933","type":"debug","z":"667cec54c048503c","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":360,"wires":[]},{"id":"61784edd9fb02b1c","type":"rbe","z":"667cec54c048503c","name":"evse_charging","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.evse_charging","topi":"topic","x":880,"y":220,"wires":[["0196323d1703abfa"]]},{"id":"5c49636ddd3d3f49","type":"rbe","z":"667cec54c048503c","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":false,"property":"payload.KwhAvail","topi":"topic","x":890,"y":260,"wires":[["0196323d1703abfa"]]},{"id":"034c67556431f007","type":"switch","z":"667cec54c048503c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":390,"y":480,"wires":[["48bd2347f98ade8c"],["4225edb4d199ec01"]]},{"id":"b5dfadf7f077b97a","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":480,"wires":[["4225edb4d199ec01"]]},{"id":"0196323d1703abfa","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\r\\n","temp":"timestamp,Plugged,evse_charging,used_phases,AcPhases,power_w,total_energy,Odometer,SOC,KwhAvail,TempAmb","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1050,"y":240,"wires":[["ac0464631b5580fe"]]},{"id":"11c1b2d8775266f7","type":"split","z":"667cec54c048503c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":390,"y":420,"wires":[["034c67556431f007"]]},{"id":"48bd2347f98ade8c","type":"template","z":"667cec54c048503c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":560,"y":480,"wires":[["b5dfadf7f077b97a"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1200,"y":240,"wires":[]},{"id":"86149a8aa6346d8b","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"},{"t":"move","p":"payload.evse.charging","pt":"msg","to":"payload.evse_charging","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":360,"wires":[["11c1b2d8775266f7"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"4ae8da1a1354abba","type":"inject","z":"667cec54c048503c","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":120,"y":500,"wires":[["11c1b2d8775266f7"]]},{"id":"32153dcb5f9a7181","type":"inject","z":"667cec54c048503c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":540,"wires":[["11c1b2d8775266f7"]]},{"id":"ed4896539379c123","type":"inject","z":"667cec54c048503c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":580,"wires":[["11c1b2d8775266f7"]]},{"id":"9d489ceaa8bc2e53","type":"inject","z":"667cec54c048503c","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":620,"wires":[["11c1b2d8775266f7"]]},{"id":"9e2a04412f213d0e","type":"inject","z":"667cec54c048503c","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":660,"wires":[["11c1b2d8775266f7"]]},{"id":"5d7e0fe757642b61","type":"inject","z":"667cec54c048503c","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":100,"y":360,"wires":[["86149a8aa6346d8b"]]},{"id":"53d392750c8b3e94","type":"inject","z":"667cec54c048503c","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":100,"y":400,"wires":[["86149a8aa6346d8b"]]}]

p.s there is no need to send the mqtt nodes as they are of no use in testing, but every time i have to delete and remove the unused config node.

Success!
Now everything is ok, thank you for the help and the startup lesson with node red. It is a totally other programming as with assembler, Fortran and C, what I learnt as I was still working.
All the best for 2025!
Micha

1 Like

looking at your code I've seen that the time stamp stays at the time of the status. I changed it this way.

[{"id":"53cf414999bc06d7","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"968ab8c262f65516","type":"inject","z":"53cf414999bc06d7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":200,"y":140,"wires":[["f9dde2c172c826c5"]]},{"id":"f9dde2c172c826c5","type":"change","z":"53cf414999bc06d7","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":160,"wires":[["f067d2d67e0150b4"]]},{"id":"17fee1292cb79d59","type":"inject","z":"53cf414999bc06d7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":200,"y":180,"wires":[["f9dde2c172c826c5"]]},{"id":"f067d2d67e0150b4","type":"join","z":"53cf414999bc06d7","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"63","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":940,"y":240,"wires":[["b43a2d600b7ca2fc","c41e6677eb55af2b","cd4310270f9d6bc6"]]},{"id":"633b5d19f02c18c4","type":"join","z":"53cf414999bc06d7","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":670,"y":300,"wires":[["f9dde2c172c826c5"]]},{"id":"b43a2d600b7ca2fc","type":"debug","z":"53cf414999bc06d7","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1170,"y":240,"wires":[]},{"id":"c41e6677eb55af2b","type":"rbe","z":"53cf414999bc06d7","name":"evse_charging","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.evse_charging","topi":"topic","x":960,"y":100,"wires":[["479a8a09e2ed31bc"]]},{"id":"cd4310270f9d6bc6","type":"rbe","z":"53cf414999bc06d7","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":false,"property":"payload.KwhAvail","topi":"topic","x":970,"y":140,"wires":[["479a8a09e2ed31bc"]]},{"id":"9e37d278fcbb6faf","type":"switch","z":"53cf414999bc06d7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":470,"y":360,"wires":[["d705ed6b28b887c2"],["633b5d19f02c18c4"]]},{"id":"d74f5e1e6eb4b2bc","type":"change","z":"53cf414999bc06d7","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":360,"wires":[["633b5d19f02c18c4"]]},{"id":"479a8a09e2ed31bc","type":"csv","z":"53cf414999bc06d7","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\r\\n","temp":"timestamp,Plugged,evse_charging,used_phases,AcPhases,power_w,total_energy,Odometer,SOC,KwhAvail,TempAmb","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1130,"y":120,"wires":[["1171b7c3994f4962"]]},{"id":"79d7b81bcf06e732","type":"split","z":"53cf414999bc06d7","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":470,"y":300,"wires":[["9e37d278fcbb6faf"]]},{"id":"d705ed6b28b887c2","type":"template","z":"53cf414999bc06d7","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":640,"y":360,"wires":[["d74f5e1e6eb4b2bc"]]},{"id":"1171b7c3994f4962","type":"debug","z":"53cf414999bc06d7","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1280,"y":120,"wires":[]},{"id":"3fbcc698567203ab","type":"change","z":"53cf414999bc06d7","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"},{"t":"move","p":"payload.evse.charging","pt":"msg","to":"payload.evse_charging","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":240,"wires":[["79d7b81bcf06e732"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"59edf757f85e6b8e","type":"inject","z":"53cf414999bc06d7","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":200,"y":380,"wires":[["79d7b81bcf06e732"]]},{"id":"0620572b3da20779","type":"inject","z":"53cf414999bc06d7","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":420,"wires":[["79d7b81bcf06e732"]]},{"id":"3d2877b2e32b4b8e","type":"inject","z":"53cf414999bc06d7","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":460,"wires":[["79d7b81bcf06e732"]]},{"id":"5bc607e352250a61","type":"inject","z":"53cf414999bc06d7","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":500,"wires":[["79d7b81bcf06e732"]]},{"id":"b39c210672a961ec","type":"inject","z":"53cf414999bc06d7","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":190,"y":540,"wires":[["79d7b81bcf06e732"]]},{"id":"0c292a55654048c6","type":"inject","z":"53cf414999bc06d7","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":240,"wires":[["3fbcc698567203ab"]]},{"id":"c161ac738456d350","type":"inject","z":"53cf414999bc06d7","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":180,"y":280,"wires":[["3fbcc698567203ab"]]}]

Slightly more efficient to place it after the filter nodes and reduce the count.

[{"id":"9180d579ee033784","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"online\"}","payloadType":"json","x":120,"y":260,"wires":[["17b03cc909c256a2"]]},{"id":"17b03cc909c256a2","type":"join","z":"667cec54c048503c","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"key","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"62","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":600,"y":320,"wires":[["eee6cfe0bf572933","61784edd9fb02b1c","5c49636ddd3d3f49"]]},{"id":"836d95041d6212ac","type":"inject","z":"667cec54c048503c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/can/status","payload":"{\"status\":\"offline\"}","payloadType":"json","x":120,"y":300,"wires":[["17b03cc909c256a2"]]},{"id":"4225edb4d199ec01","type":"join","z":"667cec54c048503c","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":590,"y":420,"wires":[["17b03cc909c256a2"]]},{"id":"eee6cfe0bf572933","type":"debug","z":"667cec54c048503c","name":"debug 2578","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":320,"wires":[]},{"id":"61784edd9fb02b1c","type":"rbe","z":"667cec54c048503c","name":"evse_charging","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload.evse_charging","topi":"topic","x":660,"y":220,"wires":[["89579474bdcc9cc4"]]},{"id":"5c49636ddd3d3f49","type":"rbe","z":"667cec54c048503c","name":"KwhAvail delta > 1","func":"deadbandEq","gap":"1","start":"","inout":"out","septopics":false,"property":"payload.KwhAvail","topi":"topic","x":670,"y":260,"wires":[["89579474bdcc9cc4"]]},{"id":"034c67556431f007","type":"switch","z":"667cec54c048503c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":390,"y":480,"wires":[["48bd2347f98ade8c"],["4225edb4d199ec01"]]},{"id":"b5dfadf7f077b97a","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":".","fromt":"str","to":",","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":480,"wires":[["4225edb4d199ec01"]]},{"id":"89579474bdcc9cc4","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"set","p":"payload.timestamp","pt":"msg","to":"$now(\"[Y]-[M01]-[D01]T[H01]:[m01]:[s01]Z\",\"00:00\")\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":240,"wires":[["0196323d1703abfa"]]},{"id":"11c1b2d8775266f7","type":"split","z":"667cec54c048503c","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","property":"payload","x":390,"y":420,"wires":[["034c67556431f007"]]},{"id":"48bd2347f98ade8c","type":"template","z":"667cec54c048503c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":560,"y":480,"wires":[["b5dfadf7f077b97a"]]},{"id":"0196323d1703abfa","type":"csv","z":"667cec54c048503c","name":"","spec":"rfc","sep":";","hdrin":true,"hdrout":"none","multi":"one","ret":"\\r\\n","temp":"timestamp,Plugged,evse_charging,used_phases,AcPhases,power_w,total_energy,Odometer,SOC,KwhAvail,TempAmb","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":1110,"y":240,"wires":[["ac0464631b5580fe"]]},{"id":"86149a8aa6346d8b","type":"change","z":"667cec54c048503c","name":"","rules":[{"t":"move","p":"payload.status","pt":"msg","to":"payload.e1_status","tot":"msg"},{"t":"move","p":"payload.evse.charging","pt":"msg","to":"payload.evse_charging","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":360,"wires":[["11c1b2d8775266f7"]],"info":"delete status as it is already in \none of the other incoming objects"},{"id":"32153dcb5f9a7181","type":"inject","z":"667cec54c048503c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":540,"wires":[["11c1b2d8775266f7"]]},{"id":"4ae8da1a1354abba","type":"inject","z":"667cec54c048503c","name":"Zoe blank","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{}","payloadType":"json","x":120,"y":500,"wires":[["11c1b2d8775266f7"]]},{"id":"ed4896539379c123","type":"inject","z":"667cec54c048503c","name":"Zoe 32","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":32.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":580,"wires":[["11c1b2d8775266f7"]]},{"id":"9d489ceaa8bc2e53","type":"inject","z":"667cec54c048503c","name":"Zoe 33","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":33.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":620,"wires":[["11c1b2d8775266f7"]]},{"id":"9e2a04412f213d0e","type":"inject","z":"667cec54c048503c","name":"Zoe 34","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/7c2c67b3dbc1/auto","payload":"{\"Odometer\":7159,\"Plugged\":0,\"SOC\":67.23,\"PowerAvail\":0,\"AcPhases\":3,\"TempAmb\":5.7,\"Batt12v\":13.54,\"SOH\":97.04,\"KwhAvail\":34.62,\"KwhCharged\":360715.78,\"AcCurrent\":0,\"AcVoltage\":0}","payloadType":"json","x":110,"y":660,"wires":[["11c1b2d8775266f7"]]},{"id":"ac0464631b5580fe","type":"debug","z":"667cec54c048503c","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1200,"y":240,"wires":[]},{"id":"5d7e0fe757642b61","type":"inject","z":"667cec54c048503c","name":"Wallbox 0","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":false,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":false,\"current\":0,\"enabled\":false,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":100,"y":360,"wires":[["86149a8aa6346d8b"]]},{"id":"53d392750c8b3e94","type":"inject","z":"667cec54c048503c","name":"Wallbox 1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"cfos_mqtt/get/E1","payload":"{\"dev_type\":\"evse_powerbrain\",\"device_enabled\":1,\"name\":\"Wallbox\",\"time\":1735750913,\"address\":\"evse:\",\"ip_address\":\"evse\",\"id\":1,\"dev_id\":\"E1\",\"number\":11,\"desc\":\"cFos Power Brain 22kW\",\"com_err\":false,\"com_err_secs\":94724,\"com_errors\":0,\"status\":\"\",\"last_error\":\"\",\"is_evse\":true,\"used_phases\":1,\"has_history\":true,\"hide_dev\":false,\"show_in_overview\":true,\"show_chart_in_dev_info\":false,\"show_chart_in_overview\":true,\"inputs\":\"0 0\",\"label\":\"\",\"rfid\":\"\",\"min_charging_cur\":6000,\"max_charging_cur\":20000,\"prio\":3,\"charging_enabled\":false,\"power_w\":0,\"current_l1\":0,\"current_l2\":0,\"current_l3\":0,\"last_set_charging_cur\":0,\"total_energy\":715900,\"ta_en\":-1,\"charging_dur\":0,\"phases\":0,\"phase_rotation\":0,\"state\":1,\"lreason\":0,\"model\":\"cFos,cFos Power Brain,2.0,2.2.1,W00-04YU\",\"paused\":true,\"pause_time\":40,\"pause_min_time\":40,\"needs_auth\":false,\"attach\":\"M3\",\"evse\":{\"dc_sensor_faults\":1,\"dc_last_fault_time\":\"1970-01-01T00:00:05.024Z\",\"dc_last_test_time\":\"2024-12-31T11:14:32.237Z\",\"dc_sensor_fault\":false,\"dc_sensor_glitches\":0,\"cp_state\":\"Standby\",\"cp_fault\":false,\"pp_state\":\"32 A\",\"charging\":true,\"current\":0,\"enabled\":true,\"phase_switch_time\":90,\"phase_switch_disconnect\":true,\"plug_locked\":false}}","payloadType":"json","x":100,"y":400,"wires":[["86149a8aa6346d8b"]]}]

Okay


I have an idea for a new project. Here I have more topics with the same structure. Is there a smart possibility to move all payloads "yxz" to "grid_xyz" without moving all one by one?

[{"id":"661be39b4df61718","type":"mqtt in","z":"be6250d9d9f84ee4","name":"Grid M4","topic":"cfos_mqtt/get/M4","qos":"2","datatype":"json","broker":"5c944a233ddbd024","nl":false,"rap":true,"rh":0,"inputs":0,"x":130,"y":640,"wires":[[]]},{"id":"5c944a233ddbd024","type":"mqtt-broker","name":"Raspi3","broker":"192.168.178.2","port":1883,"clientid":"","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

If this is a new topic it is best to mark this topic solved, mark the post that first solved the initial issue.

Then open a new topic with the new issue. It makes it easier for future readers to find solutions, they can search easier and not trawl through long topics, with multiple solutions in them.

p.s make sure this time you share more than a mqtt node. Infact don't share mqtt nodes (people can not use them as they do not have access to your broker), share injects that simulate the mqtt incoming message and topic.

Yes, indeed I catched the false node. I'll open a new topic.