Jump to content

Help-Program to Shut AC Off if door is Open Too Long


mikeyg01

Recommended Posts

Posted

I am trying to make my program work but I am having problems. I want to shut the AC off when the door is open for five minutes or more, then turn it back on when the door is closed (after the five minute interval).

 

But here is whats happening. If the door is open for five minutes without closing then the AC shuts off...and that's great. However, if it is opened and then closed right away, the AC shuts off and that I don't need to happen. I just need the AC off if someone leaves the door open too long.

 

Sliding Door Open-AC Off - [iD 0020][Parent 0001]

If
        Status  'Doors and Windows / Door-Sliding' is On
 
Then
        Wait  5 minutes
        Set 'Air Conditioner' Mode - Off
 
Else
        Set 'Air Conditioner' Mode - Cool

 

Can someone tell me how to get the AC to stay on of the door is opened and closed before the five minute elapse. Thanks

Posted

Is the Open/Close sensor configured to only send 'On' commands?

 

Can you watch the program summary when closing the door and see if the program turns false?

 

Post your findings.

 

-Xathros

Posted

If
        Status  'Doors and Windows / Door-Sliding' is On
 
Then
        Wait  5 minutes

         Run 'program 2' (If)

 

Program 2

If
        Status  'Doors and Windows / Door-Sliding' is On
 
Then
        Set 'Air Conditioner' Mode - Off
 
Else
        Set 'Air Conditioner' Mode - Cool

Posted (edited)

If

        Status  'Doors and Windows / Door-Sliding' is On

 

Then

        Wait  5 minutes

         Run 'program 2' (If)

 

Program 2

If

        Status  'Doors and Windows / Door-Sliding' is On

 

Then

        Set 'Air Conditioner' Mode - Off

 

Else

        Set 'Air Conditioner' Mode - Cool

Hey Stu,

 

Wouldn't both of those trigger upon opening or closing (Assuming he is sending Off commands from the sensor) the door making this designed to do exactly what he doesn't want?

 

Maybe program #2 was supposed to be disabled?

 

I'm still waiting for a reply from the OP re my questions.  It may be an issue with how the TStat is handling the mode set command as well but need more info from the OP to make a good diagnosis.

 

 

-Xathros

Edited by Xathros
Posted

Xathros, good catch, Yes, program 2 is supposed to be disabled.

Posted

Thx guys, I came home about an hr ago and low and behold my original program is now working. When I opened the door the program detail indicated that I was running the "then' portion of the program....when I closed it back the 'then" disapeared which indicated that it was cancelled.

 

If I leave it open for five minutes, the AC shuts off....as intended. So all is well. I added the front door and the door leading to the garage to the program, tested and all is fine....Again, thx for you insight

Posted

Thx guys, I came home about an hr ago and low and behold my original program is now working. When I opened the door the program detail indicated that I was running the "then' portion of the program....when I closed it back the 'then" disapeared which indicated that it was cancelled.

 

If I leave it open for five minutes, the AC shuts off....as intended. So all is well. I added the front door and the door leading to the garage to the program, tested and all is fine....Again, thx for you insight

You are going to want to add some conditions to your program to stop the A/C from turning on in the winter when somebody closes the door.

 

If you can control your stat you can likely read the stats of the heat/cool mode also. This will take two programs and no use of the Else clause though.

Posted

Easy fix.

 

If
        Status  'Doors and Windows / Door-Sliding' is On
   and Status 'Air Conditioner' is Mode Cool

 

Then
        Wait  5 minutes

         Run 'program 2' (If)

 

Program 2

If
        Status  'Doors and Windows / Door-Sliding' is On

   and Status "Air Conditioner' is Mode Cool
 
Then
        Set 'Air Conditioner' Mode - Off
 
Else
        Set 'Air Conditioner' Mode - Cool

Posted (edited)

Easy fix.

 

If

        Status  'Doors and Windows / Door-Sliding' is On

   and Status 'Air Conditioner' is Mode Cool

 

Then

        Wait  5 minutes

         Run 'program 2' (If)

 

Program 2

If

        Status  'Doors and Windows / Door-Sliding' is On

   and Status "Air Conditioner' is Mode Cool

 

