Barn3's TeslaTap fits that description: http://www.barn3.com/shop/tesla-tap
Another option would be the Boss FS-5U although it's not as small as the TeslaTap.
And yes this is possible. To get to the Aux Switch mappings in H9 Control, press the Pedal button in the bottom menubar and go to Aux Switch Mappings.