Check www.x10.com, they have tons of solutions for home automation and security.  There are other providers as well, but they are quite expensive.