Just an update. This works quite well and no issues with switch bounce. We did have to add an NPN3904 transistor on the output pin to deal with the 11v signal on the G540 input pin. But it works.