@Chorum:
This is a bit of a rebuild of what you posted.
I put the example message in the function
node and use the inject
node to inject the message.
It works and the switches
get the right names.
[{"id":"8d08193c.f7a5d8","type":"ui_switch","z":"b9924a74.4d98f8","name":"","label":"{{msg.topic}}","tooltip":"","group":"ec41bf90.caf2a","order":1,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"ATESTEO/Wolfsburg/W16","style":"","onvalue":"true","onvalueType":"str","onicon":"","oncolor":"","offvalue":"false","offvalueType":"str","officon":"","offcolor":"","x":1170,"y":4070,"wires":[["a5f9774b.5510d8"]]},{"id":"4c68517d.8f0068","type":"ui_switch","z":"b9924a74.4d98f8","name":"","label":"{{msg.topic}}","tooltip":"","group":"ec41bf90.caf2a","order":2,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"ATESTEO/Wolfsburg/W16","style":"","onvalue":"true","onvalueType":"str","onicon":"","oncolor":"","offvalue":"false","offvalueType":"str","officon":"","offcolor":"","x":1170,"y":4100,"wires":[["7e837175.314d9"]]},{"id":"196b1998.e7208e","type":"ui_switch","z":"b9924a74.4d98f8","name":"","label":"{{msg.topic}}","tooltip":"","group":"ec41bf90.caf2a","order":3,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"ATESTEO/Wolfsburg/W16","style":"","onvalue":"true","onvalueType":"str","onicon":"","oncolor":"","offvalue":"false","offvalueType":"str","officon":"","offcolor":"","x":1170,"y":4130,"wires":[["623733d1.dbcdec"]]},{"id":"8dd6be10.f35b08","type":"ui_switch","z":"b9924a74.4d98f8","name":"","label":"{{msg.topic}}","tooltip":"","group":"ec41bf90.caf2a","order":4,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"ATESTEO/Wolfsburg/W16","style":"","onvalue":"true","onvalueType":"str","onicon":"","oncolor":"","offvalue":"false","offvalueType":"str","officon":"","offcolor":"","x":1170,"y":4160,"wires":[["2ae85942.130a56"]]},{"id":"6c00509e.93aca","type":"change","z":"b9924a74.4d98f8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.MQTTWert1name","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":4070,"wires":[["8d08193c.f7a5d8"]]},{"id":"c32ad7b3.fd898","type":"change","z":"b9924a74.4d98f8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.MQTTWert2name","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":4100,"wires":[["4c68517d.8f0068"]]},{"id":"a7c9c4f7.82dc38","type":"change","z":"b9924a74.4d98f8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.MQTTWert3name","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":4130,"wires":[["196b1998.e7208e"]]},{"id":"2a01eaa3.970afe","type":"change","z":"b9924a74.4d98f8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.MQTTWert4name","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1020,"y":4160,"wires":[["8dd6be10.f35b08"]]},{"id":"f319b7aa.05703","type":"function","z":"b9924a74.4d98f8","name":"","func":"msg = {\"topic\":\"ATESTEO/Wolfsburg/W16\",\"payload\":{\"MQTTWert1\":\"25.1\",\"MQTTWert1name\":\"T_BoxenLuft\",\"MQTTWert2\":\"-101\",\"MQTTWert2name\":\"N_EMA_VL\",\"MQTTWert3\":\"932\",\"MQTTWert3name\":\"n_Antrieb\",\"MQTTWert4\":\"269\",\"MQTTWert4name\":\"M_Antrieb\",\"Status\":\"Läuft\"},\"qos\":1,\"retain\":false,\"_topic\":\"ATESTEO/Wolfsburg/W16\",\"_msgid\":\"3f4512b0.dc5bee\",\"kColor\":\"black\",\"vColor\":\"black\",\"template\":\"<html>\\n<head>\\n<style>\\ntable.FixedTable\\n{\\n table-layout: fixed;\\n border: 0;\\n}\\n</style> \\n</head>\\n<body>\\n<table class=\\\"FixedTable\\\">\\n <tbody>\\n <tr ng-repeat=\\\"(k,v) in msg.payload\\\" ng-if=\\\"k != 'Item'\\\">\\n <td style=\\\"width: 250; color:{{msg.kColor}}\\\">{{k}}</td>\\n <td style=\\\"text-align:justify; color:{{msg.vColor}}\\\">{{v}}</td>\\n </tr>\\n </tbody>\\n</table>\\n</body>\\n</html>\",\"color\":\"lime\"};\nreturn msg;","outputs":1,"noerr":0,"x":990,"y":4370,"wires":[["6c00509e.93aca","87b86163.c09e5","c32ad7b3.fd898","a7c9c4f7.82dc38","6525dbf6.870b14","2a01eaa3.970afe"]]},{"id":"f87fa938.93f1b","type":"inject","z":"b9924a74.4d98f8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":830,"y":4370,"wires":[["f319b7aa.05703"]]},{"id":"ec41bf90.caf2a","type":"ui_group","z":"","name":"Messwerte auswählen","tab":"260a696.4ccbf96","order":1,"disp":true,"width":"29","collapse":false},{"id":"260a696.4ccbf96","type":"ui_tab","z":"","name":"W16-Chart","icon":"dashboard","order":11,"disabled":false,"hidden":false}]
See how the switch
nodes have slightly been changed.
This isn't too important as you said the original way worked.
But I would like to stress it may be better if you do it the way I show in this code because we are going to build on that part later.
Can you confirm you are getting this part working?