Building the World’s Greatest Smart Alarm Clock
We live in a Smart Home and right next to our SleepIQ Wi-Fi enabled bed is the oldest alarm clock on the planet. It is your standard radio alarm clock from the 1980s that is either too bright or too dim, never programmed correctly and goes out of sync with the world twice a year with daylight savings. It has absolutely no smarts to it at all. In fact, most of the time, it was just the visual timepiece and the iPhone next to it provides the REAL alarm functionality.
I set out to fix this with Home Assistant.
Building on the current Alarm System project using FloorPlan and the Fire Tablets, I started the creation of a Home Assistant powered Smart Alarm clock.
Parts List:
1 x FireOS tablet
First up, my friend Steve hooked me up with a great looking SVG design for the Alarm Clock.
You can find all the Floorplan project files here:
https://github.com/CCOSTAN/Home-AssistantConfig/tree/master/config/www/custom_ui/floorplan
The automation files are set up in a package format for easy drop in:
https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/config/packages/alarm_clock.yaml
So what does the Clock do? It does the obvious stuff –
- Displays time and date
- Plays streaming music on alarm trigger
- Snoozes
- Displays the weather
- Displays the indoor Nest temperatures
- Shows an live image of the Front Door via the SkyBell HD Doorbell.
So what else can it do?
- It uses the Fire Tablet’s motion sensing (via camera) to detect motion and wake up the screen saver. Great for bathroom trips in the middle of the night.
- It uses Home Assistant logic to know if it’s a school day or not (Summer Vacations, Holidays and Weekday/Weekends).
- Leverages the bed sensors to know when you get up at night (turn on guide lights and display time and then fade to black when back in bed) and then when you get out of bed for good in the morning (turn off the radio/snooze and trigger the morning routines).
- Get Alert TTS Notifications from the system right to the bedside without broadcasting to the whole house. (Security events – Doors, Garage doors, windows etc..)
- Fully integrated with Alexa via Emulated Hue component since we use input_booleans for most buttons.
- Fully customizable with Home Assistant (like turning on lights, starting coffee maker, warming up your Tesla, etc. )
The secret sauce behind a lot of the cool Media Player features is the new custom component built by Petar Kozul. This exposes Fully Kiosk Browser (recommended for Floorplan) to Home Assistant as a fully fledged Media Player.
Grab the Custom Component here:
https://github.com/CCOSTAN/Home-AssistantConfig/tree/master/config/custom_components/media_player
With full Media Player capabilities exposed, we can use the Fire Tablets for both music, TTS notifications, Cuckoo Clock sounds as well as grab a slew of attributes on the Tablet for future use.
If you haven’t given your Home Assistant Voice yet, this is a great way to get a TTS target at a super low entry price (I think for Black Friday you will see the Fire Tablet 7s for $30 or less).
Here is a quick video demo of the clock: (Thanks again for the intro Steve!)
Happy Thanksgiving Everyone! Enjoy Black Friday Shopping Deals!
-Carlo