I’m not sure this is at all useful to you, but there are aspects of what you want to do (I think) that are similar to what I do and wanted to do using various controllers of my own.
The first controller I did this with was Behringer controller (BCF-2000) that emulated a Mackie MCU. To get this doing what I wanted I created a GP extension that uses the MCU protocol. (MCU Protocol Control Extension - GP Extensions - Gig Performer Community)
The various Behringer xtouch controllers since then have all (as far as I know) implemented the same Mackie MCU protocol.
The learning curve on setting that up and using it isn’t trivial, and it’s frankly way overkill for what you’re doing. But if I understand what you want to do correctly, it may make your life easier because it already takes care of the synchronization of widgets, etc.
Keeping things real simple, let’s say you have 30 different rackspaces that all have some version of a “gain” knob. Let’s say you always want that on the first knob.
If you have that extension loaded, and you always want that gain knob linked to the left-most knob on your xtouch-mini then you just have to go into each rackspace and assign that knob widget a specific name. The extension will take care of the rest.
If it sounds like it might be useful, take a look at that MCU extension thread I linked.