Oh and an android app tossed in too. Interesting project done over the pond for this. I am not so sure I would take it on. Playing with low voltage DC is on thing, playing with AC in my house that can void insurance. I don’t think so.
http://www.makeuseof.com/tag/how-to-build-home-automation-system-raspberry-pi-and-arduino/