D1 mini IR gateway

Hello,
I need some information for configure only the IR gateway function and repeat the IR signal for extender the signal into a closed cabinet with D1 mini board.
For the “extender function” I had the answer in this forum and I will configure #define RawDirectForward true in config_IR.h
But for configure my D1 mini board in user_config.h is correct select: #define ZgatewayIR “IR” //ESP8266, Arduino, Sonoff RF Bridge ?
If I use Arduino IDE I need this 2 configurations only?
The device I need to control isn’t in the compatibility list but I use the extender function and some of command in MQTT, can I use the raw code for command the device from MQTT command to IR?

Thanks.