Playing quite a while and wanted to share one of my combinator creations.
Since I use a lot of personal trains and trains in general, I created a smart train station supported by bots. Designed for trains stationed near my mall.
The trains payload will be set per constant combinator, bots bring stuff, the exact amount of set items will be loaded and train will be ready.
The Station is color indicated.
Red: No train in station - train is on the move.
Yellow: Train is loading or unloading (or waiting for stuff).
Green: Train is ready to go.
Blue: No payload set - train is in station (will be unloaded)
Examples of Usage:
Personal use - let train automatically drive back to station with circuit condition empty if you want to refill. You'll see green lights when train is loaded. Or if you are at your borders, building stuff, set up a simple station and send train back home with circuit condition "green > 0", so it automatically returns after refill.
For automated use - simply set circuit condition "green > 0". For example I use it also as supply train for far outposts, delivering new bots, repair kits and so on.
Good for transport of many different items. Easy to change the trains payload - no need to manually restrict inventory slots.
Bots will only deliver goods when train is stationed and "requesting" them. And the exact amount of set goods will be loaded.
But not the fastest while loading

If you want to define more than 18 different items (since constant combinators only have 18 slots), simply set a second constant combinator near the first one and connect both green and red wire to the first.
Set items in this combinator:
If you set combinator to off or clear everything in the combinator, stuff will be automatically unloaded (with max stack size (12)). If train is on the move, it will stop next time and do the unloading, color will be blue if everything is empty. If you change things in combinator while train isn't empty, it will load new stuff and unload the unwanted the same time (but unloading only with stack size of 1 - its reserved for emptying overfill while loading).
Important: dont overfill the cargo at the combinator and only use a maximum of 39 (of 40) inventory spaces, so the inserter won't clog.
Also made a version where you can use all 40 of 40 spaces, with more stack size changing logic, but uses more combinators and could need more time to load things.
Let me know if there are any questions.
Also if you are using any decorative mods like dectorio, the order of colors might be different. Since I originally created the station while using dectorio I could offer an easy solution for the different color order (since with that mod yellow is higher prioritised than blue).