How to wiring a Sonoff on this schematic

Someone can help me figuring out how to connect a Sonoff ZBMINIL2 on this schematic?

Just add another live cable to the relay

I came to show how I found how to do it and you post the same solution :sweat_smile:.

Thanks

I just needed to change the switch mode on the module. I’m not sure if it will keep the changes after a power failure.

At the moment, everything working :+1: