Automation in existing home using Arduino

Then take a look at single pole double throw relays (SPDT). These things are the functional equivalent of your two way switch. For this kind of thing I like the latching versions of the relays because you don't have to keep power to it.