Or with a join node and a couple of change node.
[{"id":"c1ee7660.0eee48","type":"change","z":"57675e72.26a0d8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":4380,"wires":[["7f335fe0.7fd38"]]},{"id":"a8755799.6a9c58","type":"ui_switch","z":"57675e72.26a0d8","name":"","label":"{{msg.label}}","tooltip":"","group":"8b5cde76.edd58","order":2,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":300,"y":4380,"wires":[["c1ee7660.0eee48"]]},{"id":"7f335fe0.7fd38","type":"join","z":"57675e72.26a0d8","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"1","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":370,"y":4440,"wires":[["adab6c12.45acd8"]]},{"id":"36097bde.040d7c","type":"inject","z":"57675e72.26a0d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"label","v":"device friendly name","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"this device","payload":"true","payloadType":"bool","x":130,"y":4380,"wires":[["a8755799.6a9c58","7f335fe0.7fd38"]]},{"id":"adab6c12.45acd8","type":"change","z":"57675e72.26a0d8","name":"","rules":[{"t":"move","p":"payload.value","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":4440,"wires":[["51b98dd9.43e6dc"]]},{"id":"51b98dd9.43e6dc","type":"debug","z":"57675e72.26a0d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":4500,"wires":[]},{"id":"8b5cde76.edd58","type":"ui_group","z":"","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"6","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
But it would be nice if the switch node could pass on it's label and topic.