Skip to main content

iRidi for Sonos

A toolkit for creating control interfaces using the Sonos speaker system driver.

Documentation updated 01.01.2024

iRidi for Sonos is a toolkit. For user convenience, an iRidi driver has been developed that lets you create a Hi-Fi system control interface without scripts. The native driver is more familiar to integrators and makes settings easier to change. Example: Sonos

Connection​

To work with Sonos equipment in a project, you need to find the speaker system's IP address and enter it in the driver settings. Follow these steps:

  1. Connect the Sonos equipment. Its IP address is assigned automatically using DHCP.
  2. Download and run Sonos Controller for Sonos. The network is scanned automatically, and the equipment appears under "Rooms".

Sonos_app.PNG 3. Sonos network settings can be found in several ways:

3.1. On a PC.

Driver_sonos_pc.png

3.2. In the mobile application.

Driver_sonos_app.png

3.3. By scanning the local network with dedicated software, such as Advanced Port Scanner.

The scan produces a device list. Select the required device. Sonos systems are identified as Sonos,inc. in the "Manufacturer" column.

Sonos_scan.png

After identifying the IP address, you can begin configuration in iRidi studio.

Working in iRidi​

  1. Create a project and select "Add driver". Select "Sonos" in the list that appears and add it.

For more information about working with native drivers, see here 2. Fill in the driver property fields required for operation.

Driver properties​

Image_2020_05_20T09_14_55_546Z.png

  • Name is the driver name; do not change it in a finished interface;
  • Driver Type provides information about the driver type;
  • Protocol is the TCP data transmission protocol;
  • Log Level is the logging level;
  • Host is the equipment IP address;
  • Port is the connection port (1443 by default).

Commands​

Driver_sonos_commands.png

Each command has the following parameters:

  • Name is the command name;
  • Type is the command type:
    • Control provides a list of action commands for controlling equipment;
    • Selection provides a list of action commands for navigation:

Control.

PlayPlays or pauses a track.
VolumeAdjusts the volume.0-100
Relative volumeAdjusts the volume relative to the current value of the "Volume" feedback.0-100
MuteMutes the sound.True or False
Next songPlays the next track.
Previous songPlays the previous track.
SeekSeeks within a track.
Seek relativeSeeks within a track relative to the current timeline position.
Group volumeAdjusts the volume for a group (multiple devices).0-100
Group relative volumeAdjusts the volume for a group (multiple devices) relative to the current "Volume" feedback value.0-100
Group muteMutes the sound for a group (multiple devices).True or False
Update stateUpdates the feedback states.
RepeatRepeats the playlist.True or False
Repeat oneRepeats the current track.True or False
CrossfadeFades the sound out at the end of the current track and gradually increases it at the beginning of the next track.True or False
ShufflePlays a random song

Selection.

ExploreNavigation command (implemented using an Advanced List).
Explore backReturns to the previous folder/page (implemented using an Advanced List).
Explore rootReturns to the root page.

Feedbacks​

For convenience, the driver feedbacks are divided into categories according to their purpose.

Control contains control feedbacks.

PlayCurrent playback state (play/pause).
Player namePlayer name.Value
Group nameGroup name (grouped devices).Value
VolumeCurrent volume.0-100
Group VolumeCurrent group volume.0-100
MuteState of the Mute parameter.True or False
Group muteState of the Mute parameter.True or False
ErrorError.Value
PlaybackstateCurrent player state.Play, Pause, Idle, etc.
Position milisCurrent timeline position (in milliseconds).Value
Is coordinatorFeedback that identifies the main device in the groupValue

Stream, Radio contains feedbacks for retrieving data from a stream.

Container imageImage output.
Current nameRadio station name.Value
Current show nameRadio show name.Value
Container typeType of content being played (usually "Track").Value
Container serviceService name.Value
Current stream infoCurrently playing track (artist + track name).Value

Indicators contains indicators showing whether a command can be used.

Can skipPlays the next track.True or False
Can skip backPlays the previous track.True or False
Can seekSeeks within a track.True or False
Can seekPauses playback.True or False
Can stopStops playback.True or False
Can repeatRepeats the current playlist.True or False
Can repeat oneRepeats the current track.True or False
Can crossfadeTrack crossfade effect.True or False
Can shuffleShuffle effect.True or False.

Modes contains playback mode states.

Mode repeatRepeats the current playlist.True or False
Mode repeat oneRepeats the current track.True or False
Mode crossfadeTrack crossfade mode.True or False
Mode shuffleShuffle mode state.True or False

Current track info contains information about the current track.

ServiceName of the service used to play the track.Value
AlbumAlbum name of the track being played.Value
TypeType of content being played (usually "Track").Value
ImageImage/cover art for the track being played.Value
ArtistTrack artist/performer.Value
NameName of the track being played.Value
Duration (ms)Track duration in milliseconds.Value
TimeTrack duration.Format 00:00:00 (hours, minutes, seconds)
Time passedElapsed time.Format 00:00:00 (hours, minutes, seconds)
Time remainingTime remaining until the end of the track.Format 00:00:00 (hours, minutes, seconds)

Next track info contains information about the next track.

ServiceName of the service used to play the next track.Value
AlbumAlbum name of the next track.Value
TypeContent type (usually "Track").Value
ImageImage/cover art for the next track.Value
ArtistArtist/performer of the next track.Value
NameName of the next track.Value
Duration (ms)Track duration in milliseconds.Value
TimeTrack duration.Format 00:00:00 (hours, minutes, seconds)

Sending commands in the iRidi studio interface and receiving feedback values​

The iRidi team has developed an interface styled after the Sonos control panel. You can edit it and reassign each item's commands and feedbacks using drag and drop.

For more information about interactions between graphical items and driver commands/feedbacks, see our article.