Jump to content

How do I turn off all Scenes?


MarcK

Recommended Posts

I've got 2 keypad controllers, and for each light control I create a scene:

Scene 1:

  Keypad 1 - B (controller)

  Keypad 2 - B (controller)

  InlineLink 1 (responder)

Scene 2:

  Keypad 1 - C (controller)

  Keypad 2 - C (controller)

  InlineLink 2 (responder)

Scene 3: {just groups the 'H' buttons}

  Keypad 1 - H (responder)

  Keypad 2 - H (responder

 

The keypads are all Toggle, except for button H which is (send OFF)

 

Now I want to turn off all scenes with another keypad button (H). I tried a program I found on this site to set the status of H:

If

      Status 'InlineLink1' is not off

  Or Status 'InlineLink2' is not off

Then

  Set  'Keypad 1 - H' On 15/Off 7

  Set  'Keypad 2 - H' On 15/Off 7

Else

  Set  'Keypad 1 - H' On 0/Off 0

  Set  'Keypad 2 - H' On 0/Off 0

 

But that doesn't work (the backlight for H doesn't turn on)

 

I tried another program to turn off all scenes:

If

      Control 'Keypad 1 - H' is switched off

  Or Control 'Keypad 2 - H' is switched off

Then

  In Scene 'Scene 1' set 'InlineLink1' 0%

  In Scene 'Scene 2' set 'InlineLink2' 0%

 

But that doesn't work either. The light behind button H flashes on then off, but the scenes don't turn off and the backlights for their controllers remain on.  There is a button in the ISY console to turn a scene off, but there doesn't seem to be any corresponding action.

 

Link to comment

If Control 'kpl 1 B' is switched On

Or Control 'kpl 2 B' is switched On

Or Control 'kpl 1 C' is switched On

Or Control 'kpl 2 C' is switched On

Then

    Set Scene 'Scene 3' On

Else

 

 

If Status 'kpl 1 B' is Off

And Status 'kpl 2 B' is Off

And Status 'kpl 1 C' is Off

And Status 'kpl 2 C' is Off

Then

    Set Scene 'Scene 3' Off

Else

Link to comment

The ISY (I'm using firmware version 4.2.18) seems to only run a 'Status' program once. I'm using your post #6 (If Control 'Keypad 1 - B' is switch on, etc.) to run the program that is all Status checks, and that works, since every change of state seems to trigger a Control check, but not a Status check.

 

But there is an interesting timing issue here (for us programmer types). pressing Kp1-B, to turn it on, turns on InlineLink1 in the scene, but also triggers the program that then checks the status of InlineLink1. Do we know that the scene update completes before the program is run? Or is there a chance that the program might find the InlineLink1 to still be off?

Link to comment

If Control and if status have their own set of rules.   If Control triggers the Program when the inbound command matches what is being looked for, On in this case.  If Control does not trigger a Program when the device/button is turned On by something  other than the device paddle/button being pressed On.

 

If Status triggers a Program when the Current State changes to match the condition being checked for.  If Status does not trigger a Program when Current State does not change states.   Turning a device/button On twice in a row triggers the Program once when Current State changes to On.

 

The Program(s) that are checking Responder Status of InlineLincs should be deleted.  No need to monitor a Responder. 

Link to comment

Both KPLs are being monitored by the two Programs in post 6.

 

Neither Program in post 6 uses/needs anything in the Else clause.  The first Program turns On Scene 3 (turns On both H buttons) when any of the 4 KPL buttons is turned On.  The second Program turns Off both H buttons  when all four KPL buttons are turned Off.

 

Oops, i see the missing piece. 

 

If Control 'kpl1 H' is switched Off

Or Control 'kpl2 H' is switched Off

Then

   Set Scene 'Scene 1' Off

   Set Scene 'Scene 2' Off

Else

 

Assumption - Scene 3 is assigned to kpl1 H and kpl2 H

 

For reference -  setting Backlight level changes the button LED level for All buttons, not just button H

 

Then

  Set  'Keypad 1 - H' On 15/Off 7

  Set  'Keypad 2 - H' On 15/Off 7

Else

  Set  'Keypad 1 - H' On 0/Off 0

  Set  'Keypad 2 - H' On 0/Off 0

 

The Adjust Scene changes the Responder On Level or Responder Ramp Rate of the Set device the next time the Scene is used.   Does not turn On/Off the Set device. 

 

Then

  In Scene 'Scene 1' set 'InlineLink1' 0%

  In Scene 'Scene 2' set 'InlineLink2' 0%

Link to comment

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...