Turning On AC When All Windows Are Closed

Hey everyone! I’m trying to create a smart home rule that automatically turns on the AC when all my windows are closed. I have window sensors installed on every window, and I’ve set up a rule to turn off the AC if any window opens. But now I want to take it a step further and have the AC turn back on when all windows are closed.

Here’s what I’ve done so far: I’ve created a binary sensor for each window, and I’ve set up a condition in my automation rule that checks if all windows are closed. The rule works perfectly when a window is opened—it immediately turns off the AC. But when I close all the windows, the AC doesn’t turn back on as expected.

I’m thinking the issue might be with how I’m structuring the condition in my automation rule. I’m using a logical ‘and’ to check if all windows are closed, but maybe I need to use a different operator or a different approach altogether.

Does anyone have experience with similar automation rules? How did you handle the condition to ensure the AC turns on only when all windows are closed? I’d love to hear your suggestions and best practices for setting this up. Let’s brainstorm together and make this smart home feature work seamlessly!