From your example I deduct that it is all solaranzeige
.
This should do the trick more flexible:
[{"id":"14a022506648ecd8","type":"debug","z":"dfd70fafb4d381bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":450,"y":680,"wires":[]},{"id":"b8e85eaee907f68a","type":"debug","z":"dfd70fafb4d381bc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":690,"y":680,"wires":[]},{"id":"9239fcc8dd1f03ab","type":"inject","z":"dfd70fafb4d381bc","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\t \"solaranzeige/wr1/ac-power\":220,\t \"solaranzeige/wr1/ac-frequency\":50.01,\t \"solaranzeige/wr2/ac-power\":225,\t \"solaranzeige/wr2/ac-frequency\":50.06,\t \"solaranzeige/pv-garage/zentralertimestamp\": 1678881301,\t \"solaranzeige/pv-garage/wattstundengesamtheute\": 4096.35,\t \"solaranzeige/pv-garage/firmware\": 1,\t \"solaranzeige/pv-garage/ac_ausgangsfrequenz\": 50.001197814941,\t \"solaranzeige/pv-garage/solarspannung_string_2\": 311.28298950195,\t \"solaranzeige/dumdidum/solarspannung_string_2\": 311.28298950195\t}","payloadType":"jsonata","x":290,"y":640,"wires":[["14a022506648ecd8","5c1c8ce1664b6345"]]},{"id":"5c1c8ce1664b6345","type":"change","z":"dfd70fafb4d381bc","name":"prepare data for influx","rules":[{"t":"set","p":"payload","pt":"msg","to":"(\t $divided := $spread(msg.payload).(\t {\t \"sensor\": $split($keys($)[0],\"/\")[1],\t $split($keys($)[0],\"/\")[2] : $lookup($, $keys($)[0])\t }\t );\t\t $distinct($divided.sensor).([\t $filter($divided, function($v, $i, $a) {$v.sensor = $} ) ~> $merge() \t ])\t)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":640,"wires":[["b8e85eaee907f68a","b6c8086220147b43"]]},{"id":"b6c8086220147b43","type":"split","z":"dfd70fafb4d381bc","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":670,"y":640,"wires":[["8093dce92045ed90"]]},{"id":"8093dce92045ed90","type":"debug","z":"dfd70fafb4d381bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":680,"wires":[]},{"id":"8a55489d629c5941","type":"influxdb out","z":"dfd70fafb4d381bc","influxdb":"e10beff6461faf32","name":"write solaranzeige to sensordb","measurement":"solaranzeige","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"organisation","bucket":"bucket","x":970,"y":640,"wires":[]},{"id":"e10beff6461faf32","type":"influxdb","hostname":"influxdb","port":"8086","protocol":"http","database":"sensordb","name":"","usetls":false,"tls":"","influxdbVersion":"1.x","url":"http://influxdb:8086","rejectUnauthorized":false}]
Result looks like this and could be easily sent to influxdb.
JSONata for reference: https://try.jsonata.org/K_ak_MUhp