Or you could use an opto-isolator and Triac to switch the mains voltage. The advantage of a relay is that it's fairly safe, but the noise from being energized could send you an your parrot bonkers !