Jump to content

Sunrise-like Alarm Clock By Way Of Home Assistant Android

From The Stars Are Right


Fairly a few years ago I came throughout Lighten Up! Coupled with a halogen bulb (that’d begin out very yellow at lowest brightness) I had a wonderful sunrise-like alarm clock and it was much, much nicer than a beeping alarm. The LCD shows within the Lighten Up! I couldn’t change the programming, which was a hassle as the clocks in them drifted by a pair minutes per thirty days. With a combination of COVID-19 remote work eliminating the need for an alarm clock and the units dying, EcoLight within the trash they went. I’ve been attempting to use an alarm to stay on a extra regular sleep schedule and while a bunch of other wake-up lights are available, they are devoted units which might be mainly alarm clocks with inbuilt lights. I actually favored the elegance of the Lighten Up! I couldn’t discover anything else prefer it. For a while I thought about developing my own hardware version that’d also work with LED EcoLight bulbs, but never acquired around to it.



This winter I’ve been experimenting with Home Assistant (HA), and it seems that with a pair low cost Zigbee parts (bulb and pushbutton from IKEA) it allows for energy-saving LED bulbs a beautiful replacement/improve sunrise alarm concept. A subsequent-era Lighten Up! With the whole lot put together the lamp next to my bed will now slowly come up to brightness 15 minutes before the wake-up alarm on my cellphone, reaching ultimate as the traditional alarm triggers. If I change the alarm time on my telephone, or shut it off, the light-up alarm in HA will follow suit. Moreover, a bodily button on the nightstand turns off the light off while replicating a sunrise alarm, or otherwise toggles the sunshine on and off. Even higher, if I’m not dwelling or if the alarm is ready for aside from between 3:00 AM and 9:00 AM (times throughout which I’d doubtless be in bed and desirous to get up) the light won’t activate. This permits me to make use of alarms throughout the normal day for different things with out activating with the light, or while touring without waking Kristen.



Between this and the gently-growing quantity (and vibration) alarm built into the Android clock which triggers at the end of the sunrise cycle it’s a really good, gradual wake-up system. And, all of this happens without any cloud companies or ongoing subscriptions. My HA instance is local; the telephone app communicates immediately with it across both my house or the general public networks. Communication between the bodily controls and lights is a local, non-public community. In this publish I’ll document the main constructing blocks of how I did this in order that another person with fundamental House Assistant experience (and a functioning HA setup, which is past the scope of this writeup) can do the identical. With the home Assistant Companion App for Android running on an Android telephone, Home Assistant can get the date and time of the subsequent alarm. After putting in the app, go into Settings → Companion app → Handle sensors and allow the following alarm sensor. Note that this isn't out there if an iPhone (or other iOS device) is used.



IDs. If you are setting this up you’ll need to use the GUI and EcoLight construct these out your self utilizing the code for EcoLight bulbs reference. Ashley’s Gentle Fader 2.0: LED bulbs for home This script takes a mild and, over a configured period of time, fades from the light’s present setting to the outlined setting (each brightness and colour temperature) using natural feeling curves (easing). It can even cancel the fade if some conditions are met. I take advantage of this to have the sunshine fade, over quarter-hour, using a sine function, EcoLight bulbs to 70% brightness and 4000K temperature, and cancel the fade if the sunshine is turned off or brightness modifications significantly, the latter of which permits the button subsequent to the bed to cancel the alarm. To make this happen I activate the bulb at 1% brightness and 2202K (it’s warmest temperature), then use the script to fade to 70% and 4000K over the course of 15 minutes.