Jump to content

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


mikeyg01

Recommended Posts

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

Link to comment

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

Link to comment

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

Link to comment

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

Link to comment

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

Link to comment

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.

Link to comment

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

Link to comment

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.

Link to comment

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.

Link to comment

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.

Link to comment

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

Link to comment

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.

Link to comment
  • 2 months later...

 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
Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...