Hey everyone, I wanted to share my experience setting up a sunrise wake-up automation using Home Assistant. It’s been a fun project, and I thought I’d walk through my process in case anyone else is looking to do something similar.
The Goal
I’ve always loved the idea of waking up to a gradually brightening light, mimicking a natural sunrise. It’s supposed to help with feeling more awake and less groggy in the morning. I found a guide online by Lewis that seemed perfect, so I decided to give it a try.
The Setup
I followed Lewis’s instructions and set up the automation using a combination of time triggers and light transitions. The idea is simple: at a set time, the light starts dim and slowly increases in brightness over a period of time, simulating the sunrise.
The Hiccups
Everything seemed to go smoothly at first—the light turned on, and the brightness started to increase. But there was one problem: the transition was way too fast. Instead of taking 15 minutes to reach full brightness, it was doing it in under 10 seconds! I was confused. I had set the transition time to 900 seconds (15 minutes), so why wasn’t it working?
The Fix
After some digging, I realized that the issue was with how the transition was being applied. The initial automation was turning the light on with a brightness of 1%, and then a second action was trying to increase it. But it seems like the second action was overriding the first one or not being applied correctly. To fix this, I adjusted the automation to include the transition in the same action that turns the light on.
Here’s the corrected version of what I used:
yaml
alias: Wake-Up Light
trigger:
- platform: time
at: “07:00:00”
condition: - condition: time
after: “00:00:00”
before: “23:59:59”
action: - service: light.turn_on
data:
entity_id: light.bedroom_light
brightness_pct: 1
transition: 900
color_temp: 350 - delay: seconds: 2
- service: light.turn_on
data:
entity_id: light.bedroom_light
brightness_pct: 100
transition: 900
color_temp: 350
This way, the light starts at 1% brightness and gradually increases over 15 minutes (900 seconds) without any abrupt changes.
The Result
Now, every morning, I wake up to a gentle increase in light. It’s amazing how much better I feel starting my day this way! Plus, it’s been a great way to integrate some smart home tech into my daily routine.
Tips for Others
If you’re looking to set up something similar, here are a few tips:
- Test the Transition: Start with a shorter transition time (like 5 minutes) to make sure everything works before committing to a longer one.
- Use the Same Light Settings: Ensure that the color temperature and brightness settings are consistent throughout your automation to avoid any unexpected jumps.
- Delay for Smoothness: Adding a small delay between actions can help prevent any potential conflicts or overrides.
I’d love to hear if anyone else has tried something like this or has any additional tips or tricks. Happy automating! ![]()