I concur with Colin but anyway let me show you a way to do like you imagined. Perhaps you could simplify this flow as I quickly modified one already available.
[{"id":"558eab7.2aa3c54","type":"tab","label":"Flow control - XIAOMI","disabled":false,"info":"# **Route a message based on one of its properties**\n\n## **Problem**\nYou want to route the message according to the property msg.topic.\n\n## **Solution**\nUse the switch node configured with the property to be checked against the rules.\n\n## **Example**\n![messages](/ckbk/basic-flow-008.png)\n\n## **Discussion**\nYou can configure the switch node to check all rules or to stop after the first match.\nIf there is no match against any rule then the message will not be forwarded. Eventually a message can be forwarded to more than one output as long as the switch node is configured to check all rules and the check is positive for the concerned output."},{"id":"ad002ee.0792dd","type":"comment","z":"558eab7.2aa3c54","name":"Route a message based on one of its properties","info":"","x":260,"y":60,"wires":[]},{"id":"7ed3d509.d143cc","type":"function","z":"558eab7.2aa3c54","name":"Dataset Temp","func":"msg = {\ncmd: \"report\",\nmodel: \"weather.v1\",\nsid: \"158d000247gb41\",\nshort_id: 42598,\ndata: {\ntemperature: \"2780\"\n}\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":280,"wires":[["90d5ec2a.8dd76"]]},{"id":"7dd5574b.dc4268","type":"inject","z":"558eab7.2aa3c54","name":"Go","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":280,"wires":[["7ed3d509.d143cc"]]},{"id":"43d83f32.09e89","type":"debug","z":"558eab7.2aa3c54","name":"Gauge Temperature","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":960,"y":280,"wires":[]},{"id":"387757f9.44e348","type":"split","z":"558eab7.2aa3c54","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","x":630,"y":340,"wires":[["c823a60a.ffe0d8"]]},{"id":"90d5ec2a.8dd76","type":"change","z":"558eab7.2aa3c54","name":"Data to Payload","rules":[{"t":"move","p":"data","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":340,"wires":[["387757f9.44e348"]]},{"id":"c823a60a.ffe0d8","type":"switch","z":"558eab7.2aa3c54","name":"Route ","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"temperature","vt":"str"},{"t":"eq","v":"humidity","vt":"str"},{"t":"eq","v":"pressure","vt":"str"},{"t":"eq","v":"voltage","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":750,"y":340,"wires":[["43d83f32.09e89"],["158a42e3.3293ed"],["9c561e1.3e392e"],["c1bb023a.d380b"]]},{"id":"158a42e3.3293ed","type":"debug","z":"558eab7.2aa3c54","name":"Gauge Humidity","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":940,"y":320,"wires":[]},{"id":"9c561e1.3e392e","type":"debug","z":"558eab7.2aa3c54","name":"Gauge Pressure","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":940,"y":360,"wires":[]},{"id":"c1bb023a.d380b","type":"debug","z":"558eab7.2aa3c54","name":"Gauge Voltage","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":940,"y":400,"wires":[]},{"id":"fdad8628.fa0828","type":"function","z":"558eab7.2aa3c54","name":"Dataset Humi","func":"msg = {\ncmd: \"report\",\nmodel: \"weather.v1\",\nsid: \"158d000247gb41\",\nshort_id: 42598,\ndata: {\nhumidity: \"50\"\n}\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":320,"wires":[["90d5ec2a.8dd76"]]},{"id":"7e9eaf56.d169a","type":"inject","z":"558eab7.2aa3c54","name":"Go","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":320,"wires":[["fdad8628.fa0828"]]},{"id":"67afddc9.d1ba84","type":"function","z":"558eab7.2aa3c54","name":"Dataset Pres","func":"msg = {\ncmd: \"report\",\nmodel: \"weather.v1\",\nsid: \"158d000247gb41\",\nshort_id: 42598,\ndata: {\npressure: \"100\"\n}\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":360,"wires":[["90d5ec2a.8dd76"]]},{"id":"817c3331.191e2","type":"inject","z":"558eab7.2aa3c54","name":"Go","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":360,"wires":[["67afddc9.d1ba84"]]},{"id":"4128fc6.7e12504","type":"function","z":"558eab7.2aa3c54","name":"Dataset Temp","func":"msg = {\ncmd: \"report\",\nmodel: \"weather.v1\",\nsid: \"158d000247gb41\",\nshort_id: 42598,\ndata: {\nvoltage: \"12\"\n}\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":400,"wires":[["90d5ec2a.8dd76"]]},{"id":"996b6038.71d19","type":"inject","z":"558eab7.2aa3c54","name":"Go","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":400,"wires":[["4128fc6.7e12504"]]},{"id":"23993a4.a0b1dc6","type":"comment","z":"558eab7.2aa3c54","name":"Flow control","info":"","x":110,"y":200,"wires":[]}]