Expression pedals - Midi messages on auto engage/disengage

Besides assigning a MIDI CC to an expression pedals, it’d be cool to be able to assign also a message for autoengage and disengage, so the external effect wouldn’t have to stay on while not used.