Turn on all lights when going to bed

This automation is a real time-saver that can be customized for more than just bedtime. One command prepares your entire home for sleep.

Use cases

Trigger Methods

  • Bedtime - Turn off lights throughout house
  • Voice Command - "Good night" to Alexa/Google/Siri
  • Button Press - Physical bedside button

Automation Styles

  • One-Button Routine - Single trigger for multiple actions
  • Scheduled - Automatic at set time

Products needed

Essential Equipment

Smart Lights
Throughout house for automation control

Optional Enhancements

Smart Button
Bedside trigger for one-press routine
Smart Locks
Auto-lock doors at bedtime
Smart Thermostat
Temperature adjustment for sleep

Basic automation setup

IF bedtime button pressed (or time is 10:30 PM) THEN turn off all downstairs lights AND lock doors AND set thermostat to sleep mode

Triggers

  • Time is 10:00 PM
  • OR button is pressed
  • OR voice command "Good night"

Conditions

None (immediate execution desired)

Actions

  • Turn off all main lights in house
  • Keep nightlights on (optional)
  • Put house in Night Mode

Platform-specific examples

Home Assistant logo

Home Assistant

Trigger Time is 10:00 PM OR bedside button pressed
Actions Turn off main lights, nightlights to 10%, set mode to "Night"
SmartThings logo

SmartThings

WHEN Time is 10:00 PM OR button pressed
THEN Change mode to "Night", turn off main lights
Hubitat logo

Hubitat

Trigger Time is 10:00 PM OR button pressed
Action Change mode to "Night" → Turn off main lights
Setup: Use Mode Manager + Rule Machine for mode-based actions
Apple HomeKit logo

Apple HomeKit

Scene "Good Night" - turn off main lights, nightlights to 10%
Trigger Voice "Hey Siri, good night" or button/time automation
Alexa logo

Alexa

When You say "Good night"
Actions Turn off lights, lock doors, set thermostat
Google Home logo

Google Home

When I say "Good night"
Actions Adjust lights, lock doors, set thermostat

Night mode actions

Lighting

Security

Climate

Cameras

Appliances

Advanced features

Gradual dimming (15 minutes before bedtime)

Create automation that gradually dims lights before bedtime:

Sleep tracking integration

If using sleep tracker (Apple Watch, Fitbit, etc.):

Create trigger: When sleep status changes to “sleeping”

Reminder checks

Before activating Night Mode, verify:

Send notification if any issues.

Kids bedtime vs. adult bedtime

Kids Bedtime (8:30 PM):

Adult Bedtime (10:30 PM):

Safety considerations

Always Keep:

Smart speaker settings:

Troubleshooting

Lights don’t turn off

Check:

Nightlights too bright/dim

Adjust brightness:

Locks don’t engage

Verify:


Related automations: