Waking up to the harsh sound of an alarm clock can be jarring. It throws you straight from deep sleep into the stress of the day. If you have a smart home, you can make mornings smoother and more enjoyable. By pairing a sunrise lamp with automated shades in Home Assistant, you can simulate a natural sunrise and fill your bedroom with light before you even open your eyes. This combination helps you wake up feeling refreshed, energized, and ready to go.
Why This Morning Routine Works
Your body’s internal clock responds to light more than you might think. Sudden, bright light can feel overwhelming first thing in the morning, but gradual light signals to your brain that it’s time to wake up. Adding automated shades brings in natural daylight, which can give you an extra boost.
Here’s why this approach makes such a difference:
- Gentle sunrise simulation: Instead of shocking your system, the lamp slowly brightens over a set period of time. This mirrors the natural sunrise and helps your body produce cortisol at the right time to wake you up.
- Natural daylight boost: Opening shades after the lamp reaches full brightness introduces real sunlight, which can help regulate your circadian rhythm and improve alertness.
- Better energy and mood: Studies show that gradual exposure to light in the morning can reduce grogginess and improve mood compared to waking up in the dark or to loud alarms.
- Fully automated: This routine runs without you lifting a finger, so it works even on days when you feel like hitting snooze.
The result is a wake-up experience that feels effortless and natural, rather than abrupt and rushed.
What You’ll Need
You do not need a huge collection of devices to create this automation. In fact, you can start with just two smart devices and Home Assistant.
- Home Assistant with YAML access – This is the platform that will control the timing and flow of the automation. You’ll need access to YAML so you can paste in the automation code.
- Dimmable smart light – A bedside lamp or overhead light that supports brightness control is essential for the gradual sunrise effect.
- Smart blinds or shades – These will open automatically at the right point in the routine, letting in natural daylight.
- Optional “Night Mode” input – This is a toggle in Home Assistant that lets you control whether the automation runs, making it easy to disable for weekends or days off.
If you do not have smart blinds yet, you can still set up the sunrise light portion and add the shades later when you are ready to expand.
How The Sunrise Automation Works
This automation is designed to feel natural and predictable. You decide the start time, and Home Assistant does the rest.
- The light starts at 20% brightness – This creates a soft glow that begins to wake your senses without being harsh.
- The brightness increases in steps every minute – Over the next several minutes, the light gradually rises to 100%, giving your body time to adjust.
- The shades open halfway – Once the light is at full brightness, your shades open to let in natural daylight. Halfway is a good balance between privacy and brightness.
- Runs only when Night Mode is on – This prevents the routine from running on days you want to sleep in, such as weekends or holidays.
This flow is customizable, so you can change brightness levels, timing, and shade position to fit your preferences.
The YAML Code
Below is the YAML code for the automation, set up with placeholders so you can easily swap in your own devices and entities from Home Assistant.
alias: Sunrise Effect
description: "Slowly brighten bedroom light, then open shades"
trigger:
- platform: time
at: "07:00:00" # Change to your preferred wake-up time
condition:
- condition: state
entity_id: input_boolean.night_mode # Change to your own night mode entity
state: "on"
action:
- repeat:
count: 5
sequence:
- service: light.turn_on
target:
entity_id: light.bedroom_lamp # Change to your own light entity
data:
brightness_pct: '{{ repeat.index * 20 }}'
- delay: "00:01:00"
- service: cover.set_cover_position
target:
entity_id: cover.bedroom_shades # Change to your own cover entity
data:
position: 50 # 0 = closed, 100 = fully open
mode: singleSetup tip: You can copy this directly into your Home Assistant automations and replace the entity_id values with the names of your actual devices. If you are not sure what they are, go to your device list in Home Assistant and copy them from there.
Optional Add-Ons
Once the base automation is in place, you can take it further with a few enhancements:
- Add sound – Play calming music, nature sounds, or a morning briefing from Alexa or Google Assistant as the light brightens.
- Weather integration – Only open the shades if it is sunny outside, or keep them closed if rain is detected.
- Seasonal timing – Use sunrise and sunset data to shift the routine automatically throughout the year.
- Multiple lights – Gradually brighten more than one lamp in the room for a more immersive sunrise effect.
These add-ons make the automation even more personal and adaptable to your daily life.
Make Your Mornings Better
A morning routine that includes a sunrise effect and automated shades can transform the way you start your day. Instead of waking up abruptly, you rise gradually with soft light and daylight filling your room. It is a small change that can have a big impact on your mood, productivity, and overall well-being.
If you are ready to take your mornings to the next level, try this setup in your bedroom. You will be surprised at how much easier it is to get out of bed.




