Nexa AN179 wall switch

I need to add a wall switch to a ceiling light, it’s currently pretty long leads so the LED bulb is blinking every 10 seconds when turned off. Most likely it’s running of induced current from live leads closely bundled in the wall.

So my plan is to put the switch in the in wall socket by the light.
The Nexa AN179 has an input for a switch, can’t use that, would need to run separate signal wires across 10 m.

It also has an input for Line and Line for the load (IN), what if those are separate. One Live and one from the switch. How would that work?

Or if there’s another way, I still want to be able to use the wall switch if needed.

From the install manual