Arduino+esp8266+relay+buttons

You should go back and edit your original post.

The easiest solution - if your sockets will take the two-pin European plugs - is to simply buy a Sonoff S20 and flash it with Blynk code. Or buy one of these sockets and flash it with my code:

If you want to add a push button to your own device then look at the comments in my code and you’ll see how to do it so that it works with my code. You’ll need to modify this code to work with an Arduino + ESP-01 and remove the OTA code as this won’t work with an Arduino.

Pete.