Smart home automated fire response
Whether or not you open or close the windows is going to depend on the specifics of a situation. It's not something I would automate, it's too variable. But if you want too be sure, make an appointment to speak with your local Fire Marshall, that's kind of their job to know these sort of things.