Jump to content

Conditional folders and subfolders w/ overlapping conditions


Zellarman

Recommended Posts

In a previous post of how to's, I explained how I was using folder conditions to create addressable IR commands, essentially 'saving' button space on my remote, see

http://forum.universal-devices.com/view ... highlight=

which has worked great, but I've reached my limit w/ single digit addresses, and now in my attempt to go to double digit addresses, am having a bit of a problem.

I've created a few conditional folders, named 'tens' 'twenties' and 'thirties' which allow programs in those folders to run when 'IR 1', 'IR 2', and 'IR 3' are pressed, then created subfolders under each, which are essentially the same in nature.

The theory behind this is: for address 11, the first press of '1' allows the 'access' to programs in its subfolder, then a second press of '1' will allow a tertiary level of programs to run. The problem I'm running into is that a single press of '1' allows access to the tertiary level of programs, as if it was pressed twice.

I've thought hard about where or how to insert a delay via 'wait' say for 1 second but haven't been able to come up w/ anything.

 

my program tree looks like this

 

IR address 'tens'

If

IR '1' is Pressed

 

Then

Wait 8 seconds

Run Program 'IR address 'tens'' (Else Path)

 

Else

- No Actions - (To add one, press 'Action')

 

Folder Conditions for 'IR tens'

Add conditions to limit when programs in this folder are allowed to run.

 

 

 

If

Program 'IR address 'tens'' is True

And IR '1' is Pressed

 

Then

Allow the programs in this folder to run.

 

A single press of '1' qualifies the second level of programs as true, but why?

 

Does anyone have any ideas?

Link to comment

Mr. Zellarman, you gave me something to do during the snowstorm this morning :)

 

I played a bit with the Press/Release delays but that didn't seem to change how long the ISY is remembering a button press.

 

Playing a bit it seems to take a bit more than one second to 'forget' a button press. If any other button is pressed during this period the first button pressed status is 'forgotten'.

 

You could look for a press plus double press for 11, 22, 33, etc. or you could limit your first button press to 1 or 2 or 3 and the second press to any of the other 7 (4-0) buttons. Or you could ignore 11, 22, 33, etc.

 

When I created programs for the 20s I found 21 activated the 10s program so I added Actions to end that.

 

IR Tens

If
       IR 'VCR 1 : 1' is Pressed

Then
       Wait  8 seconds
       Run Program 'IR Tens' (Else Path)

Else
  - No Actions - (To add one, press 'Action')


 

IR Twenty

If
       IR 'VCR 1 : 2' is Pressed

Then
       Wait  8 seconds
       Run Program 'IR Twenty' (Else Path)

Else
  - No Actions - (To add one, press 'Action')

 

Folder 'Tens'

Folder Conditions for 'Tens'
Add conditions to limit when programs in this folder are allowed to run.



If
       Program 'IR Tens' is True

Then
  Allow the programs in this folder to run.


 

11

If
       IR 'VCR 1 : 1' is Double Pressed

Then
       Set 'Family Room Swag Lamp' Fast On
       Wait  2 seconds
       Run Program 'IR Tens' (Else Path)

Else
  - No Actions - (To add one, press 'Action')


 

12

If
       IR 'VCR 1 : 2' is Pressed

Then
       Set 'Family Room Swag Lamp' Fast Off
       Run Program 'IR Twenty' (Else Path)
       Run Program 'IR Tens' (Else Path)

Else
  - No Actions - (To add one, press 'Action')


 

13

If
       IR 'VCR 1 : 3' is Pressed

Then
       Set 'Family Room Track Lights' Fast On
       Run Program 'IR Tens' (Else Path)

Else
  - No Actions - (To add one, press 'Action')


 

Folder 'Twenties'

Folder Conditions for 'Twenties'
Add conditions to limit when programs in this folder are allowed to run.



If
       Program 'IR Twenty' is True

Then
  Allow the programs in this folder to run.

 

21

If
       IR 'VCR 1 : 1' is Pressed

Then
       Set 'Family Room Lava Lamp' Fast On
       Run Program 'IR Tens' (Else Path)
       Run Program 'IR Twenty' (Else Path)

Else
  - No Actions - (To add one, press 'Action')

 

22

If
       IR 'VCR 1 : 2' is Double Pressed

Then
       Set 'Family Room Lava Lamp' Fast Off
       Wait  2 seconds
       Run Program 'IR Twenty' (Else Path)

Else
  - No Actions - (To add one, press 'Action')

 

Does that help?

Rand

Link to comment

Archived

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


×
×
  • Create New...