Jump to content
C4 Forums | Control4

Wake Scene - Snooze and Stop


HEAT

Recommended Posts

Hi Guys, We are a new C4 dealer and we're really excited with what we have already been able to do with the systems. We would like to create a wake up scene for the master bedroom that will flash the light and play an MP3 playlist through the speaker point. Here is the hard part - we want the extra button on the LCD Keypad to function as a snooze and off button. When the button is pressed, the scene should stop for 8 minutes then start again, unless at any time after the initial wake up scene has started, the button is held for three seconds to turn off the scene and leave the light on. Should be simple enough, right? Any programming help from the gurus out there on this whole mess would be greatly appreciated!

Link to comment
Share on other sites

  • 1 year later...

Its possible with one little change. Instead of holding for 3 seconds, a double-click to end the alarm? If thats ok then here goes.

In agents: Create a variable (number) called snooze

In programming:

When "Room"-> LCD Keypad button is pressed

Variables-> Snooze = Variables-> Snooze +1

When "Room"-> LCD Keypad button is released

Wait 1 second

If Variables-> Snooze EQUAL to 1

Room off

Light off

Delay 8 minutes

Execute wakeup (Name) in Bedroom1

If Variables->Snooze EQUAL to 2

Room off

Light on

Variables->Snooze=0

When wakeup scene (Name) executes

light on

wait 1 second

light off

wait 1 second

light on

wait 1 second

light off

wait 1 second

light on

wait 1 second

light off

wait 1 second

light on

wait 1 second

light off

wait 1 second

(repeat as necessary)

light on (light will stay on if alarm is on for x amount of seconds.

Hope this helps

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.