Homeautomation ESP8266 and Relay

how should i connect ESP8266 and 2 Channel Relay with Arduino UNO so it can be function over Internet.

what should the Uno do? if you have an esp8266 breakout board, you can use esp pins to signal the relays.

some details about the relays module?

if you really want to use the uno + esp combination, you want your sketch rather in uno or in esp?

do you need circuit connection diagram or code?

I've found some really cheap boards from banggood, Aliexpress, etc that have the ESP01 and a relay board,
with minor mods I've used them for several 'Alexa' projects - lights, fans, christmas tree, TV remote etc
More detail here:

http://singlechannellersreunited.co.uk/phpbb3/viewtopic.php?f=29&t=912

Cheers
Phil

With that question: Not at all. Don't mess with mains if you clearly don't know what you are doing. You can reprogram the Sonoff, which is what you want premade (just without the Arduino UNO, which is completely unnecessary for what you describe.).