Play music when you come home

Coming home to a house with lights on and music playing feels welcoming. It’s the little touches that make a house feel like home.

Use cases

Daily Arrivals

  • After Work Greeting - Welcome yourself home after long day
  • Morning Wake-Up - Greet you as morning routine starts
  • Energy Boost - Uplifting music when arriving home

Atmosphere

  • Pleasant Atmosphere - Create welcoming ambiance automatically
  • Guest Welcome - Music plays when guests arrive

Products needed

Essential Equipment

Smart Speaker/Music System
Popular brands: Sonos, Amazon Echo, Google Home, Apple HomePod
Single room or multi-room audio • WiFi connectivity • Streaming service integration
Presence Detection
Phone app/GPS location services, Smart lock unlock detection, OR Garage door sensor
Platforms: Home Assistant, SmartThings, Life360

Optional Enhancements

Multiple Speakers
Music in entry, kitchen, and living room for full-home welcome
Smart Lights
Also turn on lights when arriving for complete welcome scene

Basic automation setup

IF person arrives home AND time between 5:00 PM - 9:00 PM THEN play welcome playlist on main speaker AND set volume to 35%

Triggers

  • Home goes into Home mode (when first person arrives)
  • OR specific person arrives home
  • OR morning routine starts (wake-up music)

Conditions (optional)

NOT between 7 AM - 10 AM: If you don't want morning music
Time is after 4 PM: Only afternoon/evening arrivals
Music not already playing: Don't interrupt existing playback

Actions

  • Play music on selected speakers
  • Set volume to appropriate level
  • Optionally announce "Welcome home"
  • Optional: Turn on lights, unlock door

Platform-specific examples

Home Assistant logo

Home Assistant

Trigger Home mode changes from 'Away' to 'Home'
Condition Time is after 4 PM
Action Activate welcome scene, Set volume 35%, Play playlist
SmartThings logo

SmartThings

IF Home mode changes to "Home"
AND Time is after 4:00 PM
THEN Turn on welcome scene, Play music, Set volume 35%
Hubitat logo

Hubitat

Trigger Mode changes to "Home"
Condition Time is after 4 PM
Action Set volume 35%, Play welcome playlist
Setup: Use Mode Manager for presence detection
Apple HomeKit logo

Apple HomeKit

When First person arrives home
Condition Time is after 4:00 PM
Do Welcome scene, Play music, Set volume 35%
Alexa logo

Alexa

When You arrive home (location-based)
Condition Time after 4:00 PM
Action Turn on lights, Play music, Alexa says "Welcome home"
Google Home logo

Google Home

Starter When you get home (location)
Condition Time after 4:00 PM
Action Activate welcome scene, Play music, Adjust volume

Advanced features

Speaker selection by time and arrival

Smart grouping:

Adjust which speakers play based on arrival time:

Use conditional logic based on current time to select appropriate speakers and content.

Time-based volume levels

Adjust volume based on time of day:

Use template logic to check current hour and set appropriate volume.

Auto-stop after duration

Stop music after certain time if no interaction:

Create automation:

Voice announcement

Combine with greeting:

Troubleshooting

Issue: Music plays every time door opens

Causes:

Solutions: ✅ Use home mode change (Away → Home) not door sensor ✅ Add condition: Only if music not already playing ✅ Add delay: Only if away for at least 30 minutes ✅ Use cooldown: Only play once per 2-hour period ✅ Track automation: Set flag when music plays, reset after time

Cooldown example: Add condition to check that automation hasn’t triggered in last 2 hours (7200 seconds) by checking last triggered time.

Issue: Music volume inappropriate

Causes:

Check:

Fix: Use template logic to set volume based on hour:

Issue: Presence detection unreliable

Causes:

Solutions: ✅ Use multiple detection methods (GPS + WiFi + Bluetooth) ✅ Set arrival zone radius appropriately (100-200m) ✅ Combine with garage door sensor or door unlock ✅ Disable battery optimization for home automation app ✅ Use Life360 or similar reliable presence app ✅ Add short delay (2-3 minutes) to allow all sensors to update

Multi-method example: Use multiple triggers for reliability:

This ensures music plays even if one detection method fails.


Related automations: