O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  


 
Buy the book!
Smart Home Hacks
By Gordon Meyer
October 2004
More Info

HACK
#51
Simulate a Sunrise
Instead of getting jolted from sleep with a rude alarm, wake up gently by gradually increasing the brightness of your bedside lamp.
[Discuss (0) | Link to this hack]

Some sleep research suggests that the best way to wake up in the morning is to do so slowly, with a light that gets progressively brighter, reaching full strength at the time when you want to arise. It's said that this can even eliminate the need for an alarm; you will just naturally wake up with the simulated sunrise. If this idea appeals to you, you can use your home automation system to try it out without having to buy a special alarm clock (http://www.dreamessentials.com/a_clocks_sunrise.aspx; $110).

To set up a simulated sunrise, you use scheduled events that send gradually increasing Dim commands to your bedside lamp at regular intervals. Here's a script that accomplishes this using XTension :

	dim "Bedroom Lamp" to 10
	dim "Bedroom Lamp" to 20 in 3 * minutes
	dim "Bedroom Lamp" to 30 in 5 * minutes
	dim "Bedroom Lamp" to 50 in 7 * minutes
	dim "Bedroom Lamp" to 75 in 9 * minutes
	dim "Bedroom Lamp" to 100 in 11 * minutes

Save this as a global script and schedule it to execute 11 minutes before the time you want to awake. When the script runs, it schedules all the events necessary to gradually adjust the light. shows the Scheduled Events window as it appears immediately after the script runs, with all the associated events waiting in the queue.

If you use HomeSeer , you set up a simulated sunrise by creating an event with multiple actions, each delayed by an appropriate amount of time, as shown in .

Figure 1. Scheduled events in XTension

Figure 2. Delayed events in HomeSeer

Remember that when you define the event, you can select which days it is active, such as weekdays only (as shown in ), and that you'll want it to start prior to the time you want to awake. That is, if you have programmed the light to take 11 minutes to reach full brightness, start the event 11 minutes prior to your usual alarm time.

Figure 3. A weekday-only event

You will want to experiment with how early you begin the process of brightening the light, as well as how much it changes at each step. In addition to your own personal preferences, you'll need to take into account that some lamp modules might not visibly change brightness very much when told to increase by a small increment. That is, you might not be able to notice the difference when a lamp is set to 80% or 85% brightness.


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.