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
Trigger
Time is 10:00 PM OR bedside button pressed
Actions
Turn off main lights, nightlights to 10%, set mode to "Night"
SmartThings
WHEN
Time is 10:00 PM OR button pressed
THEN
Change mode to "Night", turn off main lights
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
Scene
"Good Night" - turn off main lights, nightlights to 10%
Trigger
Voice "Hey Siri, good night" or button/time automation
Alexa
When
You say "Good night"
Actions
Turn off lights, lock doors, set thermostat
Google Home
When
I say "Good night"
Actions
Adjust lights, lock doors, set thermostat
Night mode actions
Lighting
- Turn off:
- Living room
- Kitchen
- Office
- Hallway main lights
- Keep on (dim):
- Bedroom nightlight (10%)
- Bathroom nightlight (10%)
- Hallway nightlight (5%)
Security
- Lock all doors:
- Front door
- Back door
- Side doors
- Garage door
-
Close garage door - If open
- Arm security:
- Motion sensors
- Cameras (enable night mode)
- Perimeter sensors
Climate
- Adjust thermostat:
- Lower to sleeping temperature
- Heating: 65°F (18°C)
- Cooling: 70°F (21°C)
- Enable DND mode - Quiet smart speakers
Cameras
- Set privacy mode - Indoor cameras
- Enable night vision - Outdoor cameras
- Reduce sensitivity - Prevent alerts from normal movement
Appliances
- Turn off non-essentials:
- Coffee maker
- Fans (except bedroom)
- Entertainment systems
- Office equipment
Advanced features
Gradual dimming (15 minutes before bedtime)
Create automation that gradually dims lights before bedtime:
- Trigger: Time is 9:45 PM (15 minutes before bedtime)
- Action: Dim living room lights to 30% over 15 minute transition
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:
- All windows closed
- Appliances off
- Doors locked
- Garage closed
Send notification if any issues.
Kids bedtime vs. adult bedtime
Kids Bedtime (8:30 PM):
- Dim kids’ room lights
- Turn off playroom
- Start white noise
- Keep hallway lights
Adult Bedtime (10:30 PM):
- Full house Night Mode
- All lights off (except nightlights)
- Lock everything
- Lower thermostat
Safety considerations
Always Keep:
- Path lighting (nightlights)
- Emergency exit lighting
- Quick access to manual controls
- Physical keys accessible
Smart speaker settings:
- Reduce volume at night
- Or enable DND completely
- Allow emergency phrases through
Troubleshooting
Lights don’t turn off
Check:
- Automation is enabled
- Lights are connected
- No competing automations
- Switch positions
Nightlights too bright/dim
Adjust brightness:
- Test different percentages
- 5-15% typical range
- Warmer color temperature better
Locks don’t engage
Verify:
- Lock battery level
- Lock is in range
- Automation includes lock command
- Check lock status in app
Related automations: