Jump to content

Program Not Turning off devices after a Wait Command (have screen pic)


panzer948

Recommended Posts

Posted

Hi,

 

Just got back into making some 994i tweaks over the holidays after doing some basic programming last year.  Had my system basically trouble free for the last year so decided to add a Insteon Motion Sensor outside on my back sundeck to activate two new programs (see image below for programs that start with "Deck Motion Activates...).  They both do similar things. One is for convenience where the motion sensor is to activate a Switchlinc that controls my light on the deck between sunset and sunrise only. The other program (which is the one shown) is suppose to activate another Keypad Linc's main load (Key-Pad-Fireplace LT) 10 seconds after motion is detected on the deck, but only if it is also between sunset and sunrise and a certain light status is off (Keypad Hallway).  I programmed it this way because we usually keep the "Keypad Hallway" light on until going to bed upstairs.  Thus, this is more of a security/break-in deterrent by hopefully scaring off anyone that walks up on our deck after we have turned all the lights off by simulating someone waking up (hence the 10 sec. delay).  The problem is the last command line where I want both of these programs to turn off the deck light/hallway light after a wait command.  Below I have it set to 1 minute, which I was using to test it.  In reality I would have the security program's wait command set for 5 mins before sending the off command; while the separate program that activates the deck light to go off after 30 mins.  Both programs activate as written except for turning the lights off. I have to manually do that.  I can't figure out what I am doing wrong.  Any ideas to this annoying issue would be greatly appreciated.

 

Thanks!

2016%2001-04%20Screen%20Pic%20of%20ISY%2

Posted

"Motion (Deck)-Sensor is On" is likely the problem if it's status changes before wait completes (1 minute.)  You can observe this by setting the status icons to detailed (right click on "My Programs" > "Status Icons" > Detailed.)  If "Motion (Deck)-Sensor is On" changes status the conditions are re-evaluated and if they are false then wait stops and Else is run.

 

The way around this would be to set a State variable with "Motion (Deck)-Sensor is On" and use that as a condition

 

Also, you can copy your programs into a message by right clicking on the program and select "copy to clipboard" at very bottom.

 

 

Jon...

Posted

"Motion (Deck)-Sensor is On" is likely the problem if it's status changes before wait completes (1 minute.)  You can observe this by setting the status icons to detailed (right click on "My Programs" > "Status Icons" > Detailed.)  If "Motion (Deck)-Sensor is On" changes status the conditions are re-evaluated and if they are false then wait stops and Else is run.

 

The way around this would be to set a State variable with "Motion (Deck)-Sensor is On" and use that as a condition

 

Also, you can copy your programs into a message by right clicking on the program and select "copy to clipboard" at very bottom.

 

 

Jon...

Thanks!  Wow I don't have any experience with using variables. Is there another way I could do it without the use of variables.  Have any examples?  Thanks again!

Posted (edited)

Change

 

If Status 'Motion (Deck)-Sensor' is On

.

.

.
 

 

to

 

If Control 'Motion (Deck)-Sensor' is switched On

.

.

.

 

Also add to Else

 

Else

   Set 'Living Rm Keypad-Fireplace LT' Off

 

The Else change insures Fireplace LT is not left On at Sunrise.

Edited by LeeG
Posted

Change

 

If Status 'Motion (Deck)-Sensor' is On

.

.

.

 

 

to

 

If Control 'Motion (Deck)-Sensor' is switched On

.

.

.

 

Also add to Else

 

Else

   Set 'Living Rm Keypad-Fireplace LT' Off

 

The Else change insures Fireplace LT is not left On at Sunrise.

 

Ah yes that has to be it. I will update when I get home.  I knew it had to be something simple I was leaving out.  I will report back results.  Thanks again!

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...