Smoke Detector/Switch

I’m planning on putting a smoke detector near my boiler in the basement and also add a smart switch to the boiler “emergency shut off”. Is it possible to program it, so if the smoke detector goes off, it shuts the switch off?
I had an incident a few weeks ago that my boiler almost caught on fire and if I wasn’t home to shut it off, my house would’ve been burnt down to the ground. Any ideas will be greatly appreciated.
I tried searching on IFTTT, but couldn’t find anything.

Thank you!

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.