About 15 years ago and my african gray parrot was about two years old, I moved into an apartment with an electric stove. I had been used to a gas stove and cooking with electric burners was a challenge for me. I was constantly burning things and setting off the smoke alarm.
Pooperbird (the parrot) associated my cooking with the smoke alarm. For weeks, when I started cooking and until the meal was served, Poop would imitate the smoke alarm.