Jump to content

Shade controls - newbie


dlorenzo

Recommended Posts

Hi, I just got some automatic shades installed and I am trying to control them effectively via the ISY.

 

My program logic is as follows: Each zone has 3 possible positions (Open = 1, Blackout = 2, Sheer = 3). I generated programs for each zone going from Position X to Position Y. All this works great so far, the variables are state vars.

 

Now the problem is I am using the same RF remote to control all zones (it is a Hunter Douglas remote, which first you select the group/zone and then issue the open or close command). So I need to work out some way to disallow the remote from sending commands to another zone until it has finished changing the position of a zone. (This is necessary for changing the position of more than 1 zone at the same time).

 

One of my programs is as follows:

 

If
       $Position_Guest is 1
   And-(
      |     $Position_Guest_Wanted is 2
      | And $Remote_Busy is 0
      -)

Then
       $Remote_Busy  = 1
       Run Program 'Guest Down 1x' (If)
       $Position_Guest  = 2
       $Position_Guest Init To 2
       $Position_Guest_Wanted Init To 2
       Wait  25 seconds
       $Remote_Busy  = 0

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


 

The issue here is that the variable Remote_Busy never goes into the 0 state after the 25 seconds wait, so the rest of the programs' Ifs are never true for the Remote_Busy variable.

 

Any help to accomplish this is appreciated.

 

Thanks!

Link to comment

The first statement in the Then clause changes the value of the variable $Remote_Busy. As soon as the Wait is executed the If is reevaluated because of the change in variable value. The If is now False so the Else is executed. The statement after the Wait is never executed.

 

Split the existing Program into two Programs. The first Program contains the existing If clause, with the Then clause running the second Program. The second Program contains a null If section with the Then statements from the current Program. With this split the reevaluation of the If does not affect the second Program

Link to comment
  • 5 months later...

Archived

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


×
×
  • Create New...