Making a light switch.

I want to make a working light switch for my house ive made in a map. Can anyone help me with this.

http://www.halfwit-2.com/?page=tutorials&id=3