This simple automation and low-cost window sensor helped me fix a big air conditioning issue.