I have recently gotten a Raspberry Pi, and am looking to use it as a home automation system using the GPIO and Python. Does anyone know any way to link light controls to the GPIO?


One way is to simply rewire the light switches so that when you turn on the GPIO using Python, it closes the circuit. You can do that for a few light switches, but you might want to use several Raspberry Pis.

This might also be helpful: https://www.youtube.com/watch?v=84hV54FDK40&ab_channel=ShaneYake

  • 1
    Ill try to try that out thank you very much for help! – Sir Pi Eater Oct 7 '15 at 2:50
  • No problem! However, if I answered your question feel free to click the check mark underneath the arrows. :-) – Kachamenus Oct 7 '15 at 2:51
  • 1
    @SirPiEater please do not connect mains wiring directly to your Pi. It will at the very least kill the Pi, and could do far worse. IF you are inexperienced with mains wiring, A better solution may be to leverage existing technology X10, remote controlled sockets etc. and control them from your Pi. – Steve Robillard Oct 7 '15 at 3:48
  • Sorry about that, I just noticed that they have low reputation, so they might not know about the answer check mark thingy. – Kachamenus Oct 7 '15 at 3:48
  • @SteveRobillard I am not going to wire directly to Pi I was going to wire an AC switch that is turned on by GPIO signal. – Sir Pi Eater Oct 7 '15 at 3:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.