Eratic behavior with two modules

I get erratic behavior from my two grid controllers when I connect them together to the computer or my Midi Interface (it also accepts USB Midi Devices). Sometimes the second module (the one without cable and just magnetically connected) doesn’t appear in the grid editor at all, sometimes it does not load all features (e.g. not all lights work and not all midi is sent). Both of the modules alone work without any problem, but together it is a mess and totally unreliable. What could be the reason for this behavior? It does not seem to be a power problem, as I tried it on USB ports that load an iPad or Laptop. But something is wrong with the way it is programmed.

I am not really sure how to share the code here, as I cannot attach any downloads … and uploading via cloud does not seem to work for me.

{
    "id": "46aee002-731e-4b22-b097-60c421384f05",
    "modifiedAt": "2024-04-05T02:06:54.915Z",
    "name": "Cubase Controller EF44 coded",
    "description": "Click here to add description",
    "type": "EF44",
    "version": {
        "major": "1",
        "minor": "2",
        "patch": "51"
    },
    "configType": "profile",
    "configs": [
        {
            "controlElementNumber": 0,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] self:emo(2) self:ev0(90) self:bmo(1) self:bmi(0)self:bma(1) glc(0,1,255,0,0,0) glp(0,1,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] if self:bva()==0 then bank=1;glc(4,1,0,255,0,0)glc(5,1,255,214,0,0)glc(6,1,255,0,0,0)glc(7,1,255,104,0,0)elseif self:bva()==1 then bank=2;glc(4,1,255,218,0,0)glc(5,1,0,255,228,0)glc(6,1,0,0,255,0)glc(7,1,255,0,180,0)end;glp(0,1,self:bva()*127) ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@cb]] local val,Enc1cc=self:eva(),12 if bank==1 then Enc1cc=12 elseif bank==2 then Enc1cc=16 end gms(0,176,Enc1cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 1,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] self:emo(2) self:ev0(90) self:bmo(1) self:bmi(0)self:bma(1) self.enc1cc=13 glc(1,1,0,190,255,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] if self:bst()>0 then gms(0,144,0,127) else gms(0,144,0,0) end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@cb]] local val,Enc1cc=self:eva(),12 if bank==1 then Enc2cc=13 elseif bank==2 then Enc2cc=17 end gms(0,176,Enc2cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 2,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] self:emo(2) self:ev0(90) self:bmo(1) self:bmi(0)self:bma(1) self.enc1cc=14 glc(2,1,255,204,0,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] if self:bst()>0 then gms(0,144,1,127) else gms(0,144,1,0) end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@cb]] local val,Enc1cc=self:eva(),12 if bank==1 then Enc3cc=14 elseif bank==2 then Enc3cc=18 end gms(0,176,Enc3cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 3,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] self:emo(2) self:ev0(90) self:bmo(1) self:bmi(0)self:bma(1) self.enc1cc=15 glc(3,1,255,8,26,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] if self:bst()>0 then gms(0,144,2,127) else gms(0,144,2,0) end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@cb]] local val,Enc1cc=self:eva(),15 if bank==1 then Enc4cc=15 elseif bank==2 then Enc4cc=19 end gms(0,176,Enc4cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 4,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] local val=self:pva() glc(4,1,102,255,0,0) glp(4,1,val) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@cb]] local val,Fad1cc=self:pva(),4 if bank==1 then Fad1cc=4 elseif bank==2 then Fad1cc=5 end gms(ch,176,Fad1cc,val) glp(4,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 5,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] local val=self:pva() glc(5,1,255,214,0,0) glp(5,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@cb]] local val,Fad1cc=self:pva(),4 if bank==1 then Fad2cc=3 elseif bank==2 then Fad2cc=6 end gms(0,176,Fad2cc,val) glp(5,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 6,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] local val=self:pva() glc(6,1,255,0,0,0) glp(6,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@cb]] local val,Fad3cc=self:pva(),11 if bank==1 then Fad3cc=11 elseif bank==2 then Fad3cc=7 end gms(0,176,Fad3cc,val) glp(6,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 7,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] local val=self:pva() glc(7,1,255,104,0,0) glp(7,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@cb]] local val,Fad4cc=self:pva(),1 if bank==1 then Fad4cc=1 elseif bank==2 then Fad4cc=8 end gms(0,176,Fad4cc,val) glp(7,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 255,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] bank=1 ?>"
                },
                {
                    "event": 4,
                    "config": "<?lua --[[@cb]] gpl(gpn()) ?>"
                },
                {
                    "event": 5,
                    "config": "<?lua --[[@cb]] local ch,cmd,par1,par2,i=midi.ch,midi.cmd,midi.p1,midi.p2,1 if cmd==144 or 128 then if par1==0 then glp(1,1,par2)elseif par1==1 then glp(2,1,par2)elseif par1==2 then glp(3,1,par2)end end ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        }
    ],
    "cloudId": "sR8hapOJtkCuiHShYsum",
    "owner": "QGKFloLWcfdWzJMxSnlTdTyAyFl2"
}```
{
    "id": "90e08a69-1063-46ef-9e06-02891eebac97",
    "modifiedAt": "2024-04-05T02:16:45.250Z",
    "name": "Cubase Controller BU16 coded",
    "description": "Click here to add description",
    "type": "BU16",
    "version": {
        "major": "1",
        "minor": "2",
        "patch": "51"
    },
    "configType": "profile",
    "configs": [
        {
            "controlElementNumber": 0,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(0,1,0,0,255,0) glp(0,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,12,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 1,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(1,1,0,0,255,0) glp(1,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,13,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 2,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(2,1,0,0,255,0) glp(2,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,14,val) glp(num,1,val) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 3,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(3,1,0,0,255,0) glp(3,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,15,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 4,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(4,1,0,0,255,0) glp(4,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,8,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 5,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(5,1,0,0,255,0) glp(5,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,9,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 6,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(6,1,0,0,255,0) glp(6,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,10,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 7,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(7,1,0,0,255,0) glp(7,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,11,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 8,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(8,1,0,0,255,0) glp(8,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,4,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 9,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(9,1,0,0,255,0) glp(9,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,5,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 10,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(10,1,0,0,255,0) glp(10,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,6,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 11,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(11,1,0,0,255,0) glp(11,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,7,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 12,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(12,1,0,0,255,0) glp(12,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,0,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 13,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(13,1,0,0,255,0) glp(13,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,1,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 14,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(14,1,0,0,255,0) glp(14,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,2,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 15,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] glc(15,1,0,0,255,0) glp(15,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128 gms(ch,144,3,val) glp(num,1,val+30) toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 255,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@cb]] colors={\"blue\", \"blue\", \"red\"} function toggleColors(buttonIndex)glc(buttonIndex,1,255,0,0,0)for i=0,15 do if i~=buttonIndex then glc(i,1,0,0,255,0)end end end ?>"
                },
                {
                    "event": 4,
                    "config": "<?lua --[[@cb]] gpl(gpp()) ?>"
                },
                {
                    "event": 5,
                    "config": "<?lua --[[@cb]] local ch,cmd,param1,param2=midi.ch,midi.cmd,midi.p1,midi.p2 ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        }
    ],
    "cloudId": "yynfPARcBu5jeieUmgkG",
    "owner": "QGKFloLWcfdWzJMxSnlTdTyAyFl2"
}```

Ok, I figured out I can use the code option here and copy the text of those *.json files in. These are the configs that cause a lot of errors, although both of them work individually without any problems.

In case the non-coded version is preferable to figure out:

{
    "id": "97596069-51b4-446a-b276-03e0b1b45bb4",
    "modifiedAt": "2024-04-05T01:56:48.567Z",
    "name": "Cubase Controller EF 44 page 1",
    "description": "This Controller causes problems when connected together with ",
    "type": "EF44",
    "version": {
        "major": "1",
        "minor": "2",
        "patch": "51"
    },
    "configType": "profile",
    "configs": [
        {
            "controlElementNumber": 0,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@sec]] self:emo(2) self:ev0(90)--[[@sbc]] self:bmo(1)--[[@cb]] self:bmi(0)self:bma(1)--[[@glc]] glc(0,1,255,0,0,0)--[[@glp]] glp(0,1,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@cb]] if self:bva()==0 then bank=1;glc(4,1,0,255,0,0)glc(5,1,255,214,0,0)glc(6,1,255,0,0,0)glc(7,1,255,104,0,0)elseif self:bva()==1 then bank=2;glc(4,1,255,218,0,0)glc(5,1,0,255,228,0)glc(6,1,0,0,255,0)glc(7,1,255,0,180,0)end;glp(0,1,self:bva()*127) ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@l]] local val,Enc1cc=self:eva(),12--[[@cb]] if bank==1 then Enc1cc=12 elseif bank==2 then Enc1cc=16 end--[[@gms]] gms(0,176,Enc1cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 1,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@sec]] self:emo(2) self:ev0(90)--[[@sbc]] self:bmo(1)--[[@cb]] self:bmi(0)self:bma(1)--[[@s]] self.enc1cc=13--[[@glc]] glc(1,1,0,190,255,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@bpr]] if self:bst()>0 then--[[@gms]] gms(0,144,0,127)--[[@bprel]] else--[[@gms]] gms(0,144,0,0)--[[@bpre]] end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@l]] local val,Enc1cc=self:eva(),12--[[@cb]] if bank==1 then Enc2cc=13 elseif bank==2 then Enc2cc=17 end--[[@gms]] gms(0,176,Enc2cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 2,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@sec]] self:emo(2) self:ev0(90)--[[@sbc]] self:bmo(1)--[[@cb]] self:bmi(0)self:bma(1)--[[@s]] self.enc1cc=14--[[@glc]] glc(2,1,255,204,0,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@bpr]] if self:bst()>0 then--[[@gms]] gms(0,144,1,127)--[[@bprel]] else--[[@gms]] gms(0,144,1,0)--[[@bpre]] end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@l]] local val,Enc1cc=self:eva(),12--[[@cb]] if bank==1 then Enc3cc=14 elseif bank==2 then Enc3cc=18 end--[[@gms]] gms(0,176,Enc3cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 3,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@sec]] self:emo(2) self:ev0(90)--[[@sbc]] self:bmo(1)--[[@cb]] self:bmi(0)self:bma(1)--[[@s]] self.enc1cc=15--[[@glc]] glc(3,1,255,8,26,1) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@bpr]] if self:bst()>0 then--[[@gms]] gms(0,144,2,127)--[[@bprel]] else--[[@gms]] gms(0,144,2,0)--[[@bpre]] end ?>"
                },
                {
                    "event": 2,
                    "config": "<?lua --[[@l]] local val,Enc1cc=self:eva(),15--[[@cb]] if bank==1 then Enc4cc=15 elseif bank==2 then Enc4cc=19 end--[[@gms]] gms(0,176,Enc4cc,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 4,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@l]] local val=self:pva()--[[@glc]] glc(4,1,102,255,0,0)--[[@glp]] glp(4,1,val) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@l]] local val,Fad1cc=self:pva(),4--[[@cb]] if bank==1 then Fad1cc=4 elseif bank==2 then Fad1cc=5 end--[[@gms]] gms(ch,176,Fad1cc,val)--[[@glp]] glp(4,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 5,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@l]] local val=self:pva()--[[@glc]] glc(5,1,255,214,0,0)--[[@glp]] glp(5,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@l]] local val,Fad1cc=self:pva(),4--[[@cb]] if bank==1 then Fad2cc=3 elseif bank==2 then Fad2cc=6 end--[[@gms]] gms(0,176,Fad2cc,val)--[[@glp]] glp(5,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 6,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@l]] local val=self:pva()--[[@glc]] glc(6,1,255,0,0,0)--[[@glp]] glp(6,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@l]] local val,Fad3cc=self:pva(),11--[[@cb]] if bank==1 then Fad3cc=11 elseif bank==2 then Fad3cc=7 end--[[@gms]] gms(0,176,Fad3cc,val)--[[@glp]] glp(6,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 7,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@l]] local val=self:pva()--[[@glc]] glc(7,1,255,104,0,0)--[[@glp]] glp(7,1,val+1) ?>"
                },
                {
                    "event": 1,
                    "config": "<?lua --[[@l]] local val,Fad4cc=self:pva(),1--[[@cb]] if bank==1 then Fad4cc=1 elseif bank==2 then Fad4cc=8 end--[[@gms]] gms(0,176,Fad4cc,val)--[[@glp]] glp(7,1,val) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        },
        {
            "controlElementNumber": 255,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@g]] bank=1 ?>"
                },
                {
                    "event": 4,
                    "config": "<?lua --[[@cb]] gpl(gpn()) ?>"
                },
                {
                    "event": 5,
                    "config": "<?lua --[[@l]] local ch,cmd,par1,par2,i=midi.ch,midi.cmd,midi.p1,midi.p2,1--[[@cb]] if cmd==144 or 128 then if par1==0 then glp(1,1,par2)elseif par1==1 then glp(2,1,par2)elseif par1==2 then glp(3,1,par2)end end ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua  ?>"
                }
            ]
        }
    ],
    "fileName": "Cubase Controller EF 44 page 1 2.json",
    "isEditable": true,
    "syncStatus": "local"
}
{
    "id": "422d0d58-7120-40dc-88d7-fb1beb133a37",
    "modifiedAt": "2024-04-05T01:58:03.600Z",
    "name": "Cubase Controller BU16",
    "description": "This Controller cuases problems when connected together with Cubase Controller BU16.",
    "type": "BU16",
    "version": {
        "major": "1",
        "minor": "2",
        "patch": "51"
    },
    "configType": "profile",
    "configs": [
        {
            "controlElementNumber": 0,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(0,1,0,0,255,0)--[[@glp]] glp(0,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,12,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 1,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(1,1,0,0,255,0)--[[@glp]] glp(1,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,13,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 2,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(2,1,0,0,255,0)--[[@glp]] glp(2,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,14,val)--[[@glp]] glp(num,1,val)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 3,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(3,1,0,0,255,0)--[[@glp]] glp(3,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,15,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 4,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(4,1,0,0,255,0)--[[@glp]] glp(4,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,8,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 5,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(5,1,0,0,255,0)--[[@glp]] glp(5,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,9,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 6,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(6,1,0,0,255,0)--[[@glp]] glp(6,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,10,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 7,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(7,1,0,0,255,0)--[[@glp]] glp(7,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,11,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 8,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(8,1,0,0,255,0)--[[@glp]] glp(8,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,4,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 9,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(9,1,0,0,255,0)--[[@glp]] glp(9,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,5,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 10,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(10,1,0,0,255,0)--[[@glp]] glp(10,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,6,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 11,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(11,1,0,0,255,0)--[[@glp]] glp(11,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,7,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 12,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(12,1,0,0,255,0)--[[@glp]] glp(12,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,0,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 13,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(13,1,0,0,255,0)--[[@glp]] glp(13,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,1,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 14,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(14,1,0,0,255,0)--[[@glp]] glp(14,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,2,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 15,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@glc]] glc(15,1,0,0,255,0)--[[@glp]] glp(15,1,20) ?>"
                },
                {
                    "event": 3,
                    "config": "<?lua --[[@l]] local num,val,ch,note=self:ind(),self:bva(),(gmy()*4+gpc())%16,(32+gmx()*16+self:ind())%128--[[@gms]] gms(ch,144,3,val)--[[@glp]] glp(num,1,val+30)--[[@cb]] toggleColors(num) ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        },
        {
            "controlElementNumber": 255,
            "events": [
                {
                    "event": 0,
                    "config": "<?lua --[[@g]] colors={\"blue\", \"blue\", \"red\"}--[[@cb]] function toggleColors(buttonIndex)glc(buttonIndex,1,255,0,0,0)for i=0,15 do if i~=buttonIndex then glc(i,1,0,0,255,0)end end end ?>"
                },
                {
                    "event": 4,
                    "config": "<?lua --[[@cb]] gpl(gpp()) ?>"
                },
                {
                    "event": 5,
                    "config": "<?lua --[[@l]] local ch,cmd,param1,param2=midi.ch,midi.cmd,midi.p1,midi.p2 ?>"
                },
                {
                    "event": 6,
                    "config": "<?lua --[[@cb]] print('tick') ?>"
                }
            ]
        }
    ],
    "fileName": "Cubase Controller BU16 2.json",
    "isEditable": true,
    "syncStatus": "local"
}

And here some explanation what these are supposed to do:
the button unit is a simple key-switch unit for sample libraries. The buttons should light up blue and the one you pressed last is red.

The Fader unit is supposed to have four simple midi CC-faders with different colors and selected CC-values. The encoders are relative encoders for the quick control system in Cubase. The first push encoder is switching the encoders to bank 2 (QC 5-8) and the faders get different colors and CC-values. The other push encoders get functions via midi remote in Cubase and receive feedback from those functions (change color accordingly).

All of this works, but most of the time I connect both controllers, it is a mess!