I'd like to simulate the Philips Sunrise Simulation Alarm Clock with a Hubitat controlled RGBW bulb or light strip, starting at the dimmest red and ending at the brightest white.
A few years ago, I ditched the alarm clock in my room. The biggest benefit I found was no more stress waking up at odd hours of the night frustrated by how much sleep time remained: either waking up repeatedly and seeing hours remain, or waking up once, still exhausted, and seeing only minutes remain.
I replaced the alarm clock with a sunrise simulation that was both consistent (running at or before actual sunrise most of the year) as well as 'rising' much slower than the actual sunrise (100 minutes, in my case, opting to believe the 90 minute sleep cycle theory). Basically, if I woke in the middle of the night and the room was still dark, I knew I could go back to sleep because at least 90 minutes remained. If I woke and the room had any amount of light, I knew I had less than 90 minutes, and should just go ahead and get up to avoid that groggy feeling when you're awoken in the middle of deep sleep by your alarm. As a fail-safe, the alarm was set on my phone at the end of 100 minutes, but with this setup, I very rarely slept until the alarm.
On Wink, I painstakingly wrote 100 robots, one per minute, that transitioned my bulb from 1% red to 100% 5000K daylight. It worked well, but was impossible to change (to cancel or disable I just turned off the lamp the night before). My routine starts on red because it's much dimmer at 1% than my bulb is at 2000K, then transitions from red into the lower white spectrum.
IKEA TRÅDFRI has a sunrise routine in their app, but is limited to 30 minutes and only goes from 1% to 100% of the previously set color. I have to preset the bulb to red at bedtime (via my, "Alexa, goodnight," routine). I see SmartThings also has a sunrise simulator, but I don't know if it transitions white spectrum or just goes from 1% to 100% over a set time like TRÅDFRI.
I'd like to see a routine that's flexible, allowing easy configuration of wakeup time (when it hits 100%) and customizing duration (when to start) as well as starting and ending color (possibly the biggest challenge).
Bonus: Control from a PICO remote! HOLDING up or down increments wakeup time in ten-minute intervals, spoken by Alexa or other TTS; tapping on turns alarm on; tapping off turns alarm off, also confirmed by Alexa or other TTS; HOLDING on (during an active ramp up time) ends ramp up and jumps to 100%; HOLDING off (during an active ramp up time), ends ramp up and jumps to 0%.
I'll investigate writing my own, but honestly, I haven't programmed seriously in 30 years, and that was Pascal in High School and Visual Basic shortly after. I wanted to post my idea in case there's something out there that already does some of this ... and maybe spark something in someone interested in the challenge.