Jump to content

skifiend

Members
  • Posts

    17
  • Joined

  • Last visited

skifiend's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. Works perfectly. Thanks! I wonder if there is a way to disable entry into linking mode if button is held down > 10 seconds.
  2. I am trying to program two buttons on a RemoteLinc2 8-button keypad to accomplish the following: Hold C --> Vol Up Hold D --> Vol Down My network resources are set up and work. Using the above information I have set up a program for VolUp as: If Control 'RemoteLinc KP/RemoteLinc KP-C' is switched Fade UP Then Repeat 5 times Resource 'DenonZ2VolUp' Repeat seems to require one of: For x times, OR Every x hours y minutes z seconds How can I set this up so that it repeats until Fade Stop is received?
  3. It worked. The only change I had to make was to move the "$AwayNotified = 1" statement to the bottom (of the first if statement). As the variable is in the condition list, the subsequent waits were being interrupted. Thank you.
  4. Good to know. This helps my understanding going forward. I was actually thinking of using explicit state variables to keep track of state instead of relying on a program's returned value. I'll try Xanthros' code but your suggestion is helpful for multi-state programs. Thanks.
  5. Thanks for your suggestion, Xanthros. Yes, $X3 is a state variable. If $X3 changes to >0 during the wait, I'd like to stop further processing, i.e., no more notifications and no turning off scenes. I am not clear on how exactly the wait command works. Would your code accomplish the interruption? I'll have a chance to try it this evening.
  6. I was wondering if someone could help me figure out what I'm doing wrong in my programs. The programs should trigger once the last person has left the house, then the goal is to send some notifications at some intervals and eventually turn off lights and devices if no one returns. My variable $X3 indicates the number of people in the house (works reliably) and $AwayNotified keeps track of whether a notification was sent (to avoid repeat notifications). When $X3 turns 0 (last person has left the house), I want to send a notification saying that lights will turn off in 15 minutes. If after 15 minutes X3 is still 0, I want to send another message saying lights will turn off in 5 minutes. If after 5 minutes X3 is still 0, the ISY will turn down thermostats, turn off lights and music systems. My programs are the following (all the Else conditions are empty): Program Away.S0.Cond (Run at Startup) If - No Conditions - Then Run Program 'Away.S0.Body' (Then Path) Program Away.S0.Body If - No Conditions - Then Run Program 'Away.S1.Body' (Else Path) Run Program 'Away.S2.Body' (Else Path) Run Program 'Away.S3.Body' (Else Path) Program Away.S1.Cond If Program 'Away.S0.Body' is True And $X3 is 0 And $AwayNotified is 0 Then Run Program 'Away.S1.Body' (Then Path) Program Away.S1.Body If - No Conditions - Then Run Program 'Away.S0.Body' (Else Path) Run Program 'Away.S2.Body' (Else Path) Run Program 'Away.S3.Body' (Else Path) Send Notification to 'Default' content 'Absence 1' Program Away.S2.Cond If Program 'Away.S1.Body' is True And $X3 is 0 And $AwayNotified is 0 Then Run Program 'Away.S2.Body' (Then Path) Program Away.S2.Body If - No Conditions - Then Run Program 'Away.S0.Body' (Else Path) Run Program 'Away.S1.Body' (Else Path) Run Program 'Away.S3.Body' (Else Path) Wait 15 minutes Send Notification to 'Default' content 'Absence 2' Program Away.S3.Cond If Program 'Away.S2.Body' is True And $X3 is 0 And $AwayNotified is 0 Then Run Program 'Away.S3.Body' (Then Path) Program Away.S3.Body If - No Conditions - Then Run Program 'Away.S0.Body' (Else Path) Run Program 'Away.S1.Body' (Else Path) Run Program 'Away.S2.Body' (Else Path) Wait 5 minutes Resource 'DenonPwrOff' Resource 'SonosMBRStop' Resource 'SonosMediaRoomStop' Resource 'SonosLivRoomStop' Resource 'TStatOffice Away' Resource 'TStatUpstairs Away' $AwayNotified = 1 Run Program 'Away.S0.Body' (Then Path) Program Away.Notified.Reset If $X3 > 0 And $AwayNotified is 1 Then $AwayNotified = 0 Currently, what happens when $X3 turns 0 is that S2Body runs and ends but S3Body does not run. I'd appreciate any tips. Thanks.
×
×
  • Create New...