Block music system Sonos
This control operates one room of a Sonos system: playback, volume, sound, Sonos favorites,
Sonos playlists and inputs, plus several rooms playing together. Each room has one control
and one function block
Block music system Sonos.
The control exists only in the new design of the block controls. It is listed in the
control selection only there; in the old design an existing control only shows a note.
Operation
The tile
- Cover: the picture of the current track or station, or the music symbol if there
is none.
- Name, title, artist and source: the text from the properties or, if empty, the
room name from the system. With radio the current track is on top and the station below,
with line-in and TV the name of the input. +1 after the name tells how many other
rooms play along. A title that is too long scrolls as a ticker during playback and stops when paused.
- On/off: starts or stops playback. If the room starts from standstill, the speaker
keeps its volume unless a start volume is set in the Sound dialog; if there is nothing to play, the first favorite starts. The moon below it
shows that the sleep timer is running.
- Previous, play/pause, next: act on the whole group when the room is part of one.
On an input, play/pause is not highlighted and has no effect.
- Mute and volume: the slider sends when released and shows the chosen value until the device confirms it. Volume stays per room, also in a
group.
- Favorites: the first four Sonos favorites. A tap starts the favorite. The favorite
last started here is highlighted.
A tap next to the buttons opens the dialog. A narrow tile only shows on/off and play. If
the height is not sufficient, the favorites are dropped first.
Without a connection to the system, or if the room cannot be found there, the tile shows
No connection.
Basic screen
A circle with the cover, the ring shows the volume. The chain says that the room plays
together with others, the crossed-out speaker stands for mute. Tap on the circle
defines whether a tap opens the dialog or toggles play and pause; in that case a long press
opens the dialog.
The dialog
- Source: opens the selection with the inputs of the speaker (line-in, TV), the
Sonos favorites and the Sonos playlists. The choice starts playback and closes the selection.
- Rooms: see below. If the system has only one room, the button is not shown.
- On/off, cover, title, buttons, mute and volume: as on the tile.
- Playing time: below the title a bar with the position on the left and the length on
the right. It moves on during playback and stops when paused. Radio and inputs have no length,
there the bar is not shown.
- Sleep: stops the room after 15, 30, 60 or 90 minutes. Off cancels, as
does stopping. The remaining time is shown in the heading.
- Favorites: all Sonos favorites with their number. They are maintained in the Sonos app. Shortcuts from Sonos Radio can only be started in the app and are not listed here. The number stays the same: a new favorite gets the next free number, even if it is placed higher in the Sonos app. It applies to the Favorite input of the block and to switching times.
Streaming such as Spotify Connect or AirPlay is started in the app on the phone; the room
then shows title and cover. Whatever is saved as a favorite in the Sonos app can be started
here.
Rooms
All rooms of the system are listed here, including those without their own function block.
A tap on Not included adds the room to the group; it then plays the same as the
Lead. A tap on Included removes it again and the room stops. The value on the
right opens the volume of that room.
- Group volume: changes all rooms of the group by the same amount.
- All rooms: adds all rooms to the group.
- Dissolve group: the rooms playing along stop, the lead keeps playing.
- All rooms off: stops all rooms of the system.
Settings
Behind the gear wheel:
- Sound and volume: bass and treble (−10…+10), loudness, optionally a
fixed start volume (default: off, the speaker keeps its volume) and maximum volume (default 80 %). The sound is sent to the speaker
when accepted; whoever changes it later in the Sonos app keeps that setting. The limit
applies to every operation of this room, including switching times and telegrams; if the
room is above it when saving, it is reduced.
- Alarm: switching times that start a favorite or stop the room. See
Presence in general.
- Presence: per house mode, what should happen on a change, for example stop the
music when absent. By default nothing happens.
- System: connection, room, serial number and number of rooms. The speaker is
selected here as well: a tap on a room of the system determines which speaker this
element operates. The choice applies at once, is stored in the controller and replaces the
entries in the function block (IP address, serial number, room). As set in the project
takes the choice back. The controller finds the speaker again after the room is renamed or
with a new IP address. On a demo controller the choice is not accepted.
Setup
- Create the function block Block music system
Sonos, pick the speaker with Select speaker (or later in the System dialog
of the control) and call Generate addresses.
- Drag the control onto the page and link it to the function block with a right click.
| Parameter | Meaning |
| View | Block or basic screen. |
| Text | Name on the tile. Empty: the room name from the system. |
| Show cover | If off, the music symbol replaces the picture. |
| Favorites on the tile | The first four favorites as buttons. Only on a wide tile with enough height. |
| Volume step | Grid of the volume slider in percent, default 2. |
| Rooms | Shows the rooms button in the dialog. |
| All rooms button | Shows the button in the rooms sheet that joins all rooms. |
| Show group on the tile | Shows how many other rooms play along. |
| Tap on the circle | Basic screen: open the dialog, or play/pause with a long press for the dialog. |
| Text below the circle | Basic screen: shows the name below the circle. |