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:
- Connect the Sonos equipment. Its IP address is assigned automatically using DHCP.
- Download and run Sonos Controller for Sonos. The network is scanned automatically, and the equipment appears under "Rooms".
3. Sonos network settings can be found in several ways:
3.1. On a PC.

3.2. In the mobile application.

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.

After identifying the IP address, you can begin configuration in iRidi studio.
Working in iRidi
- 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

- 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

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.
| Play | Plays or pauses a track. | |
| Volume | Adjusts the volume. | 0-100 |
| Relative volume | Adjusts the volume relative to the current value of the "Volume" feedback. | 0-100 |
| Mute | Mutes the sound. | True or False |
| Next song | Plays the next track. | |
| Previous song | Plays the previous track. | |
| Seek | Seeks within a track. | |
| Seek relative | Seeks within a track relative to the current timeline position. | |
| Group volume | Adjusts the volume for a group (multiple devices). | 0-100 |
| Group relative volume | Adjusts the volume for a group (multiple devices) relative to the current "Volume" feedback value. | 0-100 |
| Group mute | Mutes the sound for a group (multiple devices). | True or False |
| Update state | Updates the feedback states. | |
| Repeat | Repeats the playlist. | True or False |
| Repeat one | Repeats the current track. | True or False |
| Crossfade | Fades the sound out at the end of the current track and gradually increases it at the beginning of the next track. | True or False |
| Shuffle | Plays a random song |
Selection.
| Explore | Navigation command (implemented using an Advanced List). |
| Explore back | Returns to the previous folder/page (implemented using an Advanced List). |
| Explore root | Returns to the root page. |
Feedbacks
For convenience, the driver feedbacks are divided into categories according to their purpose.
Control contains control feedbacks.
| Play | Current playback state (play/pause). | |
| Player name | Player name. | Value |
| Group name | Group name (grouped devices). | Value |
| Volume | Current volume. | 0-100 |
| Group Volume | Current group volume. | 0-100 |
| Mute | State of the Mute parameter. | True or False |
| Group mute | State of the Mute parameter. | True or False |
| Error | Error. | Value |
| Playbackstate | Current player state. | Play, Pause, Idle, etc. |
| Position milis | Current timeline position (in milliseconds). | Value |
| Is coordinator | Feedback that identifies the main device in the group | Value |
Stream, Radio contains feedbacks for retrieving data from a stream.
| Container image | Image output. | |
| Current name | Radio station name. | Value |
| Current show name | Radio show name. | Value |
| Container type | Type of content being played (usually "Track"). | Value |
| Container service | Service name. | Value |
| Current stream info | Currently playing track (artist + track name). | Value |
Indicators contains indicators showing whether a command can be used.
| Can skip | Plays the next track. | True or False |
| Can skip back | Plays the previous track. | True or False |
| Can seek | Seeks within a track. | True or False |
| Can seek | Pauses playback. | True or False |
| Can stop | Stops playback. | True or False |
| Can repeat | Repeats the current playlist. | True or False |
| Can repeat one | Repeats the current track. | True or False |
| Can crossfade | Track crossfade effect. | True or False |
| Can shuffle | Shuffle effect. | True or False. |
Modes contains playback mode states.
| Mode repeat | Repeats the current playlist. | True or False |
| Mode repeat one | Repeats the current track. | True or False |
| Mode crossfade | Track crossfade mode. | True or False |
| Mode shuffle | Shuffle mode state. | True or False |
Current track info contains information about the current track.
| Service | Name of the service used to play the track. | Value |
| Album | Album name of the track being played. | Value |
| Type | Type of content being played (usually "Track"). | Value |
| Image | Image/cover art for the track being played. | Value |
| Artist | Track artist/performer. | Value |
| Name | Name of the track being played. | Value |
| Duration (ms) | Track duration in milliseconds. | Value |
| Time | Track duration. | Format 00:00:00 (hours, minutes, seconds) |
| Time passed | Elapsed time. | Format 00:00:00 (hours, minutes, seconds) |
| Time remaining | Time remaining until the end of the track. | Format 00:00:00 (hours, minutes, seconds) |
Next track info contains information about the next track.
| Service | Name of the service used to play the next track. | Value |
| Album | Album name of the next track. | Value |
| Type | Content type (usually "Track"). | Value |
| Image | Image/cover art for the next track. | Value |
| Artist | Artist/performer of the next track. | Value |
| Name | Name of the next track. | Value |
| Duration (ms) | Track duration in milliseconds. | Value |
| Time | Track 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.