For Hauptwerk reversible pistons, you only need to have a simple "switch" which sends a midi signal (for example note on / note off). Hauptwerk internally deals with handling the state of the stop(stops) being reversed and sends the appropriate "stop on/off" signal to the affected stop(s).
Iain