Operating whole house fan if conditions are right.

I am looking for help on a new project. I just installed a new whole house fan and am looking to have a “safety” on it that only allows it to run if the weather outside is cooler than the inside temperature. I also only want it to run if 1 or more window/ door zones are opened and turn off the t-stat.

I have a trane t-stat, the google weather plugin and an nx-8 alarm connected to the system. I currently have a Thermostat override if a door is opened for more than 5 minutes.

Here is how I think it should go.

  1. Vera recognizes the request to turn on the Whole house can and checks the inside temp. And compares it to the google weather outside temp for my area.

  2. If the outside temp is lower than the inside temp it goes to the next requirement or if it’s warmer outside the request to turn on the fan is denied.

  3. If the luup for the entire scene is true ( cooler outside) then the event for the scene is run.

  4. In the scene luup, if the alarm doesn’t show 2 or more zones open it Denys the event from running. If zones are open then the event runs and triggers the command to turn on the whose house fan and disable the thermostat(off).

  5. Vera checks every minute to see if the requirements above are met. If they are not then the fan turns off to prevent pulling in warmer air from outside and trying to move air when the house is all closed up. It also prevents the t-stat from turning on the air if the fan is running.

Bonus points: all the commands can be set back to previous settings when the fan is turned off.

Is this something that can be done without a phd in computer programming and without giving Vera a heart attack?

I thought it would be a challenge. Any help is appreciated.

Drew