Lights on delay

Discussion in 'General Discussion' started by Aaron, Mar 18, 2011.

  1. Aaron

    Aaron

    Joined:
    Jul 16, 2009
    Messages:
    99
    Likes Received:
    0
    Location:
    Wales, UK
    Hello,

    I'm looking to set up the following;

    I would like to be able to control two groups of lights from two sources
    when activated, the lights will stay on for approx 10 mins, then go off.

    outside there is a E5750WPL (set to turn on a group as motion in darkness) and inside a button on a B&W screen.

    What I've done so far is, I've written a bit of code that turns on two lighting groups, then a 10 min delay, then turns them off.

    My problem is, if the E5750WPL is re-activated, or the button is re-pressed the timer does'nt re-start.

    Is there another way to do this?

    TIA, Aaron
     
    Aaron, Mar 18, 2011
    #1
  2. Aaron

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This could be done a few different ways, but I'd try to keep it as simple as possible, and not do it in logic.

    For the motion sensor, it can control up to 4 group addresses, so you just need to configure it to turn on both your groups at once, each with a 10 minute timer. Whenever the sensor sees subsequent motion, it will re-set the timers back to 10 minutes. See attached.

    Then, in PICED for the touchscreen, I'd create a Scene for these two groups. In the Scene Editor window put the 2 groups in the Scene and configure them to be pulsed for 10 minutes. Configure your button on the touchscreen to recall this Scene.
     

    Attached Files:

    Newman, Mar 18, 2011
    #2
  3. Aaron

    Aaron

    Joined:
    Jul 16, 2009
    Messages:
    99
    Likes Received:
    0
    Location:
    Wales, UK
    Hi Newman,

    Thanks for your help.
    Im back on site over the weekend so I'll give it a go.
    On the screen, should the 'key function' be set to bell press?

    Aaron
     
    Aaron, Mar 18, 2011
    #3
  4. Aaron

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The Day Move / Night Move options in the screen shot are correct. I have not changed these from the defaults, and I suspect that if you look at your unit you'll see that's how it's already programmed.

    You certainly do not want to use the Bell Press function. If you change it to Bell Press you'll have those two groups toggling on and off every single time the unit detects motion of any sort, day or night, which is not what you want.

    The Night Move configuration, for the Motion in Darkness (MD) events, will turn on the group and keep it on, as long as the sensor keeps detecting motion, which is exactly what you want when it's dark. The Day Move function, for the Motion in Light (ML) events, won't turn the light on but it will keep the light on if you've manually overridden it to on and it's detecting motion, which is exactly what you want during the day time.
     
    Newman, Mar 19, 2011
    #4
  5. Aaron

    Aaron

    Joined:
    Jul 16, 2009
    Messages:
    99
    Likes Received:
    0
    Location:
    Wales, UK
    Hi,

    just to let you know it all worked really well.
    I set the screen button up as a timer resettable, with a 10 minute pulse, 100% scene level and 0% final level.

    Thanks :)
     
    Aaron, Mar 21, 2011
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.