Turn off thermostats and fans when smoke

I was able to do this by using the Universal Device Type and the Thermostat Mode Director app. I created a simulated smoke alarm and contact sensor virtual device. I use IFTTT to turn on this Virtual smoke sensor whenever smoke is detected from my Z-Wave smoke/co alarm or my LEEO Smoke Alert

The Thermostat Mode Director app then shuts off my Thermostats when the Virtual Smoke/Door sensor is on (On = Smoke Detected and Contact Sensor Open).