iRidi for Sonos (Sonos groups)
The "Sonos groups" driver controls Sonos devices in a group.
- This driver supplements the Sonos speaker system driver and is not intended for standalone use in a project.
Instructions for configuring and using the Sonos driver are available at: https://dev.iridi.com/Sonos .
Documentation updated 01.01.2024
Working in iRidi
-
Create a project and select "Add driver". In the list that opens, select "Sonos" and "Sonos groups" and add the drivers to the project.
-
Configure the Sonos driver according to the instructions.
-
Add commands and feedback to the Sonos group driver and configure them as described below.
Driver properties
The driver uses UDP and has no other properties.
Commands
- Name is the command name;
- Type is the command type:
- Group - command to group devices;
- Ungroup - command to ungroup devices;
- Select - command to select devices for grouping.
Feedbacks
- Name - the status feedback name;
- Type - feedback type:
-
- Players - a list of the current device states (grouped or ungrouped).
Configuring Popup groups
The "Popup groups" popup lets you select devices from a list and group / ungroup them.
- Create a popup (Popup groups) and add Advanced List to it.
- Create 2 "Templates" popups. Name them TplPlayer (an item representing one device) and TplGroup (an item representing a group of devices). Create Label items on each popup as templates for group information (name, device count, and coordinator).
Example Label items drawn for the TplGroup popup:

Example Label items drawn for the TplPlayer popup:

-
After creating the items, return to the Advanced List item.
-
Open the template settings by clicking "Template setting".

- Add the template popups. In the Code field, enter type, as shown in the figure.
- Double-click a template to configure it, then add labels. For the "TplGroup" template, enter group in the Type field (for TplPlayer, Type = player ), then add the following labels with the required tokens: lbl.Name.Text, Selection.Value, lbl.Name 1.Value.
After adding the labels, set their Value fields. To edit a Value field, double-click the label row. Label values:
- lbl.Name.Text - name,
- Selection.Value - selected
- lbl.Name 1.Value - coordinator
- After configuring the labels and templates, bind the "Select" command to the Advanced List item.
To bind the command, select the Advanced List item, then click + next to the Release event in the Programming window.

In the window that opens, select Send tag and bind SelectItem -> Commands -> Select.

- Bind the Players feedback to the item. Select the Advanced List item, then open Data source (next to Template setting). Select Driver -> Feedbacks -> Players.

- Add 2 buttons to the popup for grouping and ungrouping devices. Drag the respective commands onto them: Group and Ungroup , sending any value to the channel.
