Something neat that I found out recently is the existence of solid-state-relays. They are basically opto-couplers that can directly switch a load. You can use them instead of normal relays, and drive them directly from a digital io pin. Pretty sweet.<p>Or just get a particle photon with the relay shield. Extremely easy to set up, and it comes with a REST API.