Might be worth noting that if you have free end stops inputs, you can use the Duet directly with triggers and the trigger macros.
https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_Configure_external_trigger
(I think RRF3 will support more pins and or triggers if you don't have enough free atm)