Results 1 to 2 of 2

Thread: Program Cycle Dim as a Conditional on a Button Press/Release

  1. #1
    Authorized Lutron Contributor
    Join Date
    May 2013
    Posts
    513

    Program Cycle Dim as a Conditional on a Button Press/Release

    Attaches is a sample file programmed with the functionality described below that will allow cycle dim via a conditional button by using the press and release tabs.

    We have two variables for the button. "Keypat button" to record the state. By default it is "press", whereas we will just be performing a normal button press. The other states are Raise and Lower indicating which step of cycle dim they are in. The other variable is for the lights to toggle; the variable is called Lights and the default state is Off and we have the other state be On.

    We also have two sequences, cycle dim raise and cycle dim lower. The cycle dim raise sequence will have the first step be to set the Keypad Button variable to Press for one second, then the variable will be set to Raise for 10 seconds, so if the button is then pressed again, the lights will dim up. The cycle dim lower sequence will have the first step be to set the Keypad Button variable to Press for one second, then the variable will be set to Lower for 10 seconds, so if the button is then pressed again, the lights will dim down. The one second step where the keypad button variable is at press will be used to toggle the lights between on and off if the release tab of the program.

    The button programming is as follows:

    On the Press Tab:
    If the keypad button variable is set to lower, Run the cycle dim sequence and raise the preset for the lights. This means if the last things that was done to the lights was to dim the scene down, on this next press it will raise

    If it is not set to lower,
    Run the cycle dim lower sequence and dim the lights down. This means the keypad variable was set to raise or press, and then we will begin the cycle dim action if you hold the button press by lowering the lights.

    On the Release Tab:

    Check if the keypad button variable is a press If it is, and the lights are on, turn them off. If the lights were off, turn them on

    If the keypad is not at press,
    Stop moving the lights. It was probably doing cycle dim raise or lower, so we stop the lights moving after this release.
    Attached Files Attached Files

  2. Thanks BMyers thanked for this post
    Likes BMyers liked this post
  3. #2
    Junior Member
    Join Date
    Aug 2015
    Posts
    1
    This is great, thank you. It solved a problem of how to have a dimmed and switched load on the same button, and being able to keep the switched load on unless the dimmed load was completely off.

    brett

Similar Threads

  1. Can we program a button to do Full-Flash mode?
    By jchitrady in forum Programming - RA2
    Replies: 13
    Last Post: 09-08-2015, 02:42 PM
  2. LED logic feedback from a conditional button
    By Blarsen in forum Programming - HWQS
    Replies: 3
    Last Post: 10-27-2014, 04:06 PM
  3. Conditional button dependent on shade position
    By ekimla in forum Programming - HWQS
    Replies: 3
    Last Post: 10-14-2014, 04:06 PM
  4. Program a switch or dimmer button to operate a scene?
    By jives in forum Programming - RA2
    Replies: 9
    Last Post: 06-20-2014, 04:06 AM
  5. Shared Scene in Action Tab on Conditional Program
    By stevi in forum Programming - HWQS
    Replies: 4
    Last Post: 02-09-2014, 10:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •