Home Assistant
Morning light
Bedroom lights fade in with your alarm, not with the sun.
AuthorOleksandra Bondar
PublishedAug 2026
LicenseApache-2.0
Installs213
Why it exists
Sunrise automations are lovely until winter, when the sun and your shift disagree by three hours. This mod reads the next alarm from your phone and fades the bedroom lights in over the last twenty minutes of sleep.
Weekends follow the alarm too: no alarm, no fade, no lights at 6:30 on your day off.
What it does
- Fade tied to the next phone alarm
- Per-person configuration for shared bedrooms
- Skips automatically when no alarm is set
The spec
These acceptance criteria were written with the person who requested the mod, then locked in as its tests. The mod has to pass them on every new release train before it rides along.
- No alarm set means no lights, every time
- The fade completes at alarm time, within a minute
mods/morning-light/tests/test_alarm_fade.py
def test_no_alarm_means_no_fade():
phone = fixtures.phone(next_alarm=None)
timeline = simulate_night(bedroom, phone)
assert timeline.light_events == []