I recently got a screen for my balcony door and wanted to have a way to make sure my AC wasn’t going to run while the door is open.
I put a sensor on it door hinge, as the door sits very deep into the frame. Couldn’t have the two parts of the sensor ever stay “closed”. For this to work, you have to use the sensors in opposite running states (devs, lets us apply names to sensor states. People have have on/off/closed/open in either a 0 or 1 state).
I told IFTTT to change my thermostat comfort setting based on the sensor position. If it’s in the “closed” position (read: door open), essentially turn off my AC. If door is closed, go back to my “home” comfort setting. This should work on any sliding window/door as well!
IF sensor is in the CLOSED position (door is open) THEN turn off AC.