Another switch question

I’m sorry if it has been answered before but maybe because of my limited English I can’t find an answer.
I’m moving house and want to replace the regular switches with sonoffs to prevent guests from accidentally turning off lights to then become totally unresponsive from HA.
As you can see in the pics there’s switches with 2 wires and some with 3 wires. The 3 wire ones I think should be fine I think based on the information that I can find, but I don’t understand how to wire the ones where I have just 2 wires. Is it even possible? If not, I’ll just connect them in the wall and replace the old switch with one of the aqara wireless ones that I have from my old house…