Electronic – arduino – Control the lights both with wall switch and arduino

arduinohome-automationrelay

I am starting to build new house and want to add some home automation features, for now, turning lights and sockets on and off.
i bought arduino mega, ethernet shield, current sensors to see if the light is on, and relays. Can you tell me what is the best practice to get this working, and other thing, i want lights to be turned on and off from the wall switches and in the same time from the arduino. if the arduino is not working or off, lights should still work from the wall switches,
thanks a lot

Best Answer

http://en.wikipedia.org/wiki/X10_(industry_standard)

Basically the most convenient consumer option.