Turn off the AC when the windows are open and on when the windows are closed

Cupertino, July 16, 2019

After a few experiments, I finally found out how to configure a HomeKit automation that turns off / on the AC power when the windows open / close. Posting this here if it turns out useful to anyone in the future. I would also like to know if others have a more elegant way to create this automation.

& # X200B;

A simple "If window sensor A opens, trigger Ecobee" and "If window sensor A is closed, trigger Ecobee on" setup would not work for my home because if windows B and C remain open after a window is closed, I want AC to to stay away. I also don't want the system to turn off and on again immediately if someone just opens a window for a few seconds.

& # X200B;

A simple time automation like "If window sensor A is opened, then wait 1 minute and release Ecobee, if window sensor A is still open" would also not work for my home because I needed to make sure the system would shut down if the window was closed and another window was opened in the meantime.

& # X200B;

In addition, there were several app-related limitations to overcome: The home app does not allow rule conditions or more than one trigger per. Rule, and the Eve app does not allow the OR logic (ie, if there is any window open, rather than all windows), and the timer ("Undo" after X minutes) in the Home 3 app did not work for me. I ended up using all 3 apps to create this.

& # X200B;

** Equipment: ** Ecobee 3, Aqara hub, Aqara window / door sensors and Apple TV 4

** Apps used: ** Home 3, Eve and homely home app

& # X200B;

** Automation: ** Turn off AC if a window is open for more than 1 minute. Restart AC when all windows are closed.

& # X200B;

** Rule 1: ** Set one minute of hours when a window opens

Add home rule: When window sensor A is open, turn on Aqara light and then turn off after 1 minute.

Edit rule in Eve: Add trigger to all other window sensors (Eve's UI makes it much easier to turn this into many sensors than Home 3's)

* Note: I could have * (* create an hour through Mi Home app *) (https://www.homekit.blog.com/r/HomeKit/comments/bh9x9j/thermostat_automation_with_door_sensor/elr9zhu/) *, but I didn't & # 39; I don't want to have the automation created in multiple ecosystems. *

& # X200B;

** Rule 2: ** Turn off the AC after one minute if a window is still open

Add home rule: When the Aqara light goes off, turn the Ecobee mode off

Edit in Eve: Add condition for rule if all windows are open

Edit in Home 3: Change the logic of this condition from AND (all windows) to OR (any window)

& # X200B;

** Rule 3: ** Resume AC after all windows are closed

Add rule at home: When window sensor A is closed, turn on Ecobee for cooling

Edit in Eve: Edit the shutter to run if any windows are closed, add condition if all windows are closed

* Potential improvement: instead of cooling Ecobee for cooling, * (* set it to run a scene to CV) * (https://www.homekit.blog.com/r/ecobee/comments/bpe83d/changing_autoheatcool_with_homekit_automation/enul0z5/ )

Best selling & Top trending HomeKit product in our shop at this moment

HomeKit.Blog is in no way affiliated with or endorsed by Apple Inc. or Apple related subsidiaries.

All images, videos and logos are the copyright of the respective rights holders, and this website does not claim ownership or copyright of the aforementioned.

All information about products mentioned on this site has been collected in good faith. However, the information relating to them, may not be 100% accurate, as we only rely on the information we are able to gather from the companies themselves or the resellers who stock these products, and therefore cannot be held responsible for any inaccuracies arising from the aforementioned sources, or any subsequent changes that are made that we have not been made aware of.

HomeKit.Blog Is A Participant In The Amazon Services LLC Associates Program, An Affiliate Advertising Program Designed To Provide A Means For Sites To Earn Advertising Fees By Advertising And Linking To Amazon Store (Amazon.com, Or Endless.com, MYHABIT.com, SmallParts.com, Or AmazonWireless.com).

The opinions expressed on this website by our contributors do not necessarily represent the views of the website owners. 

Copyright © 2022 HomeKit Blog
. All rights reserved
United States