Then

        Set 'Air Conditioner' Mode - Off

 

Else

        Set 'Air Conditioner' Mode - Cool

oooops...Not gonna' be that easy.

 

 

If

        Status  'Doors and Windows / Door-Sliding' is On

   and Status "Air Conditioner' is Mode Cool  <----the Mode was set = Off when the door opened.

 

Then

        Set 'Air Conditioner' Mode - Off

 

Else

        Set 'Air Conditioner' Mode - Cool

 

The plot thickens with variables. :)

 

It gets a little thicker, yet, once the compressor delay shows up.

 

When will UDI inclement the "You know what I mean" program line? :)

 

Probably not good to play with the Mode on the stat but rather just raise the temperature. Changing the mode raises all kinds of conditions like Home/Away, A/C was off in the first place due to spring or fall weather, and possibly a few more unseen conditions.

Edited by larryllix
Posted

As an afterthought v5 can assign variables the value of a thermostat mode and restore them after by assigning the mode the variable value.

 

This could be used to memorise the stat mode, regardless of what mode  is currently set, and restore it after the open door policy enforcement.

Posted

oooops...Not gonna' be that easy.

 

 

If

        Status  'Doors and Windows / Door-Sliding' is On

   and Status "Air Conditioner' is Mode Cool  <----the Mode was set = Off when the door opened.

 

Then

        Set 'Air Conditioner' Mode - Off

 

Else

        Set 'Air Conditioner' Mode - Cool

 

The plot thickens with variables. :)

 

It gets a little thicker, yet, once the compressor delay shows up.

 

When will UDI inclement the "You know what I mean" program line? :)

 

Probably not good to play with the Mode on the stat but rather just raise the temperature. Changing the mode raises all kinds of conditions like Home/Away, A/C was off in the first place due to spring or fall weather, and possibly a few more unseen conditions.

 

Nope, the program sets the mode to off only if the door is left open beyond the duration specified.

Posted

Nope, the program sets the mode to off only if the door is left open beyond the duration specified.

And retriggers your program running false because the mode was changed to off....

 

 

-Xathros

 

Sent from my iPhone using Tapatalk

Posted

Correct, the Status "Air Conditioner' is Mode Cool condition should not be added to Program 2.

Posted

Is the Open/Close sensor configured to only send 'On' commands?

 

Can you watch the program summary when closing the door and see if the program turns false?

 

Post your findings.

 

-Xathros

It has to set to deliver On commands when opened for the OP complaint to be true.

   An Off signal would trigger the else clause and cancel the then case and the OP complaint wouldn't exist.

 

Also, the door closed can never be detected and the logic never work if Off is never sent.

 

 

Since the OP now claims, it does work, but didn't previously AND now  invalidates the lack of Off arguments above, he must have intermittent comms from his Door sensor to ISY.

  • 2 months later...
Posted (edited)

 I set up mine with three program, one to detect the state of my door, two to turn it off, and three to turn it back on.

HVAC 0 - Test Door - [ID 0015][Parent 0001]

If
        Status  'D an W Sensors / Back Door Sensor.1 - Status' is 100%
     Or Status  'D an W Sensors / Front Door Sensor.1 - Status' is 100%
 
Then
        Wait  30 seconds
        $sDoorOpen  = 1
 
Else
   - No Actions - (To add one, press 'Action')
HVAC 1 - Turn AC Off - [ID 0016][Parent 0001]

If
        $sDoorOpen is 1
    And Status  'Thermostat / Thermostat - Cool Ctl' is On
 
Then
        Set 'Thermostat / Thermostat - Main' Mode Off
        $sDoorOpen  = 2
 
Else
   - No Actions - (To add one, press 'Action')
HVAC 2 - Tuff AC On - [ID 0017][Parent 0001]

If
        $sDoorOpen is 2
    And Status  'Thermostat / Thermostat - Cool Ctl' is Off
    And Status  'D an W Sensors / Back Door Sensor.1 - Status' is Off
    And Status  'D an W Sensors / Front Door Sensor.1 - Status' is Off
 
Then
        Wait  30 seconds
        Set 'Thermostat / Thermostat - Main' Mode Cool
 
Else
        $sDoorOpen  = 0
Edited by visualcoat
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...