Need some help with this flow

some hints to make the following flow a little more nice? [{"id":"077c63c7e5aed69c","type":"server-state-changed","z":"eade6bf80ed1b34d","name":"MEDIA ON/OFF","server":"b08a1a82.6aa518","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["event.display_ch5"],"substring":,"regex":},"outputInitially":false,"ifState":"","ifStateType":"str","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"event.display_ch5","valueType":"str"}],"x":120,"y":400,"wires":[["b4ae4b9d600e98a5"]]},{"id":"35be1a63067534d5","type":"server-state-changed","z":"eade6bf80ed1b34d","name":"BEAMER ON/OFF","server":"b08a1a82.6aa518","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["event.display_ch6"],"substring":,"regex":},"outputInitially":false,"ifState":"","ifStateType":"str","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"event.display_ch6","valueType":"str"}],"x":120,"y":460,"wires":[["b4ae4b9d600e98a5"]]},{"id":"c2d1f50a693c646c","type":"server-state-changed","z":"eade6bf80ed1b34d","name":"CINEMA ON/OFF","server":"b08a1a82.6aa518","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["event.display_ch2"],"substring":,"regex":},"outputInitially":false,"ifState":"","ifStateType":"str","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"event.display_ch2","valueType":"str"}],"x":120,"y":520,"wires":[["b4ae4b9d600e98a5"]]},{"id":"f1ecef90c815f7d5","type":"server-state-changed","z":"eade6bf80ed1b34d","name":"PC-MASTER","server":"b08a1a82.6aa518","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["event.display_ch7"],"substring":,"regex":},"outputInitially":false,"ifState":"","ifStateType":"str","outputOnlyOnStateChange":false,"for":"","forType":"num","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"event.display_ch7","valueType":"str"}],"x":120,"y":580,"wires":[["b4ae4b9d600e98a5"]]},{"id":"b4ae4b9d600e98a5","type":"function","z":"eade6bf80ed1b34d","name":"Switch Router","func":"const switches = {\n 'event.display_ch5': 'switch.psm_multimedia',\n 'event.display_ch6': 'switch.psm_beamer',\n 'event.display_ch2': 'switch.psm_cinema',\n 'event.display_ch7': 'switch.psm_pc_master'\n};\n\nconst entity_id = switches[msg.topic];\n\nif (entity_id) {\n msg.payload = { entity_id: entity_id };\n return msg;\n}\n\nnode.error('Unknown entity triggered: ' + msg.topic, msg);\nreturn null;","outputs":1,"x":400,"y":480,"wires":[["3142d4e6a56da551"]]},{"id":"3142d4e6a56da551","type":"api-call-service","z":"eade6bf80ed1b34d","name":"Aktion ausführen","server":"b08a1a82.6aa518","version":7,"debugenabled":false,"action":"switch.toggle","floorId":,"areaId":,"deviceId":,"entityId":,"labelId":,"data":"{"entity_id": "{{payload.entity_id}}"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":,"queue":"none","blockInputOverrides":false,"domain":"switch","service":"toggle","x":670,"y":480,"wires":[]},{"id":"b08a1a82.6aa518","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]

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 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

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