The idea here is that we are going to setup a button on our SR-250 remote to activate the sleep timer. If the button is pressed one time, it will set the sleep timer for 30 minutes. Two presses will set it for 45 minutes, and three presses for 60 minutes. Then, when there is 5 minutes remaining on the sleep timer, it will make an announcement warning you there is 5 minutes remaining. This way if you’re still awake and watching TV, you can increment the timer up allowing more time of TV viewing before the timer turns off. One press will give you 10 more minutes, two presses gives 20, and three presses gives 30.
First thing we should do is create all of our announcements. We are going to need an announcement for:
- Sleep timer set for 30 minutes
- Sleep timer set for 45 minutes
- Sleep timer set for 60 minutes
- Sleep timer 5 minutes remaining
- Sleep timer set for additional 10 minutes
- Sleep timer set for additional 20 minutes
- Sleep timer set for additional 30 minutes
- Sleep timer has been shut off
I create my announcements using a really cool beta program by AT&T. You can find that by clicking here. I personally use “Audrey UK English”, but toy around with the different voices and find the one you like the best.
Of course, you don’t have to use this service, any .wav file will do; you can even record yourself if you would like. Whatever suits you.
Once you have created all the .wav files necessary, in Composer under the “Agents” tab, click on “Announcements”. Click the “New” button, and name your announement. Make sure the name is discreptive because we are going to have quite a few when this is all said and done. Check the box in the middle of the screen that says “Play Audio File (.wav)”. Click the “Add” button and select the .wav file you just created for this announcement. Now, we need to tell it what room to play it in so we hit add room. In our case this sleep timer is for the Master Bedroom, but check whatever rooms are appropriate for you and hit okay.
Repeat this until all of the necessary announcements are created.
Now we will create the actual timers. You will need to create the following:
- Sleep Timer Master Bed 30 Minutes
- Sleep Timer Master Bed 45 Minutes
- Sleep Timer Master Bed 60 Minutes
- Sleep Timer Additional 10 Minutes
- Sleep Timer Additional 20 Minutes
- Sleep Timer Additional 30 Minutes
- Sleep Timer Last 5 Minutes
Now make sure when you setup these timers you set them up for 5 minutes less than the time shown/announced. This is because there is a seperate timer for the last 5 minutes. For example, the “Sleep Timer Master Bed 60 Minutes” will be a 55 minute timer.
Now we need to create two variables. One will be a Boolean Variable (true or false) which will allow the system to behave differently on the button presses based on whether the sleep timer is on the last 5 minutes, or bring set for the first time. We’ll call this variable “Master Bedroom Sleep Timer”. The second will be a Number Variable that will track the number of button presses for the multi-tap. We’ll call this variable “Master Bed Sleep Timer Multi Tap”.
Now that we have all that out of the way, we can start the programming. We are going to be using a button on the SR-250 to activate/utilize the sleep timer, but you could use any keypad or custom button as well. Under the programming tab select the room we are creating the sleep timer for. In this case it is the Master Bedroom. Under “Command Received” select the button you are going to be using; in the case “Blue Button”. Now, we need to increment the variable up with each press of that button, so move over to the “Device Actions” pane, scrool down, hit the plus sign next to “Variables”, and select our newly created “Master Bed Sleep Timer Multi-Tap” variable. In the bottom right corner select “+ 1″, and drag the programming line into the center of the screen.
Now we need to create all our programming based on the changing in the variable. This programming is extremely in depth, and a play by play walkthrough would probably be overkill at too much to read so we are going to rely on you having a little knowledge of Composer and using some of previous write-ups for the more in depth detail. Here is what the programming based on the changing variable looks like when you are all finished.
Now, you have the timers all setup to start based on the number of presses. Great. Now, we need to add the announcements to play when each timer begins. In “Device Events” (top right section of Composer under the Programming tab) scroll down and select “Timer”. In the drop down box below, select the first timer that has to do with our sleep timer programming. Select “When timer ‘xxxxxx’ has been started”. Now in the “Device Actions” pane (top right) scroll all the way down to announcements, and then select the appropriate announcement and drag that programming line into the middle of the screen.
Now repeat the step for each and everyone of the timers. When you get to the timer “Last 5 Minutes” you need to add one more line of programming. Remember if this timer is running we want the multi-taps to increment to different times, and we tell if this timer is running based on the Boolean Variable we created earlier. So we need to have it toggle that Boolean Variable to “True” when the timer is started, and “False” when the timer is stopped.
Now, we also need to go in and add programming telling the system what to do when each timer “expires”. This is very easy, because they all do the same thing! Which the exception of the timer “Last 5 Minutes”, they all “Reset Timer -> ‘Sleep Timer Last 5′ “.
Once you have set the expiration of every timer to start the timer for the last 5 minutes, we’re almost done! All we need to do know is tell the system what to do when that timer expires! This is the one that actually shuts the room off.
Now the sleep timer is all done and is functioning. I put one last thing in, and that is a way to turn the sleep timer completely off. I put this programming under the Red button on the SR-25, and it looks like this:
Any questions, feel free to ask in the comments!