I've creates an exact setup like this for turning on xtouch LEDs this way using Controllermate.
Just for handling the LED Behaviour.
So a single button will send to Controllermate for LED toggling and to Midi2Lr for selecting a tool or profile.
This works when you only use the controller as input device.
You could also go a step further using keyboard maestro to determin the lightroom state and send this to controllermate to always have the leds in a proper state
Keyboard Maestro can determin Lightroom state by front window title, or a marked or unmarked menu item.
Or even a screenshot of the interface.
You can use these to update Controllermate what the current state is to keep the LEDs be in the right state.
Its not easy but it can work.