IoT Switch controlled over internet


While seeing my home’s wall switch I got an idea. Most of the switches are of those type in which one side is to be pressed. I am thinking of such a switch/switch board which would be controlled over the internet.

But how to build such a switch ?