Jump to content

TriggerLinc (Control) with Wait command problem


jeffpdavis1

Recommended Posts

I've got a problem with a TriggerLinc (2421) v.34 on a door that definitely is responding by showing a status of On(Opened) and Off (Closed). The jumper is installed on the TriggerLinc, so only one node is active. I've watched it in Mobilinc change even when opening and closing fast. The problem is that a program doesn't exit from a Wait command to reevaluate the If condition in the way I thought it would. Here's my Furnace Room Opened program:

 

 

Furnace Room Opened
If
        Control 'Garage-Furnace Room / Furnace Room-Opened' is switched On
Then
        Set 'Garage-Furnace Room / Furnace Room Lights' On
Else
   - No Actions - (To add one, press 'Action')
Comment: When door is opened turn the lights on indefinitely.
 

 

...and the Furnace Room Closed program:

 

 

Furnace Room Closed
If
        Control 'Garage-Furnace Room / Furnace Room-Opened' is switched Off
Then
        Wait  15 minutes
        Set 'Garage-Furnace Room / Furnace Room Lights' Off
Else
   - No Actions - (To add one, press 'Action')
Comment: When door is closed, wait 15 minutes and then turn the lights off so someone in there will have time. If more time is needed, prop the door open
 
If I walk in there to spend more than 15 minutes and forget to prop the door open and it closes, the CLOSED program is triggered correctly and starts the wait time.  I usually realize my mistake in not propping the door and then go back and open it again to prop it open.  The problem is that the OPENED program is triggered correctly (although it changes nothing since the lights are already on), but it doesn't trigger a reevaluation of the CLOSED program condition and stop running the THEN clause in it. I've also tried combining the two programs in one but it didn't work either:
 
 
Furnace Room Lights
If
        Control 'Garage-Furnace Room / Furnace Room-Opened' is switched On
Then
        Set 'Garage-Furnace Room / Furnace Room Lights' On
Else
        Wait  15 minutes 
        Set 'Garage-Furnace Room / Furnace Room Lights' Off
 
 
What am I doing wrong?
 
Link to comment

Try this:

If
        Control 'Garage-Furnace Room / Furnace Room-Opened' is switched On
        And Control 'Garage-Furnace Room / Furnace Room-Opened' is not switched Off
Then

        Set 'Garage-Furnace Room / Furnace Room Lights' On
Else
        Wait  15 minutes 
        Set 'Garage-Furnace Room / Furnace Room Lights' Off

When using Control you need to specify each control signal that you want to trigger on.  If you used Status instead, a one liner would have worked.

 

-Xathros

Link to comment

Archived

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


×
×
  • Create New...