Using this device allows you to automate the relay switching without the need of a microcontroller or any fancy equipment.