Smoke Detector/Switch

Check out CoRE for automations like this. It is a Rules Engine that allows you to program interactions of devices in pretty much any way you can think.