Sonoff Mini wiring question

Hi there,

Trying to turn some regular switches smart at a friends’ house.

At this point the old traditional switch has a Brown phase wire and just one black switching wire, therefore I am struggling with how to wire the Sonoff Mini.

So I have made a quick drawing of how I’m proposing to wire it now. The question is would this work?

Sorry if the drawing is unclear.
Thanks in advance for the insight/help.

No, this wil not work.

Here is the only correct way:

So, you need to bring a blue (neutral) wire to the switch.

Or place the mini, where you can play with all the wires.

Or you can use Sonoff ZBMINI-L if you don’t have a neutral wire