sonoscontroller

Control playback of your Sonos straight from Alfred!

Author:

Last Updated: 28/04/20 18:37:53

Stars: 3

Get Latest Release View on GitHub

Alfred Sonos Controller

Control playback of your Sonos speakers straight from Alfred!

[INSERT YOUR GRAPHIC HERE]()

Installation

Download

  • Download and open the alfredworkflow file to install the workflow

Features

  • Play, Pause, Next, Previous
  • Set/Change Volume
  • View Queue
  • Play Songs from Queue (only tested on Spotify playing through Sonos app)
  • Control Shuffle/Repeat

Usage

Type soco into Alfred, select your device, and then control it on the following screen

[INSERT YOUR GRAPHIC HERE]()

Hotkeys

Hotkeys are added by adding a hotkey trigger on the flowchart and connecting it to the run script block with a text argument that follows this syntax

(sonosName); (command)

ex:

Bedroom; next

[INSERT YOUR GRAPHIC HERE]()

Commands:

plpau – Play/Pause Sonos device

play – Play Sonos device

pause – Pause Sonos device

volpcg [value] – Set volume to specified value (ex. Bedroom; volpcg 50)

chvol [value] – Change volume by a specified value

next – Go to the next song

previous – Go to the previous song

enshuffle – Enable shuffle and disable repeat

disshuffle – Disable shuffle and disable repeat

enrepeat – Enable repeat and disable shuffle

enshuffrep – Enable shuffle and repeat

plque [position in queue] – Play a song in a certain position in queue (only tested on Spotify playing through Sonos app)

Acknowledgements

This workflow was built using deanishe’s Alfred-Workflow

Huge shoutout to the team behind SoCo which this workflow uses heavily


License

This workflow is released under the MIT license