Throttle enable for retractable EDF

Hello,
Is there any way to enable throttle signal only when retractable EDF is out? I have glider with retractable EDF with doors etc with door sequencer. I can have PWM signal or just high/low voltage connected to generic I/O telling that EDF is out. I need to make sure that EDF engine is not started in auto modes when edf is retracted… of course I can control it in transmitter for manual throtttle modes.
Thank you for your suggestions
Karel