Smart Gate with swith on light


I have a gate automation and I have an output of 220v for a flashing light when the gate goes open or close. I would like to use this output to connect a module to activate another module (Sonoff Mini 2) who swith ON some spots light.

Does someone know which module I can connect to my gate system to activate through a scene on Ewelink?