Skip to content

WakeUp Alarm

CJ edited this page Feb 7, 2021 · 13 revisions

I am NOT a morning person. I would prefer sleeping until 10 or 11 (or noon). But that is not the way of the world. This was inspired by another user who used Node-Red to do a sunrise style alarm clock. I took that idea and built this for two distinct users, plus a "house" alarm which would do all of the individual alarms. The flow for each person is the same. This is currently using Philips Hue lights, but I plan to replace those at some point to eliminate other "hubs" in the house, and have things that have no cloud dependencies.

Shown below is the individual alarm flow. Each person is exactly the same with a set of parameters available in the front end to set the alarm.

WakeUp Individual WakeUp Individual

The user can enable the alarm (auto enable option also available using the dropdown (weekdays, weekends, all). Choose the auto-enable mode too, just the alarm, or the alarm plus radio. Show when the alarm is active, offers snooze. The wake time has a default setting(across reboots of HA), but can be set to anytime users chooses.

WakeUp Frontend

The rest of the flow controls auto-enabling the alarms for each user, so they don't forget to turn it on, though whether they want it auto-enabled or not is an option. There is also the General house wakeup, which will trigger all the individual alarms at a specifc time, based on each users settings.

WakeUp Auto and House

The lights are under the bed, so one person doesn't disturb the other by lighting up the entire room. The lights is gradually brighten over about 20 minutes so it is gentle. If the radio is enabled, the volume is kept low overall, but is also gently increased to a certain point so not to disturb the other person.

I haven't been able to get a slider in the front end to affect the length of time in the back-end, but that would be a fantastic upgrade to this flow. I have been asked about the lights themselves.

I am currently using some Philips Hue lights that I already had. I will discuss Zigbee use in a separate post, but it may be notice, I don't have any hue nodes in this flow. That is very deliberate. I designed it this way because if I change the hue lights to something else such as a Shelly Bulb, or LIFX bulb, then I all should need to change is which entity the turn on/turn off nodes are pointed too and I should not have to redesign the flow.

Update (12/20/2020): I am testing an update to the WakeUp flow to also add a calendar trigger. This is included in the individual alarm flow, and will change the wakeup time if the person creates an 'Alarm' entry on their google based calendar, that will override the time set in the FrontEnd in Home Assistant. To prevent causing in issue by creating that calendar entry before the day it is scheduled for, the alarm time won't actually change until the clendar date for that specific alarm.