Already window/door is opened and AC turning on

What is not understood? I wrote down the steps, attached the automation what else?