Create a sort of BIG shelly

Hello everybody, I need help with a project. I’ve bought a 4channel relay esp card. I would like to make a “BIG SHELLY”, but I need to understand how to convert signal of the mometary button I’ve in my house (then with 220v) converting them to 5v signal. Is it right if a convert them using 4 optoisolator?

I mean these:

And this is the board:

Am I missing something?
Thank you all