![]() ![]() Eventually, I would reflexively turn off my cell-phone alarm completely - with no recollection of it ever going off - then fall back to sleep and wake up in a panic about 20 minutes before I had to leave the house.Īs an engineer, I took a somewhat scientific approach to solving this problem. It started to get out of control, snoozing over and over. What’s an extra 18 minutes? Twenty-five minutes is a REM cycle, right? I should probably just sleep for a full hour and a half so I don’t wake up groggy. I started thinking it was okay to snooze, just once or twice. Slowly but surely, I internalized this new freedom. My brain took this new option very, very seriously. But then my first job had a relatively relaxed “arrival window,” and I suddenly had an option I had rarely enjoyed before: Snoozing. session of Thermodynamics was expensive was also a good motivator … most of the time. In college I had an alarm clock, but knowing that my 7:30 a.m. When I was a kid, that alarm took the form of my parents, which was always effective since they don’t typically have a snooze button. That it! The alarm will trigger at 5:36am, send a POST request to your HA server, which will run the Sunrise script and start up the HUE bulbs transition script.All my life, I’ve used an alarm to wake up in the morning. Set the task to execute to the “Sunrise” task.Replace “yourAPIpassword” with the password set in your configuration file and “sunrise” if you named the script differently.For Path set it to: /api/services/script/sunrise?api_password=yourAPIpassword.For Server:Port set it to the IP address of your HA installation including http and the port.Open tasker and create a new Task called “Sunrise”.When the alarm starts it will send an intent to tasker. The Sleep as Android has pretty poor integration configuration features so we have to use the “Gentle volume increase” as a work around. Tweak the alarm to your liking and save.In the alarm settings open the “Gentle volume increase” setting and set it to 24 minutes.For example you want to wake up 6:00am, set the alarm for 5:36am. Create a new alarm, but set the alarm time 24 minutes before you want your chose ringtone to start playing.Open the Sleep as Android and go to settings -> integrations -> services and enable “Tasker”.Now we setup a new alarm in Sleep as Android: Task will be used to communicate with your HA server. Now make sure that the Rest API is enabled in your configuration.yaml file: Any app that supports intents with Tasker can achieve the same functionality. This app has native HUE support but the colors weren’t quite to my liking. My primary goal was to integrate the script with the popular Sleep as Android app. Here’s a 1 min clip of the 30 minute transition, sped up 32 times. If you use multiple bulbs I suggest only starting the 2nd bulb after 15 minutes. In testing I found that 1 bulb is plentiful in brightness for the early mornings. Swap out the “light.hue_color_lamp_1” with a HUE group or the bulb you want to use. ![]() I tried to reproduce the colors as close as the original wake up light. Be careful with testing, you will have to wait 30 minutes to complete the full script! The colors are defined with the XY color gamut from Philips. This script has 4 color states it fades between, currently it takes 600 seconds per state to do a full transition. In Home Automation I setup the HUE bridge and made sure the light worked, then added this script: sunrise: I switched out the wake up light for a standard Philips HUE white + color bulb which I simply put in the regular bedroom lights. Unfortunately the button interface of the wake up light is rather clumsy and the lack of integrations options made me look for an alternative. The Philips wake up light is essentially a big light bulb that slowly fades from red to orange to yellow to white over a timespan of 30 minutes at a set alarm time. I’ve been using a Philips wake up light and love it, really helps me get up in the morning and feel less tired during the day. Hello all! Time to show off a small project I’ve been working on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |