SONOS

The setup of the speakers is done first using the SONOS app on the smartphone, tablet or PC. Then the connected devices are automatically recognized. Each device is assigned its own ID, starting at 100. If a device is removed, the ID will remain reserved in the background.

Functionality

All devices are regularly searched for via UPnP (Multicast). The speakers are then subscribed accordingly. Communication then takes place directly with the speaker via TCP port 1'400. Each status is thus received in real time by the server. If a speaker can no longer be found via Multicast, it will be automatically deleted after one to two minutes.

Create Channels

In the Devices structure, Channels can be created. For these to be created, various prerequisites must be met.

Types Prerequisite
Speakers The speaker must be visible in the structure.

Variables

Variable Values Description
bass -10..10 Bass
loudness TRUE/FALSE Loudness
mute TRUE/FALSE Mute
next TRUE Next
play TRUE/FALSE Play/Pause
perv TRUE Previous
repeat TRUE/FALSE Repeat All
seek 0..# Seek in Track in Milliseconds
shuffle TRUE/FALSE Shuffle Playback
source URI URI of the Current Source
treble -10..10 Treble
volume 0..100 Volume
album Album Name
album_artist Album Artist
cover_url URL URL to Album Cover
duration 0..# Duration of the Track in Milliseconds
infotext Multi-Line Info Text
title Title of the Track
title_artist Title Artist

Use SONOS Graphics

There is the possibility to use graphics from SONOS directly. For this purpose, the value must be transferred to the image visualization element.

Graphic Value
SONOS Logo "_sonos_logo"

Template

The following template can be used to communicate with a room. The template has the following functions:

  • Selection of various radio sources with autoplay.
  • Volume display is shown as an attenuation value.
  • Seek in track, if available.
  • SONOS Logo is used when the room is not being used.
  • International Translation.
  • Compatible with Channels.

It should be noted that various settings need to be made. These are usually as follows:

  • Sources can be stored. The tab Sources must first be activated by setting the value hidden to false.

Download: