I managed to solder some wires to the solder pads and flash it with tasmota, it is the same procedure as the sonoff basic.
I use the Sonoff Basic module
Sonoff Basic
I got the physical switch (S1&S2) working with GPIO4 set to Switch1
GPIO4
Switch1