Skip to content

Sonos in automations

Sonos players appear in the 1Home Automations like any other device. This page lists every Sonos state you can trigger or check on, every action you can take, and a few examples.

Table of contents

Actions

Use these as an Action in an automation or in a Scene.

ActionWhat it doesInputs
PlayResume playback
PausePause playback
Toggle Play/PauseFlip between play and pause
NextSkip to next track
PreviousReturn to previous track
SeekJump to absolute positionPosition (milliseconds)
Seek RelativeJump forward or backwardDelta (milliseconds, signed)
Set VolumeSet absolute volumeVolume (0–100)
Set Relative VolumeAdjust by a deltaDelta (−100 to +100)
MuteMute the player
UnmuteUnmute the player
Load FavoritePlay a saved Sonos favoriteFavorite (dropdown)
Load PlaylistPlay a saved Sonos playlistPlaylist (dropdown)
Modify Group MembersAdd or remove players from the groupPlayers (multi-select)
Play Audio ClipPlay a built-in chime or presetClip, Volume, Priority, LED Behavior
Play Custom Audio ClipPlay an audio clip from a URLURL, Volume, Priority, LED Behavior
DuckTemporarily lower the volumeDuration (milliseconds)
UnduckRestore volume after ducking
Set RepeatToggle repeat-allRepeat / No Repeat
Set Repeat OneToggle repeat-oneRepeat One / No Repeat One
Set ShuffleToggle shuffleShuffle / No Shuffle
Set CrossfadeToggle crossfadeCrossfade / No Crossfade

See Controls for what each of these actions does in the 1Home dashboard — they behave identically in automations.

Triggers and conditions

Use these Sonos speaker attributes as a Trigger (the automation runs when the value changes) or as a Condition (the automation only proceeds if the value matches).

Automation condition checking that a Sonos player is unmuted

AttributeTypeValues
Playback StatusEnumUnknown, Idle, Buffering, Playing, Paused
VolumeInteger (0–100)Percent
MutedBooleanMuted / Unmuted
Current Item NameTextCurrent track / podcast / item name
Current Item ArtistTextCurrent track artist
Current Item AlbumTextCurrent track album
Current Item DurationIntegerMilliseconds
Playback PositionIntegerMilliseconds
Next Item NameTextNext queued track name
Next Item ArtistTextNext queued track artist
Next Item AlbumTextNext queued track album
RepeatBooleanRepeat / No Repeat
Repeat OneBooleanRepeat One / No Repeat One
ShuffleBooleanShuffle / No Shuffle
CrossfadeBooleanCrossfade / No Crossfade
Group NameTextName of the current Sonos group
Group MembersListPlayer IDs in the current group
Playing GroupsListGroups currently playing across the household
All PlayersListEvery player in the household

Examples

1. Play doorbell chime on Sonos

Goal: when a KNX doorbell pushbutton is pressed, drop the kitchen Sonos volume for ten seconds and play a chime, then return to the music automatically.

Build the automation as:

  1. When – listen for a group address change indicating a push button press (see Working with KNX).
  2. Action – on the Sonos speaker, Play Audio Clip with a built-in chime at a moderate volume.

Automation triggered by a KNX write that plays an audio clip on Sonos

2. Pause all Sonos at goodnight

Goal: when you tap a "Goodnight" scene on your phone or the mobile app, pause every Sonos player in the household.

Build it as:

  1. When - Goodnight scene runs.
  2. Action - Pause every Sonos player.

Goodnight scene action pausing every Sonos player