SmartHomeXa
HomeAutomation RecipesCompatibility CheckerSmart Home BuilderBlog & GuidesSubmit a Report
SmartHomeXa

Simplifying smart home setups for everyone. Built with ♥ for the smart home community.

CheckerBuilderRecipesBlog

© 2026 SmartHomeXa. All rights reserved.

Compatibility data is rules-based & crowdsourced. We may earn a commission for purchases made through our links.

Back to all recipes
Smart Home Recipe

Auto-Lock & Goodnight Scene

Verify all doors are securely closed, deadbolt locks engage, and main living areas shut off at bedtime.

Authored by SmartHomeXa Team
•
Updated Aug 17, 2026
Active Smart Home Ecosystem

Apple HomePod mini (Apple Home)

Select the hub or smart home system you use at home. Hardware suggestions will automatically adapt:

Automation Logic Flow

5 steps in sequence
TRIGGER
#1

Scheduled bedtime at 11:00 PM or "Goodnight" button pressed

switch
IF CONDITION
#2

Front and back door contact sensors indicate closed

sensor
THEN ACTION
#3

Engage motorized deadbolt lock

lockmatter
THEN ACTION
#4

Turn off all main living room & kitchen smart lights

light
THEN ACTION
#5

Cut standby power to entertainment center plugs

plug

Required Hardware Pieces (5)

Live catalog products verified for Apple HomePod mini

Est. Total Kit:$370.95
STEP #1Scheduled bedtime at 11:00 PM or "Goodnight" button pressed
TP-Link Tapo Matter Smart Light Switch: Voice Control w/Siri, Alexa & Google Hom...
TP-Linkswitch4.5

TP-Link Tapo Matter Smart Light Switch: Voice Control w/Siri, Alexa & Google Hom...

$23.99
matter
amazonGet on amazon($23.99)
STEP #2Front and back door contact sensors indicate closed
Aqara Motion Sensor P1
sensor

Aqara Motion Sensor P1

$24.99
zigbeematter
amazonGet on amazon($24.99)
STEP #3Engage motorized deadbolt lock
Smart Lock U400
Aqaralock4.0

Smart Lock U400

$269.99
matterthread
aqaraGet on Aqara($269.99)aqaraGet on Aqara($529.99)
STEP #4Turn off all main living room & kitchen smart lights
Linkind Matter Smart Light Bulbs, Work with Apple Home, Alexa, Siri, Google | Ma...
Googlelight4.4

Linkind Matter Smart Light Bulbs, Work with Apple Home, Alexa, Siri, Google | Ma...

$24.99
matter
amazonGet on amazon($31.99)amazonGet on amazon($24.99)
STEP #5Cut standby power to entertainment center plugs
Linkind Matter Smart Plug, Work with Apple Home, Alexa, Google Home, 4 Pack | 2-...
Googleplug4.5

Linkind Matter Smart Plug, Work with Apple Home, Alexa, Google Home, 4 Pack | 2-...

$26.99
matter
amazonGet on amazon($26.99)

More Popular Automation Recipes

Nighttime Hallway Path

Gentle under-bed and hallway path lighting automatically illuminates when you get out of bed at night.

Freeze & Water Leak Protection

Instantly detect water leaks under appliances and auto-close the main water shutoff valve to prevent flooding.

One-Touch Movie Night

Dim overhead living room lighting, set bias backlights, and power up your media center with one tap.

Explore More SmartHomeXa Tools

Check Hub Compatibility or Build a Full House Setup

Whether you need to verify individual device compatibility or plan a multi-room budget, our tools make it seamless.