Use switch to play/pause music
Using a voice assistant to request the same radio station every day can be annoying. Physical switches or buttons make music control instant and effortless - just press and play.
Use cases
Daily Activities
- Morning Music - One button press starts your day with favorite station
- Shower Soundtrack - Instant music when you enter bathroom
- Dinner Time - Stop music with single button press when meal is served
Focus & Relaxation
- Workout Playlist - Start gym music without fumbling with phone
- Reading Mode - Toggle relaxing background music on/off
Products needed
Essential Equipment
Wall-mounted, portable, or wireless • Single or multi-button options
Single room or multi-room audio
Optional Enhancements
Basic automation setup
Triggers
- Button/switch pressed
- OR remote button clicked
- OR switch turned on/off
Conditions (optional)
Note: Instant response typically desiredTime-based: Different playlists for different times
Home mode: Only when someone is home
Actions
- Play specific playlist/station on designated speaker(s)
- OR toggle play/pause current music
- OR stop all music
- Optional: Set volume to preset level
- Optional: Adjust lights for ambiance
Platform-specific examples
Home Assistant
SmartThings
Hubitat
Apple HomeKit
Alexa
Google Home
Advanced features
Context-aware music selection
Play different music based on time of day:
Create automation with time-based logic:
- Trigger: Kitchen button pressed
- Morning (6am-9am): Play news station
- Daytime (9am-5pm): Play focus/work music playlist
- Evening (after 5pm): Play relaxing/chill playlist
Multi-room audio control
Control multiple speakers with one button:
Create automation with these elements:
- Trigger: Main music button pressed
- Action 1: Group all speakers together (living room as master)
- Action 2: Set volume to 35% on all grouped speakers
- Action 3: Play party playlist on speaker group
Button + light control
Combine music and lighting:
Create automation for movie mode:
- Trigger: Movie mode button pressed
- Action 1: Dim living room lights to 25% brightness
- Action 2: Close living room blinds
- Action 3: Play ambient music playlist at low volume (15%)
Creative trigger ideas
Pressure sensor
Detect when you sit in favorite chair:
Create automation with these elements:
- Trigger: Pressure sensor in reading chair activated for 30 seconds (ensures actually sitting)
- Action: Play quiet background reading music playlist at 20% volume on living room speaker
Presence detection
Entering specific room starts music:
Create automation with these elements:
- Trigger: Motion detected in home gym
- Condition: Gym light is on (indicates intentional entry, not just passing by)
- Action: Play workout playlist on gym speaker
NFC tag
Tap phone to NFC tag:
Create automation with these elements:
- Trigger: NFC tag “workshop_music_tag” scanned
- Action: Play workshop rock playlist on garage speaker
Troubleshooting
Issue: Button press doesn’t start music
Causes:
- Button battery dead
- Button not paired correctly
- Automation disabled or has errors
- Speaker offline or unreachable
- Music service not connected
Solutions: ✅ Check button battery level in app ✅ Test button press - watch for trigger in automation logs ✅ Re-pair button if not responding ✅ Verify automation is enabled ✅ Test speaker manually - play music directly via app ✅ Check music service login (Spotify, Apple Music, etc.) ✅ Verify network connectivity for both button and speaker
Issue: Wrong music plays
Causes:
- Playlist URI incorrect or changed
- Multiple automations conflicting
- Context logic selecting unexpected playlist
- Speaker playing from different source
Check:
- ✅ Verify playlist/station ID in automation
- ✅ Test playlist manually in music app
- ✅ Review automation logs - which automation fired?
- ✅ Disable other music automations temporarily to isolate
- ✅ Clear speaker queue before playing
Fix:
Clear any current playback before starting new music:
- Stop current playback on speaker
- Wait 1 second
- Set volume to desired level (e.g., 40%)
- Play the correct playlist
Issue: Button has delay
Causes:
- Zigbee/Z-Wave mesh network issues
- Button far from hub
- Hub processing delays
- Cloud-based automation (vs local)
Solutions: ✅ Move button closer to hub or add Zigbee router/repeater ✅ Use local automation (Home Assistant, Hubitat) vs cloud (SmartThings cloud) ✅ Check hub CPU usage - restart if high ✅ Simplify automation - remove unnecessary conditions ✅ Test with different button placement ✅ Consider hardwired switch instead of battery button
Related automations: