This is what I have eventually done in the upcoming 5.0:
Controls may have events attached. So far, controls had value/MIDI message only. As of 5.0.0, four events are supported: switch-press, switch-release, pot-touch-start, pot-touch-release. An event may send a MIDI message (= parameterMap update), call a Lua function, or trigger E1 internal command (open page, etc).
an example of dial with RPN message and two events that send CC #2:
firing an event does not visually affect the control itself. It can, however, affect other controls and groups in the preset.
Another addition is that groups can optionally track a MIDI parameter in the parameterMap and updated their label / color accordingly. The following picture is an example of group tracking CC #2
so, the control and the group mentioned above allow the switch in the knob to toggle the group label and color:
@hape I hope it is more/less what you needed. It is most likely done differently than you expected, but the benefit here is backward compatibility and extra flexibility.
note:
- mk2 does not have switches in the knobs, they are triggered with the LCD touch there
- events defined in the preset always override default actions
it is still beta, more info on that in: Electra One version 5 on beta.electra.one

